How to generate UUID v4 identifiers
UUID v4 is a random identifier commonly written as 36 characters including hyphens. Generate between 1 and 100 identifiers at a time for test fixtures or application records.
Input
Output
Choose a quantity and generate your UUIDs.
Your input is processed locally in this browser and is not uploaded by this tool. Tool activity
Steps
- Set the quantity and choose Generate UUIDs.
- Copy a single value for one record, or copy the list for a test fixture.
- Download a text file if you need to keep the batch, and confirm the target field accepts UUIDs.
Worked example
This is an example of the format. Generate a fresh value for your own data.
94c5381d-2fb2-4283-b115-2a6c537c584eWhy use this tool?
- Create random IDs for several test records in one action.
- Copy the list into a seed file or fixture without maintaining a counter.
Recognize a version 4 UUID
UUIDs normally follow the 8-4-4-4-12 hexadecimal pattern. Version 4 has a 4 at the start of the third group. Store a separate timestamp when your records need chronological ordering.
If UUIDs are record keys, a uniqueness constraint helps catch accidentally duplicated data.
Frequently asked question
Can a UUID serve as a login token?
A UUID identifies a record. Access tokens need their own generation, authorization, and expiry rules.