Developer tools
UUID Generator (v4 & v7)
Create UUIDs (GUIDs) for database keys, test data and APIs: random v4, or v7 that sorts by creation time.
- Runs in your browser
- Free, no sign-up
How to use the UUID Generator (v4 & v7)
-
1
Choose version 4 (random) or 7 (time-ordered).
-
2
Set how many you need and the format.
-
3
Copy them all, copy one, or download a text file.
Frequently asked questions
v4 or v7?
v7 starts with a timestamp, so new IDs sort after old ones. That keeps database indexes compact, which is why it is a good choice for primary keys. v4 is fully random.
Can two UUIDs collide?
In practice no: a v4 UUID has 122 random bits. You would need to create billions per second for many years to expect a single duplicate.
Does Laravel support these?
Yes. Str::uuid() makes v4 and Str::uuid7() (Laravel 11+) makes v7; Eloquent's HasUuids trait uses ordered UUIDs.
Embed this tool on your site
Paste this code into your page. It's free, with no sign-up, ads or cookies.
Please keep the "Powered by Dev-Talk" link.