Tools · Text · UUID generator · Guides
UUID generator guides
Three short reads: why this matters, how to do it, and one specific way to use it.
Why a Random UUID Isn't a Sortable ID (and When That Matters)
A v4 UUID is unique, but it carries no order at all. Use one as a database primary key without knowing that, and you'll eventually wonder why inserts got slower and rows never come back in the order you added them.
Read the guideHow to Generate a Batch of UUIDs for a Database Seed or Test Fixture
Set a count, pick a format, and up to 1,000 real v4 UUIDs are ready to copy or download as a .txt file - generated with the same CSPRNG browsers use for security-sensitive values, not Math.random().
Read the guideUUID v4 vs Auto-Increment: Choosing a Primary Key Strategy
Neither one is universally right. Here's the actual tradeoff between a UUID v4 and an auto-increment integer for a new table's primary key, and the middle-ground options worth knowing about.
Read the guide