Skip to the content

Contact usFree tools · No signup · Files stay on your device

Developer Tools

UUID Generator: the complete guide to UUID v4 and v7

UUID Generator: the complete guide to UUID v4 and v7

A UUID is a 128-bit identifier that you can create anywhere, without asking a database or server, and still expect it to be unique. They are used as primary keys, order numbers, file names, session IDs and test data. Our free UUID Generator makes up to 1,000 of them at once, in version 4 (random) or version 7 (time-ordered), formats them for code or SQL, and includes a small inspector that reads the version and timestamp of any UUID you paste.

This guide covers every control on the page and shows how to get the list into the shape your project needs. If you are still deciding between the two versions, read UUID v4 vs v7: which to use for database keys. If you need to check IDs that already exist, the UUID Validator guide is the right place.

What UUID Generator does

It produces a list of UUIDs, one per line, using your browser's secure random number source. You choose the version, how many, and how they are written. It also lets you copy the list or download it as a text file, and it can inspect a single UUID.

It does not store anything, check a list against your database, or guarantee that two sessions will never overlap. It relies on the size of the random space, which makes accidental repeats effectively impossible, but it cannot see what you already have in a table.

A UUID looks like this: 58319c47-2c7c-4aab-905b-a89ba20f0c57. It is 32 hexadecimal digits in five groups (8-4-4-4-12). Two digits carry meaning. The first digit of the third group is the version (here 4), and the first digit of the fourth group is the variant (here 9, which is the standard family).

How to use UUID Generator, step by step

  1. Open UUID Generator. A first list of five v4 UUIDs is already made.
  2. Under UUID version, choose "Version 4 (random)" or "Version 7 (time-ordered)".
  3. In "How many (1–1000)", type the number you need.
  4. Tick any formatting options: UPPERCASE, No hyphens, {Braces}, Quotes, Comma after each.
  5. Press Generate for a fresh list whenever you want new values.
  6. Press Copy on the list, or Download .txt to save it as uuids-v4.txt or uuids-v7.txt (the site adds its "Tech Solution Point - " prefix to every download).

The panel title tells you what you have, for example "5 UUIDs (v4)". Changing the version or the number regenerates the list at once. Changing the formatting does not, it only rewrites the same IDs.

Every option explained

Version 4 (random)

Every bit except the version and variant markers is random, which gives 122 random bits. Nothing in the ID reveals when or where it was made. Use it as the default for public identifiers, such as in a link, because it says nothing about you.

Version 7 (time-ordered)

The first 48 bits are the current Unix time in milliseconds, followed by random bits. New IDs therefore sort after older ones. That is friendlier to database indexes, but it also means the creation time can be read from the ID. When you generate a batch, the tool keeps the order inside one millisecond too, using a small counter, so a batch of 1,000 sorts exactly as it was generated.

How many (1–1000)

Accepts whole numbers from 1 to 1,000. If you type 0, a negative number or something above 1,000, the box is corrected when you click away: values above 1,000 become 1,000, and anything below 1 becomes 1.

UPPERCASE

Writes the letters A to F in capitals. UUIDs are compared without regard to case, so this is only about the look. Some Microsoft tools and older systems show GUIDs in capitals.

No hyphens

Removes the four hyphens, giving 32 characters in a row, for example 58319c472c7c4aab905ba89ba20f0c57. Some systems store UUIDs this way in a CHAR(32) column.

{Braces}

Wraps each ID in curly braces, the style used by Windows registry entries and .NET GUID strings.

Quotes

Choose None, 'single' or "double". The quote goes around each ID, after braces if you used them.

Comma after each

Adds a comma at the end of every line except the last. That makes the list ready to paste into an array or a SQL IN (…) clause without trailing-comma errors.

What the formatting options produce

Three IDs in a few common shapes:

Default
58319c47-2c7c-4aab-905b-a89ba20f0c57
6b90eaee-205e-4fea-ab1c-af70b6d5da4d
c50afc54-158b-4b77-a23b-1d4ee1b92f7c

Single quotes + Comma after each (for SQL)
'58319c47-2c7c-4aab-905b-a89ba20f0c57',
'6b90eaee-205e-4fea-ab1c-af70b6d5da4d',
'c50afc54-158b-4b77-a23b-1d4ee1b92f7c'

UPPERCASE + {Braces} (GUID style)
{58319C47-2C7C-4AAB-905B-A89BA20F0C57}
{6B90EAEE-205E-4FEA-AB1C-AF70B6D5DA4D}
{C50AFC54-158B-4B77-A23B-1D4EE1B92F7C}

Options combine freely. For a JSON array of strings, choose double quotes and Comma after each, then add the square brackets yourself. For a CSV column, leave everything off.

A worked example: test data for an order table

Suppose you are testing an order system and need 20 order IDs. Choose Version 7, type 20, and press Generate. Tick Single quotes and Comma after each. Press Copy and paste the lines into an insert statement:

