Get started
HomeDeveloper ToolsUUID Generator
Developer ToolsRuns in your browser · files never uploaded

Generate UUIDs Online

v1, v4, v7 UUIDs

4.8· 43 votes
A UUID generator produces 128-bit universally-unique identifiers in the canonical 8-4-4-4-12 hex format. the StuHub generates v4 (random) by default using crypto.randomUUID() and can also emit v1 (time-based) when you need a lexicographically sortable component.
Your file never leaves this browser. Everything runs on your device — no uploads, no server storage, no retention.How it works →
UUIDs10 generated
a1e132c6-7f51-4e89-8cf5-c7aab9b679b5
c2f86916-70e3-4200-ac33-181930848b55
f5745625-4127-4215-af6e-c89998cba297
5813a848-9178-4d4f-824f-bbe2da548b46
e5442fa5-4b43-4f09-89ce-0fe834ae93a8
9ff1294e-a480-40ea-ba7d-64ab88b98d96
9fc05cde-b49e-4825-be92-095ffc7c0412
5ad28827-1fc9-4370-b5f1-9c8f54f8c08d
862fc521-70b1-4b13-8ee9-7acbe7602aee
e99e472c-8be5-49e5-80a7-d149856838c1
v4 UUIDs are cryptographically random. Uses crypto.randomUUID when available.

What is UUID Generator?

Generate cryptographically random UUIDs; v4 (purely random) or v7 (time-ordered, RFC 9562). v4 is the standard choice for most IDs; v7 is better when you want IDs that sort chronologically at the database level, which can dramatically reduce index fragmentation. Generate up to 1000 at a time and download them as a text file.

How do I use UUID Generator?

  1. Pick v4 (random) or v7 (time-ordered).
  2. Set the count.
  3. Click Generate.
  4. Copy or download the list.

UUID Generator by the numbers

Versions
v4 (random), v1 (time-based)
RNG
crypto.randomUUID / getRandomValues
Batch size
Up to 10,000 per run
Formats
With hyphens, without, uppercase
Export
Copy, download .txt / .csv

Common use cases for UUID Generator

  • Seeding primary keys for a database migration.
  • Generating 10,000 test IDs for a load-test fixture.
  • Creating a one-off correlation ID for a support ticket.
  • Producing a stable anonymous session ID inside a script.
  • Filling a column of unique values in a CSV.

Common pitfalls and how to avoid them

  • v4 IDs leak ordering across requests — They do not; v4 is random. If you need order, switch to v1 (time-based) or v7 (ordered, post-draft).
  • Hyphens are not wanted — Toggle "No hyphens"; the output becomes a raw 32-char hex string.
  • Copying 10k IDs is slow — Use the "Download .txt" option instead of copy-to-clipboard for large sets.

When should I use UUID Generator?

Use v4 when you don't need ordering. Use v7 when inserting rows in many-IDs-per-second workloads where index locality matters. For sequential, human-friendly IDs, neither is right; a tiny custom scheme is better.

Frequently asked questions

Which UUID version does it generate?

v4 by default (random) and v1 (time-based) on demand. v4 is what almost every application wants; v1 is only useful if you need a time-ordered component embedded in the ID.

Is crypto.randomUUID() used?

Yes when available; the browser's built-in generator. Falls back to crypto.getRandomValues() + v4 formatting when the API is missing.

Can I generate many UUIDs at once?

Yes. Set the count (up to 10,000) and copy the list. Useful for seeding databases or generating test IDs.

Is my file uploaded anywhere?

No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.

Tools that pair well with UUID Generator

More developer tools

Regex Tester
Cron Generator
Cron Parser
Timestamp Converter
CORS Tester
Curl to Code
JSON to TS
JSON to Python