Every app with user accounts faces the same design problem: what to show for people who never upload a profile photo. A grey silhouette is the lazy answer, and a page full of identical silhouettes makes a comment thread or team directory hard to scan. Initials avatars and identicons solve this by giving each user a distinct, recognisable image generated automatically from their name or username.
This guide explains how these default avatars work, why "the same input always gives the same image" matters, how to choose colours and shapes that stay readable at tiny sizes, and how to create avatars for your own profile, product mockups or app.
Three kinds of generated avatar
Initials avatars
A coloured shape with one or two letters taken from the person's name, such as "JL" for Jordan Lee. Email clients, calendars, chat apps and collaboration tools use them widely. They are instantly meaningful: you can often guess who someone is from their initials and colour alone.
Identicons
A symmetrical pixel pattern generated from a hash of a username, email or ID. Code-hosting sites popularised them as default profile images. Identicons don't reveal the name, which is useful where users prefer some anonymity, and they are very distinctive even without letters.
Geometric avatars
A tile pattern of circles, triangles, quarter-circles and squares, again derived from the input text. They look more decorative than identicons and suit creative products, placeholder accounts and illustrations.
How deterministic generation works
The key property of all three is that they are deterministic: the same input always produces the same avatar. This is achieved in two steps:
- Hash the text. A hash function turns any string, such as "jordan.lee", into a number. Tiny changes in the input produce completely different numbers.
- Use the number as a seed. The hash seeds a small pseudo-random generator that decides the colours and which cells or shapes are filled.
For identicons, the pattern is usually mirrored left to right. A 5 × 5 grid only needs 15 random decisions (three columns, with the middle column unique and two columns mirrored), and symmetry makes the result look like a deliberate emblem rather than noise.
Determinism means you do not need to store the avatar: any server or browser can regenerate it from the username on demand. It also means users recognise each other's avatars across sessions and devices.
This kind of hashing is for visual variety, not security. A seeded pattern is not a password, and similar-looking identicons are possible, so never rely on an avatar to verify who someone is.
Create an avatar with our tool
The Avatar Generator runs in your browser and exports PNG or SVG.
- Open the Avatar Generator.
- Choose a type with the tabs: Initials, Identicon or Geometric.
- Type a Name (for initials) or Name, username or any seed text (for identicon and geometric). Use the shuffle button for a random seed. The same text always gives the same avatar.
- Pick a Shape: Circle, Rounded square or Square.
- For initials, choose Letters: 1 or 2. With two words, the first letters of the first and last word are used; with one word, the first one or two letters.
- Leave Automatic colours from the name on for a colour derived from the text, or turn it off to choose a Background and, for patterns, a Pattern colour.
- Set the PNG size from 32 to 1,024 pixels.
- Check the preview at 192, 96, 48 and 32 pixels, then click Download PNG, Download SVG or Copy SVG.
Design tips
Test at the smallest size you will use
Avatars are often shown at 24 to 40 pixels in lists and comment threads. Two thin letters or a busy geometric pattern that looks great at 192 pixels can become a blur at 32. The multi-size preview exists for exactly this check.
Keep text contrast high
Initials are drawn in white, so medium and dark backgrounds work best. Very light backgrounds make white letters hard to read. For accessibility guidance on text contrast, see WCAG colour contrast ratio explained.
Pick a shape that matches your interface
Circles are the most common for people; rounded squares often represent organisations, teams or apps. Using different shapes for people and groups helps users tell them apart.
Don't rely on colour alone
Two users can end up with similar colours. The letters or the pattern should carry the identity, with colour as a helpful extra.
SVG or PNG?
SVG is a small text file that stays perfectly sharp at any size. It is ideal for websites and apps, and you can inline it directly in HTML. Initials rely on the viewer's installed sans-serif font, so they can look slightly different across systems.
PNG is a fixed-size image, accepted by every platform's profile upload, including social networks and chat tools that don't accept SVG. Download at the largest size you need; 512 pixels is a good default for profile uploads.
Other ways to get a profile picture
A real photo. For professional networks, a clear photo builds more trust than any generated image. Crop it neatly with Circle Crop Image if the platform displays round avatars.
Libraries and services. Developers can generate avatars in code with open-source libraries, or call an avatar service by URL. A library keeps generation inside your app; a third-party service adds a dependency and sends usernames to that service.
Icons for sites and apps. Generated avatars also make quick app or site icons during prototyping. For proper browser icons, run the PNG through a Favicon Generator; what favicon sizes a website needs explains the sizes.
Frequently asked questions
What is an identicon?
A symmetrical pixel pattern generated from a hash of some text, such as a username. The same text always produces the same pattern.
Why does my avatar look the same every time?
Generation is deterministic by design. Change the text, or use the shuffle button for a new random seed, to get a different result.
Can I choose my own colours?
Yes. Turn off Automatic colours from the name and pick the background, plus the pattern colour for identicon and geometric styles.
Which size should I download?
For profile uploads, 512 pixels is a safe choice. Use SVG for websites where the avatar must stay sharp at any size.
Is the name I type uploaded?
No. The avatar is built in your browser and downloaded directly.