NanoID
[UUID](https://texonom.com/uuid-98ca3ddda44548eaaf95ec6f8d072af0) 


- Very small — 130 bytes (minified and gzipped);
- No dependencies;
- Fast — It is faster than other generators.
- Safe — It uses hardware random generator. Can be used in clusters.
- Short IDs — It uses a larger alphabet than UUID (`A-Za-z0-9_-`). So ID size was reduced from 36 to 21 symbols.
- In most of the random generators, they use unsafe Math.random(). But, NanoID uses crypto moduleand Web Crypto API which is more secure
- NanoID is 60% faster than the UUID
![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fcabfd99a-a7d8-4cbf-a459-c597ded36f30%2FUntitled.png?table=block&id=5b808c24-7c1a-455e-812f-22a5a0e4fdf2&cache=v2)





> [Why is NanoID Replacing UUID?](https://blog.bitsrc.io/why-is-nanoid-replacing-uuid-1b5100e62ed2)




