Jdenticon
JavaScript library for generating highly recognizable identicons using HTML5 canvas or SVG.
![]()
Live demo
Getting started
Using Jdenticon is simple. Follow the steps below to integrate Jdenticon into your website.
1. Add identicon placeholders
Jdenticon is able to render both raster and vector identicons. Raster icons are rendered
slightly faster than vector icons, but vector icons scale better on high resolution screens.
Add a canvas to render a raster icon, or an inline svg element to render a vector icon.
123456 <svg width="80" height="80" data-jdenticon-value="icon value">svg> <canvas width="80" height="80" data-jdenticon-value="icon value">canvas>
2. Add reference to Jdenticon
Include the Jdenticon library somewhere on your page. You can either host it yourself or
use it right off jsDelivr.
123456789 integrity="sha384-LfouGM03m83ArVtne1JPk926e3SGD0Tz8XHtW2OKGsgeBU/UfR0Fa8eX+UlwSSAZ" crossorigin="anonymous">script> <script src="-path-to-/jdenticon.min.js">script>
That’s it!
Other resources
API documentation
For more usage examples and API documentation, please see:
Other platforms
There are ports or bindings for Jdenticon available for the following platforms:
License
Jdenticon is available under the MIT license.
免责声明 © 2026 - 虚宝阁
本站部分源码来源于网络,版权归属原开发者,用户仅获得使用权。依据《计算机软件保护条例》第十六条,禁止:
- 逆向工程破解技术保护措施
- 未经许可的分发行为
- 去除源码中的原始版权标识
※ 本站源码仅用于学习和研究,禁止用于商业用途。如有侵权, 请及时联系我们进行处理。