DiceBear is a privacy-focused, open source avatar library with 50 avatar styles, from hand-drawn characters to abstract patterns. Generate deterministic profile pictures via API, JS library, PHP library, Python library, Rust library, Go library, Dart library & CLI.
Use any string as a seed, such as usernames, emails, or IDs, and DiceBear generates the identical avatar consistently across all platforms.
https://api.dicebear.com/10.x/lorelei/svg?seed=Feliximport { Style, Avatar } from '@dicebear/core';
import definition from '@dicebear/styles/lorelei.json' with { type: 'json' };
const style = new Style(definition);
const avatar = new Avatar(style, {
seed: 'Felix'
});<?php
use Composer\InstalledVersions;
use DiceBear\Style;
use DiceBear\Avatar;
$basePath = InstalledVersions::getInstallPath('dicebear/styles');
$style = Style::fromJson(file_get_contents($basePath . '/src/lorelei.json'));
$avatar = new Avatar($style, [
'seed' => 'Felix'
]);from importlib.resources import files
from dicebear import Avatar, Style
style = Style.from_json(
files("dicebear_styles").joinpath("lorelei.json").read_text("utf-8")
)
avatar = Avatar(style, {
"seed": "Felix"
})use dicebear_core::{Avatar, Style};
use serde_json::json;
let style = Style::from_str(dicebear_styles::LORELEI)?;
let avatar = Avatar::new(&style, json!({
"seed": "Felix"
}))?;import (
dicebear "github.com/dicebear/dicebear-go/v10"
"github.com/dicebear/styles/v10"
)
style, _ := dicebear.NewStyle([]byte(styles.Lorelei))
avatar, _ := dicebear.NewAvatar(style, map[string]any{
"seed": "Felix",
})import 'package:dicebear_core/dicebear_core.dart';
import 'package:dicebear_styles/lorelei.dart';
final style = Style.parse(lorelei);
final avatar = Avatar(style, {
'seed': 'Felix',
});npx dicebear lorelei --seed 'Felix'Lorelei is a remix of Lorelei by Lisa Wischofsky, licensed under CC0 1.0.
Cute characters, abstract patterns, pixel art, and detailed illustrations. Some styles come from independent artists, others we designed ourselves.
From two-person side projects to global platforms, DiceBear powers the avatar layer wherever identity needs a face.
Give every user a unique avatar from day one. No upload, no Gravatar fallback, no awkward gray silhouette.
Instantly recognizable participants. Deterministic from a user ID, so the same person looks the same on every device.
Generate millions of unique player identities, NPCs and bots. The same seed gives the same character every session.
Distinct identities help build community trust. New users feel welcome with a face from the very first post.
Visual distinction for team members in collaborative apps. In cursors, mentions, and sidebars, every face stays consistent.
Beautiful default profile pictures while users set up their account, and a graceful fallback when uploads fail.
No developer? No problem! Our avatar maker lets anyone create custom profile pictures without writing a single line of code. Just pick, click, and download.
Click to customize hair, eyes, accessories, and more.
Mix and match colors and styles to create your unique look.
Save your avatar and use it anywhere you like.
Design your avatar style visually in Figma. Our plugin handles the technical export, with no coding required.
Create your avatar components visually. Group colors and parts using our simple naming conventions.
Use the DiceBear Figma plugin to configure options and export your style as a ready-to-use package.
Run npm install and npm run build. Your custom style is ready to generate avatars.
DiceBear is built in the open. Our core library is MIT licensed, and we believe in transparent development. Join thousands of developers who already love DiceBear.