Skip to content

Avatars That Stand Out

DiceBear is an open source avatar library that lets you generate unique, deterministic profile pictures in no time. Whether you need geometric shapes, cute characters, or pixel art, our privacy-focused SVG avatar library gives you 52 styles to choose from.

Iris W.Product Designer
Leon B.Frontend Dev
Cara M.Team Lead
Finn H.Backend Dev
Yuki S.UX Researcher

Everything You Need

你需要的一切,都能用来为应用创建美观且独特的头像。

确定性头像

相同的 seed 总会生成相同的头像,非常适合用户资料和稳定身份。

52 种头像风格

独立艺术家手绘的角色,以及抽象、像素艺术和几何设计。

Scalable SVG

Pure SVG output stays razor-sharp at any size, from tiny favicons to full-screen, and weighs just a few kilobytes.

免费头像 API

我们的头像 API 每天处理数百万请求,全球 CDN 可在毫秒级交付头像。

Official Libraries

JavaScript, PHP, Python, Rust, Go, and Dart share one identical API across every language. The same seed gives the same result, and no data leaves your servers.

CLI

直接从命令行生成头像。非常适合批量处理和构建管道。

Figma 插件

Design custom avatar styles in Figma and export them as ready-to-use DiceBear definitions, with no code required.

高度可定制

颜色、配饰、背景等等都可以调节,精细匹配你的品牌。

100% 开源

MIT licensed core, transparent development. Contribute, fork, or self-host with confidence.

几分钟内完成集成

Choose the integration that works best for your project.

Libraries

Run DiceBear entirely in your own code, so no data leaves your servers. JavaScript, PHP, Python, Rust, Go, and Dart share one identical API.

头像 API

用于个人资料图片的免费头像 API。通过全球 CDN 每日处理数百万次请求。

https://api.dicebear.com/10.x/lorelei/svg?seed=Felix
API 文档

CLI

从命令行生成头像。非常适合脚本和自动化。

npx dicebear lorelei --seed "Felix" --format svg
命令行文档

适配你最喜欢的框架

Use DiceBear with React, Vue, Svelte, Angular and more. Simply use our HTTP-API as image source or install the JS-library.

极速传输,全球交付

Our HTTP-API is powered by a global CDN that delivers avatars with low latency and high reliability, completely free of charge.

bunny.net sponsors the CDN infrastructure for our HTTP-API. This lets us serve avatars globally with low latency, completely free of charge for you.

访问 bunny.net → 广告
1B+Month 请求量
3TB+Month 数据传输
85%+缓存命中率

DiceBear 的对比表现

Every tool has its strengths. Choose what works best for your project.

功能DiceBearBoring AvatarsAvvvatarsMultiavatarJdenticon
GitHub 星标9.2k6.4k2k1.9k1.7k
头像风格数量526211
动画头像风格18
可自定义选项广泛广泛有限有限有限
加权变体
HTTP 接口 免费 付费
命令行
语言支持JS/TS, PHP, Python, Rust, Go, DartJSJS/TSJS, PHP, PythonJS, C#, PHP
依赖项ReactReact
输出格式SVG、PNG、JPEG、WebP、AVIFSVGSVGSVGSVG、PNG
设计许可视风格而定MITMIT自定义MIT
开源
确定性

This comparison is based on publicly available information and may not reflect the latest updates. Each tool has its own strengths, so choose what works best for your project.

开源

我们坚信开源。我们的所有代码都可在 GitHub 上获取。欢迎您贡献、分叉,或放心地直接使用。

许可证

我们的代码采用 MIT 许可证。头像样式根据创作者选择的不同许可证进行授权。查看总览以了解详细信息。