RoboHash

Development API · Works globally · Deterministic robot avatars

TL;DR

RoboHash generates unique robot, monster, or alien avatar images from any input text using a deterministic hashing algorithm — the same text always produces the same avatar. Pass any string in the URL path (like a username or email) and optionally choose a style set (set1=robots, set2=monsters, set3=aliens) and image size. No API key, no server-side processing needed — just use the URL directly as an img src. The de facto standard for default user avatars, used by GitHub and many other platforms.

Quick start: https://robohash.org/test?set=set1

No API key needed — just make a request!

Robot avatar for "test": https://robohash.org/test?set=set1

How to Use This API

1. Basic Robot Avatar

Any text in the URL path generates a unique avatar:

https://robohash.org/username123?set=set1

2. Avatar Styles

Choose your set: set1 (robots), set2 (monsters), set3 (robot heads):

https://robohash.org/hello@example.com?set=set2
https://robohash.org/user42?set=set3

3. Custom Size

Append dimensions to the path:

https://robohash.org/myuser?set=set1&size=200x200

4. HTML — User Avatar

Avatar for John Doe

5. Python — Batch Avatar Download

import requests

users = ['alice', 'bob', 'charlie', 'diana']
for user in users:
    url = f'https://robohash.org/{user}?set=set1&size=100x100'
    img = requests.get(url)
    with open(f'avatar_{user}.png', 'wb') as f:
        f.write(img.content)
    print(f'Saved avatar for {user}')

Frequently Asked Questions

How are avatars generated?
RoboHash uses a hash of the input text to deterministically generate unique robot/monster/alien images. The same input always produces the same avatar, making it perfect for consistent user representations.
What image formats are supported?
PNG by default. You can get JPG by adding .jpg to the URL path, or SVG for scalable vector graphics.
Do I need an API key?
No. RoboHash is completely free and requires no authentication. The images are served directly via URL.
What are the different style sets?
Set1: full-body robots with various heads, arms, and accessories. Set2: cartoon monsters in bright colors. Set3: robot heads only (more compact). There's also set4 (kittens) and set5 (human-like).
Can I use these avatars in production?
Yes, RoboHash has been used in production by countless websites and applications for years, including as GitHub's default avatar fallback.
Are there rate limits?
No published rate limits. The service is lightweight and designed for high-volume avatar serving.

API Details

API URL
https://robohash.org/{text}
Documentation
robohash.org
Category
Development
Authentication
Not Required
Geographic Coverage
Global

What You Can Build