# ID generators

Make unique IDs for records, links and files. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Nano ID](https://elestia.ai/opensource/ids/nanoid/index.md) | 8.5 | 7.2 | 8.6 | 8.3 | 8.8 | 7.7 | 7.4 | Projects that need short, secure, URL-safe random IDs in the browser or on the server, with no dependencies. |
| 2 | [uuid](https://elestia.ai/opensource/ids/uuid/index.md) | 7.9 | 6.9 | 8.1 | 7.3 | 8.6 | 6.8 | 7.0 | Projects that need standard UUIDs, especially time-ordered v7 or deterministic v5, for databases and external systems. |
| 3 | [ulid](https://elestia.ai/opensource/ids/ulid/index.md) | 6.5 | 5.7 | 6.6 | 5.1 | 5.9 | 5.7 | 6.7 | Projects that want short, time-sortable, case-insensitive string IDs and prefer the ULID format. |
| 4 | [uuidv7](https://elestia.ai/opensource/ids/uuidv7/index.md) | 6.4 | 5.1 | 7.8 | 5.7 | 4.1 | 4.8 | 6.5 | Projects that need only time-ordered UUIDv7 keys and want a tiny, zero-dependency generator with strong ordering inside one process. |
| 5 | [cuid2](https://elestia.ai/opensource/ids/cuid2/index.md) | 6.2 | 5.8 | 6.4 | 5.9 | 4.7 | 5.9 | 6.8 | Teams that want non-sequential, hard-to-guess string IDs for public records or URLs and accept slower generation. |
| 6 | [Sqids](https://elestia.ai/opensource/ids/sqids/index.md) | 6.1 | 3.9 | 6.6 | 4.3 | 4.1 | 4.3 | 7.5 | Projects that want to show integer primary keys as short, reversible IDs in URLs. |
| 7 | [short-uuid](https://elestia.ai/opensource/ids/short-uuid/index.md) | 5.6 | 4.1 | 6.3 | 4.9 | 3.9 | 4.3 | 6.6 | Teams that store standard UUIDs in their database and want short, reversible IDs in URLs and APIs. |
| 8 | [TypeID](https://elestia.ai/opensource/ids/typeid/index.md) | 5.4 | 4.9 | 6.6 | 4.0 | 3.7 | 3.9 | 6.4 | TypeScript teams that want prefixed, sortable IDs that convert to UUIDs and match TypeID libraries in other languages. |
| 9 | [Hashids](https://elestia.ai/opensource/ids/hashids/index.md) | 4.1 | 3.3 | 5.9 | 3.1 | 4.5 | 3.7 | 6.8 | Existing projects that already store or publish Hashids-encoded IDs and need them to keep decoding. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Nano ID | 1.5B | ×5.3 | 27k | 139 | Oct 2026 | 4 |
| uuid | 1.6B | ×2.3 | 15k | 36 | Oct 2026 | 1 |
| ulid | 70M | ×6.9 | 3.4k | 3 | Nov 2025 | 0 |
| uuidv7 | 17M | ×6.0 | 272 | 25 | Mar 2026 | 0 |
| cuid2 | 120M | ×3.7 | 3.4k | 48 | Jan 2026 | 0 |
| Sqids | 19M | ×41 | 912 | 0 | Sept 2023 | 0 |
| short-uuid | 3.8M | ×2.1 | 523 | 15 | Dec 2025 | 0 |
| TypeID | 13M | ×11 | 443 | 6 | Feb 2025 | 0 |
| Hashids | 3.3M | ×3.0 | 4.3k | 2 | May 2023 | 0 |

All categories: https://elestia.ai/opensource/index.md
