avatar.tools.town

Identicon API

SHA-256 → symmetric 5×5 grid SVG. Same seed always renders the same avatar — great for comments, admin tables, and test data.

URL builder

Open ↗
preview

Sizes

32×32

64×64

128×128

256×256

Rounded variant

Default

?rounded=1

Inline widget

Presets, live preview, copy buttons — same as /embed/.

API reference

Endpoints

MethodPathDescription
GET/This documentation page
GET/{size}SVG identicon (16–512px square)
GET/v1/{size}Versioned alias
GET/v1/specJSON with resolved URLs
GET/v1/validateValidate seed/size without rendering
GET/v1/presetsSize presets + example URLs
GET/embed/Interactive widget
GET/metaMachine-readable spec
GET/healthUptime check

Query params

ParamRequiredDefaultDescription
seedNoanonymousAny string; hashed with SHA-256
roundedNooff1 / true / yes for rounded tiles

Errors

CodeHTTPMeaning
invalid_dimensions400Non-square or size out of range
input_too_large400seed exceeds max length
not_found404Unknown path
bad_request400Unexpected handler error

Code snippets

<img src="https://avatar.tools.town/128?seed=user%40example.com" width="128" height="128" alt="" />
curl -sS "https://avatar.tools.town/128?seed=test" -o avatar.svg