Skip to content

UUID Generator

Generate random UUID v4, time-ordered UUID v7, UUID v1 and GUIDs online. Create one or up to 1,000 UUIDs at once. Fast, free and no signup.

  • 100% free
  • Bulk generate
  • Runs in your browser

Generated UUIDs

0 UUIDs

How to generate a UUID

1Pick a version

Choose UUID v4 (random), v7 (time-ordered), v1 or Nil.

2Set quantity & format

Generate 1 to 1,000 UUIDs, with or without hyphens, in any case.

3Copy or download

Copy everything with one click or save the list as a .txt file.

UUID & GUID GUIDE

Free Online UUID Generator – Random UUID v4, UUID v7 and GUID in Bulk

Need a unique ID right now? Our free UUID generator creates universally unique identifiers (also called GUIDs) in one click. Generate a random UUID v4, a sortable UUID v7, a time-based UUID v1 or a Nil UUID. Create a single value or a bulk list of up to 1,000 UUIDs, choose uppercase or lowercase, remove the hyphens, wrap the result in braces or quotes, then copy it or download it as a text file. Everything runs in your browser with the secure random number generator built into modern browsers, so there is no signup and nothing to install.

  • uuid generator
  • guid generator online
  • random uuid
  • uuid v4 generator
  • uuid v7 generator
  • bulk uuid generator
  • generate uuid online
  • uuid without hyphens

UUID v4 Generator (Random UUID)

UUID version 4 is built from random numbers, which makes it the most popular choice for generating a unique ID online. Use a random UUID v4 for database keys, API request IDs, session tokens, file names, order numbers and test data.

UUID v7 Generator (Sortable UUID)

UUID v7 starts with a Unix timestamp, so new values sort in the order they were created. That makes it a strong UUID for primary keys because it keeps database indexes tidy and avoids the random inserts of v4.

GUID Generator for .NET and SQL Server

A GUID is Microsoft's name for a UUID. Use the braces format to get values like {123e4567-e89b-42d3-a456-426614174000}, ready for C#, .NET, SQL Server, Windows registry and COM projects.

What Is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit value used to label data without a central authority handing out numbers. It is written as 32 hexadecimal characters split into five groups by hyphens, in the pattern 8-4-4-4-12, for example 550e8400-e29b-41d4-a716-446655440000. The standard is defined in RFC 4122 and updated by RFC 9562, which also introduced the newer UUID v6, v7 and v8 formats. Because UUIDs can be created anywhere, on any device, without checking a shared counter, they are used across web apps, mobile apps, distributed systems and databases.

How to Generate a UUID Online

  1. Select the UUID version: v4 for a random UUID, v7 for a time-ordered UUID, v1 for a timestamp-based UUID, or Nil for the all-zero UUID.
  2. Enter how many UUIDs you need: type any number from 1 to 1,000, or use the quick buttons.
  3. Pick the output format: lowercase or UPPERCASE, with or without hyphens, plain, in { braces } or in "quotes".
  4. Copy or download: use Copy for the clipboard or Download .txt to save a bulk list.

UUID Versions Explained: v1 vs v4 vs v7

Each UUID version builds the identifier in a different way. This table shows when to use which one.

VersionHow it is madeSortableBest for
UUID v1Timestamp plus node and clock sequencePartlyLegacy systems that expect time-based IDs
UUID v4Random numbers (122 random bits)NoGeneral purpose unique IDs, tokens, test data
UUID v7Unix timestamp in milliseconds plus random bitsYesDatabase primary keys, event logs, new projects
Nil UUIDAll 128 bits set to zeron/aPlaceholder or "empty" value

UUID vs GUID: What Is the Difference?

There is no practical difference. GUID (Globally Unique Identifier) is the term used in Microsoft products such as .NET, C#, SQL Server and Windows, while UUID is the name used in the RFC standard and in most other languages and databases. Both are 128-bit identifiers with the same layout, so a GUID created here works anywhere a UUID is accepted, and the other way round. The only visible difference is style: GUIDs are often shown in uppercase or wrapped in curly braces.

Are UUIDs Really Unique? Collision Probability

A random UUID v4 has 122 random bits, which gives about 5.3 × 1036 possible values. You would have to generate roughly one billion UUIDs every second for around 85 years before the chance of a single duplicate reached 50%. For real-world apps, the chance of a collision is so small that it is treated as impossible. The generator on this page uses crypto.getRandomValues(), a cryptographically secure source, instead of Math.random(), which is not suitable for unique IDs.

Using UUIDs as Database Primary Keys

