APIs to generate random user avatars
- Published at
- Updated at
- Reading time
- 2min
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! ๐ฏ
api.dicebear.com/7.x/pixel-art/svg
api.dicebear.com/7.x/bottts/png
api.dicebear.com/7.x/lorelei/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-one
robohash.org/stefan-two
robohash.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=male
xsgames.co/randomusers/avatar.php?g=female
xsgames.co/randomusers/avatar.php?g=pixel
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.
Join 6.1k readers and learn something new every week with Web Weekly.