UUID generator.

Generate universally unique identifiers with your browser’s cryptographic random number generator: random v4, or v7 that sorts by creation time.

Runs in your browser. Nothing you enter is sent to KRA Digital or anyone else.

More developer tools · All 55 free tools

How to use it

  1. Choose version 4 for general-purpose random IDs, or version 7 for database keys that should sort by time.
  2. Set how many you need (up to 1,000) and the format.
  3. Copy them or download a text file.
  4. Paste any UUID into “Inspect” to see its version and, for v7, when it was created.

Questions

Can two UUIDs collide?

In practice, no. A v4 UUID has 122 random bits, so the chance of a duplicate is negligible for any realistic number of IDs, provided a good random source is used — this tool uses crypto.getRandomValues.

When should I use UUID v7?

When IDs are database primary keys. v7 starts with a millisecond timestamp, so new rows are inserted in order, which is friendlier to indexes than fully random v4 IDs.

Is a UUID secret?

No. Don’t use UUIDs as passwords or security tokens; v7 even reveals its creation time. Use a dedicated token generator for secrets.

Let’s build something great.

Tell us what you want to build, who it is for and what it needs to do. We’ll help you define a practical next step.

Start a project