Skip to content

Avatar Generator

Make an initials, identicon or geometric avatar from a name or email. The same input always gives the same avatar. Download SVG or a 512 px PNG.

Initials avatar for Jane Doe

The same seed always gives the same avatar.

01 · Definition

What is an identicon?

An identicon is a small abstract image generated from a hash of some text, such as a username or email address. Because the picture is computed from the text, the same account always gets the same image, which gives each user a recognizable default avatar without anyone uploading a photo.

02 · Overview

How the Avatar Generator works

Type a name, an email or any other text and get a consistent placeholder avatar for it. There are three styles: initials on a colored tile, a geometric tile with one shape, and an identicon (a 5×5 mirrored grid, similar to the default avatars on code-hosting sites). Colors and shapes are derived from a hash of the text, so the same input always gives the same result. Download the SVG or a 512 px PNG, or copy the SVG markup or a data: URL. It does not draw cartoon characters, illustrated faces or AI portraits. Everything runs in your browser.

03 · Guide

Initials, geometric and identicon avatars: how each is drawn

All three styles start from the same hash of your text (32-bit FNV-1a), which picks one of 8 background and accent color pairs. Every avatar is a 256 × 256 SVG tile with rounded corners; the PNG download is the same image at 512 × 512 px.

Changing one character of the text changes the hash, so two similar names usually get different colors and patterns. The same text gives the same avatar on every device.

StyleWhat is drawnDecided by
InitialsOne or two white capital letters on the background colorFirst letter of the first and last word; first two characters of a single word or email
GeometricA circle, rounded square, triangle or lens shape in the accent colorThe hash picks the shape and its rotation
IdenticonA 5 × 5 grid of squares, mirrored left to rightThe hash turns each of 15 cells on or off
The three avatar styles

04 · Use cases

When to use the Avatar Generator

  1. 01

    Generate placeholder avatars for a user table in a new app

  2. 02

    Mock up a comment thread with a consistent avatar per user

  3. 03

    Seed a demo with avatars that are clearly not real people

  4. 04

    Make a fallback avatar for users who haven't uploaded a photo

05 · Examples

Avatar Generator examples

Jane Doe (Initials)

ex 01

JD in white on a #5c5db1 tile, a 319-byte SVG

Two or more words give the first letter of the first and last word.

alex@example.com (Identicon)

ex 02

A 5×5 mirrored grid in a light accent on a #a24e10 tile

The pattern and colors come from a hash of the email address.

Acme Corp (Geometric)

ex 03

One shape in a light accent on a #896100 tile

Works for organizations as well as people, where initials would read oddly.

alex@example.com (Initials)

ex 04

AL

For an email address or a single word, the initials are its first two characters.

06 · FAQ

Avatar: frequently asked questions

Does this make cartoon or AI avatars?

No. It makes three kinds of abstract placeholder avatar: initials, an identicon grid and a geometric shape. There are no faces, characters or photos, and no AI model is involved.

Is the same seed always the same avatar?

Yes. The text is hashed and the hash picks one of 8 color pairs, the shape and the grid pattern, so the same input always produces the same avatar. Leading and trailing spaces are ignored and an empty field uses the seed "anonymous". The result is specific to this tool: other identicon implementations use different hashes and will draw a different picture for the same text.

Can I use these in a commercial app?

Yes. The avatars are generated in your browser and contain no third-party artwork. Download the SVG or PNG and use it.

How is this different from Gravatar?

Gravatar looks up an image that a person uploaded, keyed by a hash of their email address. This tool computes a synthetic image from whatever text you give it. It does not look anything up or make a network request.

What alt text should a generated avatar have?

If the person's name appears next to the avatar, the image is decorative, so use alt="" and screen readers won't announce the name twice. If the avatar stands alone, as in a compact activity feed, give it the person's name as alt text.

Should I use the SVG or the PNG?

Use SVG for anything on the web: it is under 3 KB, stays crisp at any size, and uses plain hex colors. The initials style relies on a system font, so the letters can look slightly different between devices. Use the 512 × 512 px PNG where SVG isn't reliably supported, such as email clients, or when the initials must look identical everywhere.

Will the initials always be readable on the generated background?

Yes. The initials are always white and each of the 8 background colors has a contrast ratio of at least 5.2:1 against white, above the WCAG AA threshold of 4.5:1 for text.

07 · Reference

Specs and further reading

These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.

  • SVG

    MDN Web Docs. Reference for the vector format the generated avatars are emitted in.

  • An alt Decision Tree

    W3C WAI. How to decide what alt text a generated avatar should carry, if any.

08 · More

Tools that pair with Avatar

Last updated .