Home › Blog › How to generate UUIDs
Developer Tools guide

How to generate UUIDs

UUIDs are used as database keys, request ids and file names. Version 4 is fully random; version 7 starts with a timestamp so values sort by creation time.

Open the UUID Generator tool

Step by step

  1. Choose version. Version 4 is random; version 7 is time-ordered.
  2. Set options. Choose how many and the format.
  3. Copy or download. Copy the list or save it as a text file.

Tips for better results

  • Choose v7 when the ids will be used as database primary keys, since they sort in time order.
  • Use no hyphens for compact ids, or braces for some Windows and .NET formats.
  • UUIDs are identifiers, not secrets. Do not use them as passwords.

Limits to know

  • Formats: UUID (RFC 9562)
  • Size: Limited by browser memory
  • Notes: Version 7 values created in the same millisecond are made strictly increasing by adding one millisecond, so they stay sorted.

At a glance

ToolUUID Generator
CategoryDeveloper Tools
Works withUUID (RFC 9562)
Size limitLimited by browser memory
Where it runsIn your browser tab; your input is not uploaded
CostFree, no sign-up

Frequently asked questions

Are these random enough?

Yes. They use your browser’s cryptographically secure random generator.

What is the difference between v4 and v7?

v4 is all random bits. v7 holds a millisecond timestamp first, then random bits, so ids created later sort later.

Can two UUIDs be the same?

It is practically impossible with random 122-bit values.

If something does not work

  • The result says a value is invalid. Check that every field has a number in the allowed range; the message names the field.
  • The numbers look different from another calculator. Rounding, rate and date conventions differ between calculators. Compare the assumptions shown with the result.
  • The page does not update. Reload it and try again; if it still fails, report it.
  • Is the answer advice? No. Results are estimates for general information.

Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.

Related tools and guides

More tools like this are in Developer Tools, or browse all tools.