UUID generator – v4 and v7 UUIDs in bulk
Generate random UUID v4 or time-ordered UUID v7 identifiers, one or up to 1,000 at a time, in the format you need. Uses your browser’s secure random generator. Also validates and decodes any UUID.
What is a UUID?
A UUID (universally unique identifier), also called a GUID in the Microsoft world, is a 128-bit ID written as 32 hexadecimal characters in five groups: 123e4567-e89b-42d3-a456-426614174000. UUIDs can be created anywhere – on a phone, a server or in a browser – without a central database, and the chance of two being the same is practically zero.
UUID v4 or v7?
| UUID v4 | UUID v7 | |
|---|---|---|
| Made from | 122 random bits | Unix time in milliseconds + random bits |
| Sort order | Random | Sorted by creation time |
| Best for | Tokens, file names, general IDs | Database primary keys – better index performance |
| Hides creation time? | Yes | No – the time can be read from the ID |
UUID v7 is defined in RFC 9562 (2024), which replaced the older RFC 4122.
Generate UUIDs in code
| Language | Code |
|---|---|
| JavaScript | crypto.randomUUID() |
| Kotlin / Java | UUID.randomUUID().toString() |
| Python | str(uuid.uuid4()) |
| Swift | UUID().uuidString |
| PostgreSQL | gen_random_uuid() |
| C# | Guid.NewGuid() |
Frequently asked questions
Are these UUIDs really unique?
Version 4 UUIDs have 122 random bits from a cryptographically secure generator, so the chance of a duplicate is astronomically small – far smaller than a hardware error.
What is the difference between a UUID and a GUID?
They are the same thing. GUID is the name Microsoft uses; UUID is the name in the official standard.
Should I use UUID v7 for database keys?
Often yes. v7 UUIDs are ordered by time, so new rows are added at the end of the index, which is faster than random v4 keys in most databases.
Can I generate UUIDs without hyphens or in uppercase?
Yes. Tick “No hyphens”, “UPPERCASE”, braces or quotes to get the exact format your code needs.
Are the UUIDs sent to a server?
No. They are generated in your browser and never leave your device.
Need a website or app built?
We design and build websites and Android apps for clients worldwide – clear scope, fixed price, fast delivery.
Techpass Master Technologies · Websites, Android apps and digital marketing
