Format Code Now
/

Random UUID Generator

RG-09

Press Random UUIDs (v4) to get a list of random UUIDs, one per line. Add braces, capitals or remove the hyphens to fit GUID style or your database.

Runs in your browser. Nothing is uploaded.

Not used. Press the button to generate.

UUIDs

How to use it

  1. Choose How many, from 1 up to 1000.
  2. Press Random UUIDs (v4). Press again for a fresh list.
  3. Tick UPPERCASE, Braces or untick Hyphens if your system needs another style.
  4. Copy the list or download it as a .txt file.

What random UUIDs are

A version 4 UUID has 128 bits, of which 122 are random and 6 mark the version and variant. They look like 3f2504e0-4f89-41d3-9a0c-0305e82c3301, with a 4 at the start of the third group. Values come from crypto.getRandomValues, so duplicates are astronomically unlikely, though not impossible.

Bulk output for tests and seeding

The page is set up for lists: pick 100, 500 or 1000 and copy them as lines for a SQL insert, a fixture file or a spreadsheet column. Braces and capitals produce the Microsoft GUID look. Removing hyphens gives 32 hex characters. These choices change only the writing of the value.

When to use the time-ordered button

The second button makes version 7 UUIDs instead. They begin with the time in milliseconds, so they sort by creation time, which can help database indexes, but they reveal roughly when they were made. A UUID is an identifier, not a secret, so do not use it as a password or token. The full UUID Generator page has more detail.

Questions people ask

How do I generate a random UUID?

Press Random UUIDs (v4). Each line is a new version 4 UUID made in your browser. Choose a higher count to make a list.

How do I generate 1000 UUIDs at once?

Set How many to 1000 and press Random UUIDs (v4). Copy the whole list or download it as a text file with one UUID per line.

Is a random UUID the same as a GUID?

They are the same 128-bit value. GUID is the Microsoft name and is often shown in capitals inside braces. Tick UPPERCASE and Braces to get that look.

Can two random UUIDs be the same?

In theory yes, in practice no. With 122 random bits, you would need to make about a billion UUIDs every second for many years before a repeat became likely. Do not rely on that for security, only for uniqueness.

Can I remove the dashes from a UUID?

Yes. Untick Hyphens and each UUID is written as 32 hex characters with no dashes. The value is unchanged, only the formatting.

Is it safe to use a UUID as a password?

No. A UUID is meant to identify something, not to protect it. Use a password generator for secrets. Version 4 values are hard to guess, but their format is well known and many systems log them.

About this tool

Random UUIDs are version 4: 122 of the 128 bits are random, the other 6 mark the version and variant. The time-ordered button makes version 7 instead, which begins with the current time in milliseconds, so it shows when the value was created. UUIDs are generated with crypto.getRandomValues. A UUID is an identifier, not a secret: do not use one as a password or token. Options only change how the value is written (capitals, braces, hyphens), not the value. Each click makes new ones; nothing is stored or sent.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.