Skip to content

Pick a seed.Get an avatar.

DiceBear is a privacy-focused, open source avatar library with 35+ avatar styles crafted by talented artists. Generate deterministic profile pictures via API, JS library, PHP library, Python library, Rust library, Go library & CLI.

相同种子,相同头像。
每一次都一致。

任何字符串都可以作为种子,例如用户名、邮箱或 ID,DiceBear 都能在所有平台上稳定生成完全一致的头像。

种子演示器
https://api.dicebear.com/10.x/lorelei/svg?seed=Felix
import { 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');
$definition = json_decode(file_get_contents($basePath . '/src/lorelei.json'), true);

$style = new Style($definition);
$avatar = new Avatar($style, [
  'seed' => 'Felix'
]);
import json
from importlib.resources import files

from dicebear import Avatar, Style

definition = json.loads(
    files("dicebear_styles").joinpath("lorelei.json").read_text("utf-8")
)

style = Style(definition)
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",
})
npx dicebear lorelei --seed 'Felix'

Lorelei 是以下作品的再创作: Lorelei ,作者为 Lisa Wischofsky ,许可证为 CC0 1.0.

Built for every application.

From two-person side projects to global platforms, DiceBear powers the avatar layer wherever identity needs a face.

User Profiles

Give every user a unique avatar from day one. No upload, no Gravatar fallback, no awkward grey silhouette.

Hey 👋
How's the launch?
Going great!

Chat Applications

Instantly recognisable participants. Deterministic from a user ID, so the same person looks the same on every device.

LV 47
LV 32
LV 88

Gaming

Generate millions of unique player identities, NPCs and bots — same seed, same character, every session.

posyAnyone tried the new beta?
renYep — runs 2× faster.
ivoSubmitted a PR for the bug.

Forums & Communities

Distinct identities help build community trust. New users feel welcome with a face from the very first post.

Lex HartDesign
Mae ParkEngineering
Sam ItoProduct
Avery LinMarketing

Team Tools

Visual distinction for team members in collaborative apps. Cursors, mentions, sidebars — every face stays consistent.

Placeholder Images

Beautiful default profile pictures while users set up their account — and a graceful fallback when uploads fail.

DiceBear Editor

无需代码的头像制作器

没有开发者?没问题!我们的头像制作工具让任何人都能创建自定义个人资料图片,无需编写一行代码。只需选择、点击,然后下载。

无需写代码

点击即可自定义头发、眼睛、配饰等。

无限组合

自由混合颜色和风格,打造独特外观。

下载为 PNG

保存头像并在任何地方使用。

用 Figma 创建
属于你的风格

Design your avatar style visually in Figma. Our plugin handles the technical export – no coding required.

1

在 Figma 中设计

通过可视化方式创建头像组件,并用简单命名约定组织颜色与部件。

2

使用插件导出

使用 DiceBear Figma 插件配置选项,并将风格导出为可直接使用的包。

3

构建并使用

运行 npm install 和 npm run build,你的自定义风格就可以开始生成头像。

脸部
脸部/圆形
脸部/椭圆
眼睛
眼睛/开心
眼睛/眨眼
嘴巴
嘴巴/微笑

免费且开源
永远如此。

DiceBear 是在开放环境中构建的。我们的核心库采用 MIT 许可证,我们倡导透明开发。加入成千上万已经喜爱 DiceBear 的开发者行列。