Punk Avatar Generator
Generate unique CryptoPunk-style pixel art avatars with customizable traits, accessories, and colors. Download as PNG in multiple sizes.
About
CryptoPunk-style avatars are 24×24 pixel grids where each pixel carries semantic weight. A single misplaced pixel breaks facial symmetry and destroys recognizability at thumbnail scale. This generator constructs avatars procedurally from layered trait maps: base type, skin tone, hair, eyes, mouth, and accessories. Each trait is a hand-coded pixel matrix composited in z-order onto the base canvas. The total combinatorial space exceeds 108 unique configurations. Randomization uses uniform distribution across trait categories, but real-world avatar collections weight rarity tiers logarithmically. This tool approximates flat rarity. For production NFT collections, you would need off-chain metadata with explicit rarity percentages per trait.
Export resolution matters. The native 24×24 grid is scaled with nearest-neighbor interpolation to preserve hard pixel edges. Bilinear or bicubic scaling destroys the aesthetic. This tool exports at 24, 96, 192, and 384 pixel widths. For on-chain storage, the 24px version is canonical. For social media avatars, 192px or above avoids platform compression artifacts.
Formulas
The total unique avatar count is the Cartesian product of all trait dimensions:
where k is the number of trait categories and ni is the option count in category i.
Pixel compositing follows painter's algorithm. For each pixel at coordinates (x, y), the final color is:
where j iterates from the topmost layer downward. No alpha blending is used. Each pixel is either fully opaque or fully transparent (binary compositing). Export scaling uses nearest-neighbor interpolation:
where s is the scale factor (4, 8, or 16).
Reference Data
| Trait Category | Options | Layer Order | Combinatorial Weight |
|---|---|---|---|
| Base Type | Human, Zombie, Ape, Alien | 0 (bottom) | 4 |
| Skin Tone | Light, Medium, Dark, Olive, Pale, Gold | 0 | 6 |
| Hair Style | Mohawk, Wild, Messy, Frumpy, Straight, Shaved, Pigtails, Clown, Cap, Beanie, Bandana, Headband, Tiara, None | 3 | 14 |
| Hair Color | Black, Blonde, Brown, Red, Purple, Blue, Green, Orange, Pink, White | 3 | 10 |
| Eyes | Normal, Small, Big, Narrow, VR, Glasses, Sunglasses, Eyepatch, Clown, Wink, Tired, Angry | 2 | 12 |
| Mouth | Normal, Smile, Frown, Lips, Teeth, Pipe, Cigarette, Mask, Buck Teeth, Open | 2 | 10 |
| Accessories | Earring, Chain, Nose Ring, Mole, Scar, Rosy Cheeks, Spots, None | 4 (top) | 8 |
| Background | Solid color (any hex) | −1 | ∞ |
| Export: 24px | Native resolution | - | Canonical |
| Export: 96px | 4× scale | - | Thumbnail |
| Export: 192px | 8× scale | - | Social media |
| Export: 384px | 16× scale | - | Print / HiDPI |
| Total Combinations | 4 × 6 × 14 × 10 × 12 × 10 × 8 = 3,225,600 unique avatars | ||