Skip to content
🙂

Avatar Generator

Generate a distinct geometric avatar from any name or email, or crop a photo into a square avatar. No upload needed for the generated ones.

Runs in your browser

Updated

Style

50%

50% is a full circle; values above it would draw the same shape, so the slider stops there.

The same seed always gives the same avatar

Or crop a photo into an avatar

Use a square crop with the subject's head in the middle. The photo never leaves your browser.

Drop a photo, or click to choose one

Generated avatars are derived from a hash of the seed, so the same email always produces the same face. That makes them useful as a placeholder without a database, but it also means the seed is guessable, so do not treat an identicon as a security measure.

How a seed becomes shapes

The seed box starts as ada@example.com, and everything else follows from it. A hash loop walks the string as an unsigned 32-bit accumulator seeded at 2166136261, xoring each character code and multiplying by 16777619, printed as "hash bef5cfd2". Two streams read from it, one for the background, one for the artwork keyed on seed plus style name, so the same pair always redraws the same picture. Size offers 64, 128, 256 or 512, default 256; Background offers gradient, solid, light neutral or transparent.

A worked example

The gradient stream gives hsl(324, 68%, 58%), with the second stop the first plus 60 degrees, hsl(24, 72%, 48%). The Blocks stream gives hue 177, and 10 of 25 candidate cells clear the 0.45 threshold, each a 20-unit square with saturation 55 to 84 percent and lightness 45 to 69. Add initials is ticked, so the seed is cut at the at sign, split on spaces, dots, underscores and hyphens, and the lone chunk donates two letters: white AD at size 30 over a soft shadow.

The other five styles, and photos

Rings stacks circles at radii 48, 32 and 16. Mosaic places r14 circles on a 33-unit pitch and keeps draws beating 0.35. Mirror fills a 5 by 3 grid above 0.4 and reflects it about the centre. Face sets two r6 eyes between y 34 and 41, spread 20 to 29, with a 16-unit arc stroke of width 5. Slices draws 8-unit bars turned by a multiple of 22.5 degrees. Six 56-pixel canvases below render every style at once; the lower drop zone takes up to 12 MB, centre-cropped to the chosen size.

Where it stops

  • The radius slider stops at 50 percent, because any larger value would describe the same circle.
  • Initials use the system font, which the SVG keeps, so text varies between machines; the PNG bakes it in.
  • Every shape shares one hue, and the colour family cannot be chosen.
  • The hash is true 32-bit FNV-1a, but collisions are still possible and the avatar is decorative rather than a security identity.
  • Photo mode has no zoom control, refuses vector output and ignores the Background choice.

Questions people ask

Will a teammate see the same avatar

Yes, if seed and style match, since the picture comes only from those strings.

Is this small enough for a favicon

Pick 64, untick initials and cut the sizes with the favicon generator; the placeholder image maker covers faceless stand-ins.