prettyavatars is collection of pretty default avatars to use in your next project ✨
All avatars are SVG-based and are generated based on the name and color palette you provide 🎨
Also available as a standalone React package
Avatars • API • Installation
https://prettyavatars.com/api/letter/100
import Avatar from 'prettyavatars'
<Avatar
variant='letter'
name='John Doe'
size={100}
colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>
https://prettyavatars.com/api/letter-plain/100
import Avatar from 'prettyavatars'
<Avatar
variant='letter-plain'
name='John Doe'
size={100}
colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>
https://prettyavatars.com/api/smile/100
Credit goes to laurentpayot/minidenticons
https://prettyavatars.com/api/pixel-art/100
import Avatar from 'prettyavatars'
<Avatar
variant='pixel-art'
name='John Doe'
size={100}
colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>
Credit goes to boringdesigners/boring-avatars
https://prettyavatars.com/api/beam/100
import Avatar from 'prettyavatars'
<Avatar
variant='beam'
name='John Doe'
size={100}
colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>
Credit goes to boringdesigners/boring-avatars
https://prettyavatars.com/api/bauhaus/100
import Avatar from 'prettyavatars'
<Avatar
variant='bauhaus'
name='John Doe'
size={100}
colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>
Credit goes to boringdesigners/boring-avatars
https://prettyavatars.com/api/ring/100
import Avatar from 'prettyavatars'
<Avatar
variant='ring'
name='John Doe'
size={100}
colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>
Credit goes to boringdesigners/boring-avatars
https://prettyavatars.com/api/sunset/100
import Avatar from 'prettyavatars'
<Avatar
variant='sunset'
name='John Doe'
size={100}
colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>
Credit goes to boringdesigners/boring-avatars
https://prettyavatars.com/api/marble/100
import Avatar from 'prettyavatars'
<Avatar
variant='marble'
name='John Doe'
size={100}
colors={['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90']}
/>
The API is available at https://prettyavatars.com/api
With the following query parameter options:
variant: string
The avatar variant to use
Default: "letter"
size: number
The size of the avatar in pixels
Default: 100
name: string
The name of the avatar
Default: "John Doe"
colors: string
Comma-separated list of html colors
Default: "#BF616A, #D08770, #EBCB8B, #A3BE8C, #B48EAD"
random-name: boolean
Whether to generate a random name
Default: false
random-all: boolean
Whether to randomize all avatar properties (except square)
Default: false
random-color: boolean
Whether to randomize the avatar color
Default: false
Or all together:
https://prettyavatars.com/api/{VARIENT}/{SIZE}?name={NAME}&colors={COLORS}
To use this package with React you can install it with the package manager of your choice:
yarn install prettyavatars
npm install prettyavatars
pnpm install prettyavatars
To see the full list of available avatars, check out the Avatars section.