1001Ferramentas
👤Generators

Identicon Generator

Generate Identicon avatars (GitHub style) from any text (email, username, hash). Deterministic — same input gives same image. Everything in your browser.

Identicons: deterministic avatars from a hash

An identicon is a small graphical avatar generated deterministically from a piece of input data — usually an email address, a username, an IP address or a hash. The same input always produces the same image, so two visits to the same comment thread show the same shape even if the commenter never uploaded a photo. The name and the concept were coined by Don Park in a January 2007 blog post; GitHub later adopted them in 2013 as the default avatar for new accounts, instantly making the pattern recognisable to millions of developers.

The basic recipe is straightforward. Run the input through a hash function (MD5, SHA-1 or SHA-256) to get a stream of bytes. Use one half of those bytes to decide which cells of a 5×5 grid are filled, mirror the grid horizontally so the result is bilaterally symmetric, and use a few more bytes to pick a colour in HSL space. The simplicity is the point: a few dozen lines of code produce a visually distinct identity for every possible input.

hash      = sha1(input)
hue       = (hash[0] << 8 | hash[1]) % 360
for y in 0..4:
  for x in 0..2:
    if hash[y * 3 + x] % 2 == 0:
      fill(x, y); fill(4 - x, y)   // mirror

Famous identicon families

  • GitHub identicon — 5×5 symmetric pixel grid; the canonical reference.
  • Gravatar Retro — 8-bit space-invaders-style sprites.
  • Gravatar Wavatar — cartoon faces with randomised features.
  • Gravatar MonsterID — playful "monster" portraits.
  • Robohash — robot, monster, head and cat sets generated server-side.
  • Multiavatar and Boring Avatars — modern flat-design alternatives.
  • DiceBear — an open-source library bundling 30+ styles (Adventurer, Bottts, Pixel Art, Lorelei, etc.).
  • jdenticon — a popular zero-dependency JavaScript identicon library.

Where identicons are used

Beyond default profile pictures (GitHub, GitLab, Stack Overflow, self-hosted forums), identicons appear as visual fingerprints for cryptographic data: OpenSSH renders an ASCII-art "Drunken Bishop" image for each key fingerprint to help users spot man-in-the-middle attacks; some Ethereum wallets display blockie identicons for addresses so users can verify "is this the address I expected?" at a glance. They are also a tidy way to give anonymous commenters a stable visual identity without collecting personal data.

FAQ

Is every identicon unique? Mathematically, no — the visual space is far smaller than the hash space, so collisions exist. In practice they are rare enough that users rarely see two different accounts with the same identicon in the same thread.

Is the result reproducible? Yes. The same seed always produces the same image, because the algorithm is purely deterministic. That is why identicons work as long-term identifiers.

Can I use an identicon as authentication? No. It is a visual cue only — anyone who knows the input can reproduce the image. Treat it like a username, not a password.

Should I hash my users' emails before passing them to the generator? If your input is sensitive (a raw email), hash it client-side first (SHA-256) and feed the hex digest to the identicon generator. That way the avatar still tracks the user but the email is never exposed.

Does this tool send anything to a server? No. Hashing and SVG generation run entirely in your browser.

Generate automatic Identicon avatars

Those colourful geometric avatars GitHub shows for people who never uploaded a photo have a name: Identicons. They're images built from a piece of text. Here you create one of them by entering whatever you like, be it an email, a username or a hash.

The process is deterministic. The same text always produces exactly the same image, and that's precisely what makes the Identicon so useful as a default avatar for a user. It gives each account a unique visual identity without anyone having to upload a thing.

The image is born entirely in the browser, from the text you type, with nothing leaving your machine. A solid fit for systems that need automatic, consistent avatars.

Frequently asked questions

Can I download the image as a PNG?
No. The page hands over two forms of the same drawing: the preview and the SVG source in the box beside it, which you copy and paste wherever needed. There's no download button and no PNG export. Being vector, the SVG scales without losing quality: the file starts at 80 by 80 pixels, five 12px cells plus a 10px margin on each side, and editing width and height in the code itself resizes it.
How does the tool pick the avatar colour?
From the first three bytes of the SHA-1 hash of the text: they become the R, G and B channels of a single solid colour, while the following bytes decide which cells in the left half of the 5x5 grid get filled, the right half coming out by mirroring. Since the colour comes straight from the hash with no brightness correction, an unlucky seed can land on a near-white tone that disappears against the light grey background. Change one character of the seed and the colour shifts completely.
Can I type a real user's email in here?
The text never leaves the browser: hashing and SVG building happen locally, with no network request going out. Even so, an identicon anonymises nothing. Anyone who knows the email reproduces the same picture in seconds, so the shape works as an identity hint, never as a secret. If the address is sensitive, run SHA-256 over it first and feed the hex digest in as the seed.

Related Tools