UUID Generator

Generate random UUID v4 values instantly with this UUID generator — one, or up to 1,000 in bulk.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This UUID generator creates random version 4 UUIDs, also called GUIDs, for databases, APIs, test data and software. Generate one or up to 1,000 bulk UUIDs at a time using your browser's cryptographically secure random number generator. Choose uppercase, remove the hyphens or wrap them in braces to match the format your system expects.

How do I use the UUID generator?

  1. Choose how many you need.
  2. Pick the format options: uppercase, no hyphens or braces.
  3. Copy the list.
How to use the UUID Generator on OneHubTools: 3 steps with a real screenshot of the tool
How to use the UUID Generator, step by step.

What is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit number written as 32 hexadecimal characters in five groups, like this:

3f2b8c1e-9a4d-4e7b-b6a1-0c5d2e8f7a90

Microsoft calls the same thing a GUID (Globally Unique Identifier). The two names mean the same format.

Result from the UUID Generator on OneHubTools
What the UUID Generator gives you.

Why UUID v4?

There are several UUID versions. Version 4 is built almost entirely from random bits, so it does not reveal anything about the computer or time it was made on. That makes it the most common choice for IDs in web apps.

VersionBased onNotes
v1Time and device addressCan reveal when and where it was made
v4Random numbersMost widely used, no hidden information
v7Time plus randomNewer; sorts by creation time

Can two UUIDs be the same?

In theory yes, in practice no. A random UUID v4 has 122 random bits. You would need to generate around a billion UUIDs every second for about 85 years before the chance of a single duplicate reached 50%. For real systems, treat them as unique.

Using UUIDs in code

Modern browsers and Node.js can make a UUID with crypto.randomUUID(). In Python, use uuid.uuid4(). In PHP 8 and later, libraries such as ramsey/uuid are common. The generator here is handy when you need IDs without writing code, for example to fill a spreadsheet, seed a test database or label files by hand. Copy the list and paste it straight into your tool of choice.

Format options

  • Uppercase: some systems, especially on Windows, show GUIDs in capitals.
  • No hyphens: a 32-character string, handy for file names or compact storage.
  • Braces: {3f2b8c1e-...} is the classic GUID style in Microsoft tools and registry keys.

Storing UUIDs in a database

Most databases have a native type for UUIDs, such as UUID in PostgreSQL or UNIQUEIDENTIFIER in SQL Server. MySQL users often store them as BINARY(16) to save space, or as CHAR(36) for readability. Random v4 values spread inserts across an index, which can slow very large tables. If insert speed matters, consider time-ordered v7 values generated by your application.

When to use UUIDs

  • Database primary keys that must be unique across servers.
  • Public IDs in URLs, so people cannot guess the next record by counting.
  • File names for uploads to avoid clashes.
  • Test data and sample records.

Plain auto-increment numbers are smaller and faster for internal tables, so choose the right tool for each case.

Related developer tools

For random secrets and API keys, use the password generator. To create hashes of text, try the hash generator. Format test data with the JSON formatter, and generate random numbers in a range with the random number generator.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with real code and data, including edge cases such as empty input and very long values.

Further reading

According to RFC 9562, a UUID is a 128-bit identifier and version 4 UUIDs are built from random numbers; RFC 9562 replaced the earlier standard from about 20 years before.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What is the difference between a UUID and a GUID?

They are the same 128-bit format. GUID is Microsoft’s name for a UUID.

Are these random UUIDs secure?

They come from your browser’s cryptographically secure random number generator.

How many UUIDs can I generate at once?

Up to 1,000 bulk UUIDs in one go.

Can two UUID v4 values collide?

It is possible in theory but so unlikely that real systems treat them as unique.

Can I remove the hyphens?

Yes. Turn on the no-hyphens option for a 32-character string.

Is the UUID generator free?

Yes. It is free and the IDs are created on your device.