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

UUID Generator

v1, v4, v7 UUIDs

5.0· 1 votes
A UUID generator produces 128-bit universally-unique identifiers in the canonical 8-4-4-4-12 hex format. TheStuHub 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
ff568958-9fa0-4a86-bc07-e76f72c66cc7
7ce69ef7-86f1-4831-9d9e-391427b6d4ff
c234d6cf-9b3f-4923-9185-e09d12506672
b74171ae-2c44-4a69-b6c9-6d31189a85dc
9ce4423e-9a18-41b7-a966-11f43cd1346b
051dbaf8-d61c-40a2-83b5-88a66f16a7e4
71a6647c-8fbd-46de-88d1-0e1d2a813128
849831f2-25a0-4dff-afca-4353ef325fd3
287c5e0e-6672-4971-bb7d-69f431d3fc72
1ed11696-f274-43a7-be01-241f320ed34c
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