INSERT INTO orders (id, customer_phone, total_bdt) VALUES
('…', '01712345678', 1250),
('…', '01812345678', 720);

Because the IDs are version 7, they sort in the order you created them, so the rows you inserted last appear last when you order by id. That mimics real production data better than random v4 values would.

Inspect a UUID

The panel named "Validate / inspect a UUID" has a box labelled "Paste a UUID". It accepts the hyphenated form, plain hex, a {braced} form and the urn:uuid: form. If the box is empty, a button lets you inspect the first UUID in your generated list.

For a valid UUID it shows:

  • Canonical: the clean lowercase hyphenated form.
  • Version: for example "v4 — random" or "v7 — Unix-time-ordered".
  • Variant: for standard IDs, "RFC 9562 / RFC 4122 (10xx)".
  • Timestamp: for v7, and also for v1 and v6, the embedded time as an ISO date, in your local time, and in milliseconds.

For example, 0190f5a8-7c3e-7b2a-9f1d-3c4e5a6b7c8d is a version 7 UUID that was created at 2024-07-27T19:26:18.174Z. A v4 UUID has no timestamp row, because it has no time inside it. If something is wrong, you get a red note: "Not a valid UUID. Expected 32 hex digits, e.g. 550e8400-e29b-41d4-a716-446655440000." For a more detailed reason, such as which character is wrong, use the UUID Validator.

What it accepts and its limits

  • Count: 1 to 1,000 per list.
  • Versions: v4 and v7 only. For other versions, the inspector can still read them, but the tool will not create them.
  • Output: one UUID per line. The list shows up to a fixed height with a scroll bar, and Copy and Download include every line.
  • Browser support: v4 uses the browser's built-in UUID function when it exists, and otherwise builds one from secure random bytes. Either way the randomness is cryptographic.

Privacy

The UUID Generator runs entirely in your browser. The values are made on your device, and nothing is sent to our server. It is safe to use for internal test data, and nobody else ever sees your list.

Tips to work faster

  • Decide the format before you generate a large batch, so you can copy straight away.
  • Use v7 for database primary keys that grow over time and v4 for identifiers that appear in public links.
  • Use the inspector to confirm what a UUID from a log really is: the version digit tells you if it is random or time-based.
  • To turn the embedded v7 millisecond number into another time zone, paste it into the Timestamp Converter.
  • Generate in batches of a few hundred when pasting into a chat or a spreadsheet; very long lists are easier to handle as a downloaded file.

Common problems and how to fix them

"Generating…" stays in the list

The list is made after the page loads in your browser. If it never fills in, reload the page and check that JavaScript is enabled.

The list changed when I switched version

That is by design. Changing the version or the count creates a new list. Pick the version first, then format and copy.

My database rejects the UUID

Check whether it expects hyphens, braces or capitals. Use the matching options, then validate a sample with the UUID Validator.

I need more than 1,000

Generate several batches and join them. Each batch is independent and uses fresh random data.

The trailing comma is missing on the last line

That is intentional. Comma after each leaves the last line without a comma, so the list ends cleanly.

Quick checklist

  • Pick v7 for ordered database keys, v4 for private, opaque IDs.
  • Set how many, then choose the formatting.
  • Use Quotes and Comma after each for SQL lists.
  • Copy the list you want before regenerating.
  • Inspect a UUID when you need to know its version or time.

Frequently asked questions

Are the UUIDs generated on your server?
No. They are created in your own browser from its secure random source, so the list never travels over the network and we do not see it.
Why do my UUIDs change when I switch between v4 and v7?
Changing the version or the how-many number creates a fresh list. Formatting options such as UPPERCASE, No hyphens, braces, quotes and commas only change how the current list is written, so tick them first or after, but copy the list you actually want to use.
Why does a v7 UUID sort in the order I created it?
Its first 48 bits are the Unix time in milliseconds. For several IDs made in the same millisecond, a small counter inside the ID keeps them in creation order too, so a batch sorts exactly as it was generated.
Can I get more than 1,000 UUIDs?
Not in one go. The how-many box accepts 1 to 1,000. Press Generate again for another batch and paste the lists together.
What is the difference between a UUID and a GUID?
None in practice. GUID is Microsoft's name for the same 128-bit identifier. If your tool wants the GUID style, tick UPPERCASE and {Braces}.
Found this useful? Share it

Tools in this guide

Main tool

UUID Generator

Create random version 4 or sortable version 7 UUIDs (GUIDs) instantly, format them for your code or database, and inspect any UUID you paste.

Open tool

UUID Validator

Paste one UUID or a whole list to check whether each is valid — with the exact reason when it isn't, plus its version, variant, embedded time.

Open tool

Timestamp Converter

See the current Unix time, turn any epoch timestamp into a human-readable date in any time zone, or convert a date back to seconds and milliseconds.

Open tool

Back to all guides & blog