What it does
UI Avatars creates avatar images with a person's initials, for example as a default profile picture next to user names. Request ui-avatars.com/api/?name=John+Doe and set size, background and text colour, font size, rounding and bold in the URL. Images come as SVG or PNG and can be used straight in an img tag. Free, no key needed and no sign-up.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed and no sign-up.
- From the browser
- Yes (CORS)
- Interface
- HTTP-GET
- Provider
- ui-avatars.com
More information: https://ui-avatars.com/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://ui-avatars.com/api/?name=John+Doe'
JavaScript
const response = await fetch("https://ui-avatars.com/api/?name=John+Doe");
const text = await response.text();
console.log(text);
Python
import requests
response = requests.get(
"https://ui-avatars.com/api/?name=John+Doe",
timeout=30,
)
print(response.text)
The JavaScript works in a web page as well as in Node.js 18 or newer.