Advertisement
Advertisement

UUID Generator

Generate random UUID v4 identifiers, one or many at a time.

How to use UUID Generator

  1. Choose how many UUIDs you need.
  2. Click Generate.
  3. Copy a single ID or the whole batch at once.

What a UUID is and why version 4 is common

A UUID (universally unique identifier), also called a GUID, is a 128-bit value written as 32 hexadecimal characters in five groups, for example 123e4567-e89b-42d3-a456-426614174000. Version 4 UUIDs are built almost entirely from random numbers, with a few fixed bits that mark the version and variant. Because there are about 5.3 x 10^36 possible values, the chance that two independently generated version 4 UUIDs match is so small that software treats them as unique without checking a central registry.

That property is why UUIDs are used as database keys, file names for uploads, session and request identifiers, order numbers, and test data. Different systems can create IDs at the same time without talking to each other and still not collide.

Choosing a format

The generator can output the standard form with dashes, a compact form without dashes, uppercase letters, or the braced form some Windows tools and configuration files expect. All of them represent the same value, so pick the one your system accepts. Most databases and programming languages accept the lowercase dashed form.

Randomness, privacy and limits

The values are produced with your browser's cryptographically secure random number generator, not with a simple predictable function, and nothing is sent to a server. Even so, a UUID is an identifier, not a secret. Do not use one as a password or an access token that protects private data, because anyone who learns it can use it. For that job use the password generator and a proper authentication system.

For large batches, generate the number you need, use Copy all, and paste the list into a spreadsheet or script. If you need ordered or time-based IDs for database performance, look at version 7 UUIDs in your database's documentation; this tool produces version 4 only.

Why collisions are not a worry

A version 4 UUID uses 122 random bits. The number of possible values is so large that two generators are extremely unlikely ever to produce the same one, which is why systems can create identifiers independently without checking a central list.

When to use them and when not to

UUIDs are good for database record IDs, file names, test data and tracking IDs. They are identifiers, not secrets, so do not use one as a password or access token. Random IDs also sort in no particular order, which can matter for large databases.

Format choices

The standard form has hyphens, such as 8-4-4-4-12 groups of characters. No-dashes form is handy for file names and URLs, uppercase may be required by some older systems, and braces are used in some Windows and database tools. All of them represent the same value, so choose the one your system expects.

Frequently asked questions

What is a UUID used for?
A UUID (Universally Unique Identifier) is a 128-bit value used in software to identify records, sessions, or objects in a way that's virtually guaranteed not to collide with any other ID, even across different systems generating them independently.

Which version does this generate?
Version 4, which is randomly generated — the most commonly used version for general-purpose unique IDs in databases and applications.

Could two generated UUIDs ever be the same?
It's mathematically possible but so astronomically unlikely (roughly 1 in 5.3×10^36 for any two to collide) that it's treated as effectively impossible in practice.

Advertisement

You might also need