UUID Generator
Generate UUID v4 or v7 in bulk, with optional hyphen removal
What is UUID Generator?
A UUID generator uses the browser's cryptographic random source to produce unique identifiers in bulk, supporting both random v4 and timestamp-prefixed, time-sortable v7, and can output them without hyphens or in uppercase. Generation happens entirely on your own machine.
How to use UUID Generator
- 1Pick a version: v4 for pure randomness, v7 when the IDs need to sort by creation time.
- 2Set how many to generate, up to 100 at a time.
- 3Toggle uppercase or hyphen removal as needed.
- 4Copy the whole batch with one click, or copy an individual line.
How do I do this in code?
Use the tool above for one-off work; for anything you repeat, move it into a script or your project.
// Built into modern browsers and Node 18+
const id = crypto.randomUUID();
// v7 (time-sortable) needs a library
import { v7 as uuidv7 } from 'uuid';
const sortable = uuidv7();Frequently asked questions
Should I use UUID v4 or UUID v7?+
v4 is purely random and fits any case where ordering does not matter. v7 puts a millisecond timestamp in the leading bits, so the IDs increase naturally over time; as a database primary key that gives much better index locality and faster inserts than v4. For a new project that uses UUIDs as primary keys, v7 is generally the recommended choice.
Are UUID collisions possible?+
v4 carries 122 random bits, so in practice the collision probability is negligible, provided the randomness is good. This tool uses crypto.getRandomValues, which is a cryptographically secure random source; homegrown implementations that assemble UUIDs from Math.random are not, and cannot be relied on.
Can I use a UUID as a short link or an invite code?+
Not directly, because 36 characters is far too long. Those cases are better served by Nano ID or a short ID over a custom alphabet, which lets you control the length while keeping enough randomness.
Related tools
All toolsULID Generator
Generate ULIDs and decode the timestamp embedded in each one
NanoID Generator
Generate NanoIDs at an adjustable length
ObjectId Generator
Generate ObjectIds and decode their timestamps
Password Generator
Generate strong random passwords with a configurable character set
Random String Generator
Generate random strings in bulk from a character set of your choice
Lorem Ipsum Generator
Generate Latin or Chinese placeholder text by paragraph or sentence