DiceBear - Your alternative to boring avatars
If you are looking for a fresh alternative to boring avatars, then DiceBear is exactly what you are looking for. With DiceBear you can create fascinating and unique avatars in no time. Whether you're looking for geometric shapes, cute characters or even pixel art, DiceBear offers a wide range of avatar styles to bring your projects to life.
One of the coolest aspects of DiceBear is the ability to create deterministic avatars. This means you can generate the same avatar for every username or email address - perfect for user profiles! Imagine how excited your users will be when they see their customized avatars on your website or app. DiceBear makes it possible - easy, super fast and a lot of fun!
Many different avatar styles!
You can choose from 30 different avatar styles by fantastic artists. Here is just a small sample.
Just wanna see all of them? Check out our overview!
Easy to use
Integration into your platform is a breeze thanks to the available JavaScript library, HTTP-API and even Command-line API.
HTTP-API
Our free, fast and stable HTTP-API handles tens of millions of requests daily. You can create SVG, PNG, JPEG, WebP, and AVIF avatars for your projects without a subscription. And thanks to the global CDN of our sponsor bunny.net, the avatars are just a hop, skip and a jump away from your users.
Take a look at our HTTP-API documentation.
JS-Library
Alternatively, you can use the JavaScript library and CLI, which do not send any data to us. Also the JavaScript library is very easy to use:
import { createAvatar } from '@dicebear/core';
import { lorelei } from '@dicebear/collection';
let svg = createAvatar(lorelei, {
seed: 'your-custom-seed',
// any other options you want to add
}).toString();
console.log(svg); // Here is your unique SVG avatar!
Read more about the JS library and CLI in our documentation.
Integration in React, Vue, Svelte, etc.
You can also use DiceBear with React, Vue, Svelte and similar without any problems. Simply use our HTTP-API as an image source or install the JS-library and use it as follows:
import { useMemo } from 'react';
import { createAvatar } from '@dicebear/core';
import { lorelei } from '@dicebear/collection';
function App() {
const avatar = useMemo(() => {
return createAvatar(lorelei, {
size: 128,
// ... other options
}).toDataUri();
}, []);
return <img src={avatar} alt="Avatar" />;
}
export default App;
<script setup>
import { onMounted, ref } from 'vue';
import { createAvatar } from '@dicebear/core';
import { lorelei } from '@dicebear/collection';
const avatar = createAvatar(lorelei, {
size: 128,
// ... other options
}).toDataUri();
</script>
<template>
<img :src="avatar" alt="Avatar" />
</template>
<script>
import { createAvatar } from "@dicebear/core";
import { lorelei } from "@dicebear/collection";
let avatar = createAvatar(lorelei, {
size: 128,
// ... other options
}).toDataUri();
</script>
<img src={avatar} alt="Avatar" />
Read more about the use in react, vue, svelte, etc. in our guides.
Open Source
We believe in open source. All our code is available on GitHub. Feel free to take a look at our code and contribute. If you have any questions, feel free to open an issue.
License
While our code is MIT licensed, the avatar styles are licensed under different licenses that the artists can choose themselves. For a quick overview we have created an license overview for you.