UUID / GUID Generator

Generate unique UUID and GUID identifiers. Choose the version, count, format, and copy them instantly.

How the UUID Generator Works

A UUID (Universally Unique Identifier) is a 128-bit identifier defined by RFC 9562. Version 4 (v4) uses random data. Version 7 (v7) combines a Unix timestamp in milliseconds with random bits, making it better suited for time-ordered identifiers. The entire process runs in your browser.

Where It Helps

  • Primary keys in databases
  • API request and transaction identifiers
  • Unique file and resource names
  • Correlation IDs for logs and diagnostics
  • Software testing and development

Which UUID version to choose

For most cases, UUID v4 is enough. If you store identifiers in a database or frequently sort them by creation time, UUID v7 can be the more practical choice.

Version Best for Note
UUID v4 Public IDs, file names, test data, and general random identifiers The most familiar and widely supported option.
UUID v7 Database rows, logs, events, and correlation IDs Sorts more naturally by creation time.

Format, hyphens, and letter case

The common UUID form has 36 characters including hyphens. Without hyphens, it has 32 hexadecimal characters. Lowercase and uppercase represent the same value; the choice mostly depends on the system where you paste the UUID.

With hyphens
018f6f5a-6c2b-7a1e-9f2d-0b4c8e7a9123
Without hyphens
018f6f5a6c2b7a1e9f2d0b4c8e7a9123

A UUID is not a secret token

A UUID is an identifier, not a security mechanism. It may be hard to guess, but it should not replace passwords, access tokens, or authorization checks.

  • Use it as an ID for a record, file, event, or request.
  • Do not rely on it as the only protection for access.
  • If the UUID appears in a URL, treat it as a public identifier.

FAQ

What is the difference between UUID v4 and UUID v7?

UUID v4 is random and is the most commonly used version. UUID v7 includes a time component based on Unix milliseconds, so it sorts more naturally by creation time. For general use, v4 is enough; for databases and logs, v7 can be more practical.

Are generated UUIDs truly unique?

Yes. The probability of a UUID v4 collision is extremely low (1 in 2122). UUID v7 combines a time component with random bits, so it is also practically unique in normal use.

What is the difference between UUID and GUID?

UUID (Universally Unique Identifier) and GUID (Globally Unique Identifier) are essentially the same thing. The term GUID is more common in Microsoft environments, while UUID is the standard term in RFC 9562, which replaced the older RFC 4122.