Random Avatar Generator: 8 Drawing Styles, One Seed Forever
Profile pictures for test accounts, stand-ins for placeholder images: pick a style, a palette and a seed — every stroke on the canvas is computed, and the same seed always redraws the same face.
Avatars are drawn in this browser only — nothing is uploaded, no account needed. Settings (style, palette, seed) stay in this device’s localStorage; clearing site data or switching devices loses them. The footer button wipes them.
Why test environments want seed-reproducible avatars
Two years ago a regression suite kept failing on avatar screenshots — nothing was broken, the images had simply been regenerated with new randomness. Once we pinned every test account to a fixed avatar seed, the noise vanished. Reproducibility is this tool's first design goal, not an afterthought.
The mechanics in one sentence: your seed string is hashed via FNV-1a into four integers that seed an xorshift128 generator, and every cell color, circle radius and stripe width on the canvas comes from that deterministic sequence. Same seed, same sequence, pixel-identical PNG.
Eight styles, eight scenarios
Pixel face (5x5 mirrored grid) makes a great default avatar; Geometric stacks circles and polygons for visual weight; Initial badge puts the username's first character on a color block, CJK included; Rings draws a target of gradient bands; Stripes cuts angled color bars; Checker fades a two-tone board; Symmetric noise is a softer-palette take on GitHub's identicons; Robot is a 9x9 retro pixel robot — one seed can grow tens of thousands of distinct faces.
| Input | Seed up to 48 chars (any text; empty shuffles a random one); style 8-way; palette 12-way; export size 128/256/512; badge text up to 12 chars |
|---|---|
| Output | PNG (opaque, solid palette background); live 512×512 canvas preview; download button exports at the chosen size |
| Defaults | Style random; palette random; size 256; ?seed=&style=&pal=&text= URL params deep-link a configuration |
| Processing | Browser-local: xorshift128 + FNV-1a seed hashing to Canvas 2D procedural drawing, zero requests zero uploads; settings stored in this browser's localStorage only |
| Limits | Seed ≤48 chars; badge text ≤12 chars; canvas 512×512 (preview and max export size) |
| Known bounds | Initial-badge glyphs depend on system fonts, so shapes vary slightly across devices (colors stay seed-deterministic); no alpha channel in exports; styles differ visually for the same seed by design |
FAQ
How does same-seed-same-avatar work?
The randomness comes from an xorshift128 generator: your seed string is hashed into four initial states via FNV-1a, and every draw afterwards is a deterministic mathematical transform. Same seed, same colors and coordinates for every stroke, pixel-identical PNG — safe to assert on in test suites.
What are the differences between the 8 styles?
Pixel face is a 5x5 mirrored dot grid; Geometric stacks circles and polygons; Initial badge sets a letter or CJK character on a color block with rings; Rings draws gradient target circles; Stripes cuts angled color bands; Checker fades a two-tone grid; Symmetric noise is a softer-palette GitHub-identicon cousin; Robot is a 9x9 retro pixel robot face.
Does the initial badge support non-Latin characters?
Yes. Feed it a Chinese character and it draws that character; feed it Wang and it draws W. It takes the first character and uppercases Latin letters. Fonts fall back through the system stack, so CJK characters render on any device with a CJK font installed.
Do exported PNGs have transparent backgrounds?
No, they ship with a solid palette background — the most universal choice across forums and chat apps where both light and dark themes exist. Removing a flat background from a square avatar is a lossless one-click job in any image editor.
Can I use generated avatars commercially?
Yes. Every avatar is drawn on the fly by math, not pulled from a stock library, so no third-party rights are involved. With seed reproducibility you can even write the seed into your docs and anyone on the team can re-export the identical image at any time.
Are avatars uploaded to a server?
No. Drawing and export all run inside this device's browser — zero uploads, zero requests. Settings live only in this browser's localStorage; the footer button clears them in one click.