How to generate a UUID
UUIDs are unique IDs for records and keys. Here's how to generate them and which version fits your use.
v4 vs v7 — which to use
- v4 — fully random. Great for general-purpose unique IDs.
- v7 — time-ordered (timestamp + randomness). Sorts chronologically, friendlier for database primary keys.
Steps
- Open the UUID generator and pick v4 or v7.
- Set how many you need for a bulk batch.
- Copy a single UUID or the whole list.
Tools used in this guide
Related guides
How to generate a UUID — FAQ
v4 is fully random; v7 is time-ordered, which sorts nicely and is better for database keys.