How to generate UUIDs
- Enter how many UUIDs you need, up to 1,000.
- Choose the format. The standard format has hyphens and lowercase letters.
- Click Copy all or download them as a text file. Press Generate new for a fresh batch.
Format options
| Option | Example |
|---|---|
| Standard | 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d |
| No hyphens | 9b1deb4d3b7d4bad9bdd2b0d7b3dcb6d |
| Uppercase with braces | {9B1DEB4D-3B7D-4BAD-9BDD-2B0D7B3DCB6D} |
| Quotes and commas | "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", |
The quotes and commas option is handy when you want to paste a list of IDs straight into a JavaScript array, a JSON file or a SQL IN (...) clause.
When to use UUIDs
- Database primary keys when records are created in several places, like mobile apps that work offline.
- Public IDs in URLs, where you do not want people guessing the next record by adding 1 to a number.
- File names for uploads, so two users uploading "photo.jpg" never clash.
- Test data and fixtures for development.
How to spot a version 4 UUID
Look at the first character of the third group. In a v4 UUID it is always a 4. The first character of the fourth group is always 8, 9, a or b. Those fixed bits tell software which version and variant it is dealing with.