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

UUID Generator

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. 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
0c90c324-52f8-4742-85e5-dbe8fb773d37
207fefac-57b7-4a96-abde-9429bc1ab428
8c0be751-993c-4b9d-b15e-c08f0673bc5f
46f1fb1d-4946-4730-a26a-6972f147d8f5
bef8bad1-9655-4fe5-8223-a3e5162e8c86
ffe6173e-c1cd-4dd5-bf47-c603713834e8
92f2a427-6062-451c-a29e-18efaaaa6222
ac962778-4c6c-4d54-a151-02529e92af2c
d484241e-0663-4ebc-8409-22b9c0911ce4
2b0bb3d2-21d5-492d-9755-825f23ed987b
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 requestsThey do not — v4 is random. If you need order, switch to v1 (time-based) or v7 (ordered, post-draft).
  • Hyphens are not wantedToggle "No hyphens" — the output becomes a raw 32-char hex string.
  • Copying 10k IDs is slowUse 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
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.

Related in Developer Tools
Regex Tester
Cron Generator
Cron Parser
Timestamp Converter
Unix Time Converter
API Tester
Curl to Code
JSON to TS