DiceBear Avatar Generator

30+ styles: Adventurer, Lorelei, Bottts, Pixel Art, Notionists, Rings, and more

MIT SVG, PNG, WebP npm API

Playground

Changes update the preview instantly. Nothing is uploaded.

DiceBear avatar preview

Ready-to-use samples

Copy the URL or download the file.

  • DiceBear avatar: adventurer

    adventurer

  • DiceBear avatar: avataaars

    avataaars

  • DiceBear avatar: big-ears

    big-ears

  • DiceBear avatar: bottts

    bottts

  • DiceBear avatar: croodles

    croodles

  • DiceBear avatar: fun-emoji

    fun-emoji

  • DiceBear avatar: lorelei

    lorelei

  • DiceBear avatar: micah

    micah

  • DiceBear avatar: notionists

    notionists

  • DiceBear avatar: open-peeps

    open-peeps

  • DiceBear avatar: pixel-art

    pixel-art

  • DiceBear avatar: thumbs

    thumbs

Usage

HTTP API

<img
  src="https://api.dicebear.com/9.x/adventurer/svg?seed=felix"
  alt="Avatar" width="80" height="80" />

npm

npm i @dicebear/core @dicebear/collection

import { createAvatar } from '@dicebear/core';
import { adventurer } from '@dicebear/collection';

const avatar = createAvatar(adventurer, { seed: 'felix' });
const svg = avatar.toString();

React

import { createAvatar } from '@dicebear/core';
import { adventurer } from '@dicebear/collection';

function Avatar({ seed }: { seed: string }) {
  const svg = createAvatar(adventurer, { seed }).toString();
  return <div dangerouslySetInnerHTML={{ __html: svg }} />;
}

About DiceBear

The most comprehensive avatar library. Generates avatars from a seed string using 30+ professionally designed styles. Available as an HTTP API, npm package, CLI, and Figma plugin. Individual styles carry their own licenses (MIT, CC0, CC-BY-4.0, or free commercial use).

Best for: Default user avatars, profile pictures, placeholder images at any scale

License
MIT
Output
SVG, PNG, WebP
Deterministic
Yes
Hosted API
Yes
Package
@dicebear/core
Links
Docs GitHub

Other avatar generators

Compare all 14 libraries

Frequently Asked Questions

Is DiceBear free to use commercially?
DiceBear is licensed under MIT. This is a permissive license: you can use it in commercial projects with no royalties, though MIT requires keeping the license notice.
What output formats does DiceBear support?
DiceBear generates avatars as SVG, PNG, WebP. SVG output scales to any size without quality loss, useful for retina displays and print.
Should I use the DiceBear API or the npm package?
Use the HTTP API for quick prototypes or server-rendered <img> tags with zero install. Switch to the npm package for production traffic: no external network dependency, no rate limits, and it works offline.
Does the same seed always produce the same DiceBear avatar?
Yes. DiceBear is fully deterministic: the same seed value always renders the identical avatar, so you never need to store the generated image.