UUIDs are popular as primary keys in MySQL, PostgreSQL and SQL Server because you can create IDs in your app before saving a record, merge data from several sources, and avoid exposing guessable numbers such as /users/1. The trade-off is index performance: fully random UUID v4 values are inserted at random positions, which can fragment indexes on large tables. UUID v7 solves this because the timestamp prefix makes new rows land at the end of the index, while keeping the benefits of a UUID. If you store UUIDs in MySQL, a BINARY(16) column uses less space than a CHAR(36) column.

How to Generate a UUID in Code

Need UUIDs inside your own project? These are the most common one-liners.

JavaScript / Node.js
crypto.randomUUID()
PHP / Laravel
use Illuminate\Support\Str;

Str::uuid();      // v4
Str::uuid7();     // v7
Python
import uuid

uuid.uuid4()
C# / .NET
Guid.NewGuid()
MySQL
SELECT UUID();
PostgreSQL
SELECT gen_random_uuid();

Common Uses for a UUID Generator

  • Database records: primary keys and foreign keys that are safe to create on the client or server.
  • APIs and microservices: request IDs, correlation IDs and idempotency keys for tracing and retries.
  • Testing and mock data: bulk lists of unique IDs for fixtures, seeders and load tests.
  • File and upload names: collision-free names for images, documents and exports.
  • Sessions and tokens: unique identifiers for sessions, invitations and one-time links (use a dedicated secret token for security-critical secrets).
  • Windows and .NET: GUIDs for installers, COM components and registry entries.

Why Use Our Online UUID Generator?

Our UUID generator is built to be quick and private. It is free with no signup, creates up to 1,000 UUIDs per click, supports v4, v7, v1 and Nil, and lets you control case, hyphens and wrapping so the output matches your code or database. Because the work happens in your browser, your generated IDs are never uploaded or logged, and the tool works on desktop, tablet and mobile.

COMMON QUESTIONS

Frequently Asked Questions About UUID and GUID Generators

Quick answers about generating UUIDs online, choosing between UUID v4 and v7, GUID formats and using UUIDs in databases.

What is a UUID generator?

A UUID generator is a tool that creates universally unique identifiers, 128-bit values written as 36 characters such as 550e8400-e29b-41d4-a716-446655440000. Developers use them as unique IDs for database rows, API requests, files and more, without needing a central system to hand out numbers.

How do I generate a random UUID online?

Open this page and a random UUID v4 is already created for you. Click Generate new for another one, or set a quantity to create a bulk list. Then press Copy to put the UUIDs on your clipboard.

Is UUID the same as GUID?

Yes. GUID is the Microsoft name for the same 128-bit identifier. A UUID from this tool can be used as a GUID in .NET, C#, SQL Server and Windows. For GUID-style output, choose UPPERCASE and the { GUID } format.

What is the difference between UUID v4 and UUID v7?

UUID v4 is fully random, while UUID v7 begins with a millisecond timestamp followed by random bits. Because of that timestamp, v7 values sort by creation time, which is better for database primary keys and indexes. Both are equally easy to use and have the same 36-character format.

Can I generate UUIDs in bulk?

Yes. Enter any quantity from 1 to 1,000 and the generator creates the whole list at once, one UUID per line. You can copy the list or download it as a .txt file.

Are the generated UUIDs truly unique?

For practical purposes, yes. A UUID v4 has 122 random bits, so the chance of two matching values is astronomically small. This tool uses the browser's cryptographically secure random generator, which is the right source for unique IDs.

How do I remove hyphens from a UUID?

Select "No hyphens" in the Format setting. The UUID is then shown as 32 hexadecimal characters, for example 550e8400e29b41d4a716446655440000, which is handy for compact IDs and some database columns.

Should I use UUID as a primary key?

It is a common and valid choice, especially when IDs are created in the app or across several systems. For large tables, prefer UUID v7 (or store UUIDs as BINARY(16)) to avoid index fragmentation. If you need small, sequential IDs and a single database, an auto-increment integer may still be simpler.

Is a UUID safe to use as a password or secret token?

A UUID is designed to be unique, not secret. A random v4 UUID is hard to guess, but you should not rely on it alone for passwords or API secrets. For those, use a dedicated password or token generator with a longer random value.

Is it safe to generate UUIDs on this website?

Yes. The UUIDs are created locally in your browser and are never sent to our server or saved. You can even disconnect from the internet after the page has loaded and the generator keeps working.

What is a Nil UUID?

The Nil UUID is the special value 00000000-0000-0000-0000-000000000000, with every bit set to zero. It is used as an "empty" or placeholder identifier when no real UUID exists yet.

How do I generate a UUID in JavaScript, PHP or Python?

In JavaScript use crypto.randomUUID(), in Laravel or PHP use Str::uuid(), in Python use uuid.uuid4(), and in C# use Guid.NewGuid(). The code examples above show each one, and this tool is a quick way to create sample values for testing.

Need more free tools?

Format JSON, create hashes, encode Base64, compress files and more. Explore everything in one place.

All Tools