Skip to content

Avatar Generator API

POST https://api.findutils.com/api/tools/avatar-generator/execute

Make an avatar as an SVG from a name or an email address, with no external service. Initials mode draws up to two initials on a background colour derived from the input; identicon mode draws a mirrored 5×5 block pattern. Both are seeded from a SHA-256 of the trimmed, lower-cased input, so the same input always gives the same avatar. Returns the SVG, a data: URL, the colours and the initials or the grid.

Needs an API key. Running a tool needs an API key. Keys are not for sale yet: ask for early access. About API keys

Request body

application/json
  • text

    string required

    The name or email address the avatar is made from (1-200 characters). Case and surrounding spaces do not change the result.

  • mode

    string optional

    initials (default) or identicon. One of initials · identicon. Default "initials".

  • shape

    string optional

    circle (default) or square. One of circle · square. Default "circle".

  • size

    integer optional

    Width and height of the SVG in pixels (16-1024). Default 256. The drawing scales without loss. Default 256.

  • font

    string optional

    Typeface of the initials: inter (default) or jetbrains-mono. Ignored in identicon mode. One of inter · jetbrains-mono. Default "inter".

Example arguments

Verified
{
  "text": "Ada Lovelace",
  "mode": "initials",
  "size": 128
}