UI Avatars
by Lasse Rafn
API that generates avatar images with initials from names, returned as SVG or PNG.
Avatars and placeholders Generator
1. Price: ui-avatars.com
Free API with no limiting or login.
ui-avatars.comNo quote yet: price is read from the official pages.
2. Commercial use: LICENSE on GitHub
“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies”
You can use it in paid apps and client work.
LICENSE on GitHub3. Credit the author: LICENSE on GitHub
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
No credit on screen. Keep the license notice inside the code you ship.
LICENSE on GitHub4. Agent access: ui-avatars.com
An agent can use it by itself without a key. GET https://ui-avatars.com/api/?name=John+Doe&size=64&format=svg (also background, color, rounded, bold, length, font-size, uppercase).
ui-avatars.comLicense checked Oct 10, 2026 against 2 official pages. Tap a verdict to see its source. How we checked Report an error
License
MIT License.
“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies”
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies”
“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies” LICENSE on GitHub
“no limiting or login” ui-avatars.com
- Keep the MIT copyright and license notice if you copy or distribute the UI Avatars code.
- Call the API at https://ui-avatars.com/api/ with name, size, background and color parameters; no key is needed.
- Request 1.5x or 2x sizes for high-DPI screens while keeping the img tag at its original size.
- The licence page covers the code only; the site states no terms for generated images, so check before relying on them.
AllowedWith conditionsNot allowedNot stated or not checked yet
Is UI Avatars free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with UI Avatars. Paste them into your prompt or AGENTS.md.
- UI Avatars (Avatars and placeholders). API that generates avatar images with initials from names, returned as SVG or PNG. Price: free; commercial use OK; no credit needed.
Connect: API docs https://ui-avatars.com. Limits: No limiting or login stated; size between 16 and 512 px.
Get files: GET https://ui-avatars.com/api/?name=John+Doe&size=64&format=svg (also background, color, rounded, bold, length, font-size, uppercase) (svg, png).
Not allowed: The MIT license covers the code; the site states no terms for the generated images.
Not allowed: Size is 16 to 512 px.
Not allowed: Keep the MIT copyright and license notice if you copy the code.
Rule: Keep the MIT copyright and license notice if you copy or distribute the UI Avatars code.
Rule: Call the API at https://ui-avatars.com/api/ with name, size, background and color parameters; no key is needed.
Rule: Request 1.5x or 2x sizes for high-DPI screens while keeping the img tag at its original size.
Rule: The licence page covers the code only; the site states no terms for generated images, so check before relying on them.
License: https://github.com/LasseRafn/ui-avatars/blob/HEAD/LICENSE (checked 2026-10-10; details: https://agentgid.com/assets/ui-avatars/)
Agent calls a free official API or MCP.
Formats: svg, png
Alternatives
UI Avatars This page
Avatar generator with mix-and-match features, PNG download, an SVG image API and an MCP server.
Web service that returns a unique robot, monster, cat or human avatar image generated from any text via a URL.
Free web generator for Sketch-style cartoon avatars designed by Pablo Stanley, plus an MIT React component.
Free online tool to design avatars in four styles and download them as PNG (400px) or SVG.
MIT React library that generates unique placeholder avatars (initials or shapes) from any string.