APIs to generate random user avatars
- Published at
- Updated at
- Reading time
- 3min
I'm a tab hoarder. There you have it! I often discover resources and keep their browser tabs open for months. They might come in handy in the future, right?
Today I'm cleaning up my browser tabs, putting things into my bookmarking system, my blog. So, here are some free image APIs to generate random user avatars.
DiceBear provides many hash-dependent avatars. Every URL hash (a user id or name) generates a new avatar image.
The service offers many different avatar style options, too.
And they'll get bonus points for serving SVGs! ๐ฏ
avatars.dicebear.com/api/croodles/stefan.svgavatars.dicebear.com/api/bottts/stefan.svgavatars.dicebear.com/api/open-peeps/stefan.svg
RoboHash provides hash-dependent avatars, too. They're not serving SVGs but PNGs. Nevertheless, I'm super into the Futurama style!
robohash.org/stefan-onerobohash.org/stefan-tworobohash.org/stefan-three
Random Users shines with realistic user avatars which can be handy when building realistic mocks and wireframes.
xsgames.co/randomusers/avatar.php?g=malexsgames.co/randomusers/avatar.php?g=femalexsgames.co/randomusers/avatar.php?g=pixel
Tom Doan shot me an email and shared the Multiavatar API with me. The style is not really my thing, but it's great that the service offers SVG and PNGs.
api.multiavatar.com/stefan.svgapi.multiavatar.com/kathrin.svgapi.multiavatar.com/zoe.svg
Boring avatars is actually a React library to generate avatars but the maintainers offer an API endpoint, too!
The API shines with six different styles, configurable colors and controllable size! And the beam style is very cute.
source.boringavatars.com/beam/120/Stefan?colors=264653,f4a261,e76f51source.boringavatars.com/bauhaus/120/Stefan?colors=264653,2a9d8f,e9c46asource.boringavatars.com/pixel/120/Stefan?colors=26a653,2a1d8f,79646a
I just love that we have all these random APIs available these days! ๐
I'll try to extend this post in the future. If you know of more avatar APIs, shoot them my way.
Yes? Cool! You might want to check out Web Weekly for more web development articles. The last edition went out 5 days ago.




