UA

UI-Avatars

Generate initial avatars programmatically or visually

API Specs

Avatar Configuration

Real-time live rendering

Generates initials automatically (max length configurable below).

#
#
128px
0.5

Preset Styles

Render Preview
200 OK

This client-side dynamic URL parameters string mirrors the standard UI-Avatars REST API specifications.

Integration Snippets


          
        

API Parameter Documentation

Full reference for query parameters supported by the UI-Avatars API standard.

GET /api?name={name}&{params}
Parameter Type Default Description / Values
name string John Doe The name used to generate initials. Words are split by spaces or plus signs.
background hex / rgb 0D8ABC Hex color for the avatar background without the # character. Use random for random colors.
color hex / rgb FFFFFF Hex color for the initial text.
size integer 128 Avatar image output size in pixels (from 16 to 512).
font-size float 0.5 Font size ratio relative to total avatar size (0.1 to 0.9).
length integer 2 Maximum length of generated initials (1 to 3 characters).
rounded boolean false Set true for rounded corners (or circular if circle=true).
bold boolean false Renders text in bold font weight.
uppercase boolean true Converts initials to uppercase characters automatically.
format string svg Image format output (svg or png).