Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

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
ADVERTISEMENT
Demo Ad 728 x 90

Generate a unique ID in 3 simple steps

  1. 1

    Pick a version

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

  2. 2

    Set quantity & format

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

  3. 3

    Copy 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 known as GUIDs, in a single click. You can generate a random UUID v4 for everyday work, a sortable UUID v7 for database keys, a time-based UUID v1 for legacy systems, or a Nil UUID as an empty placeholder. Create one value or a bulk list of up to 1,000 UUIDs, switch between uppercase and lowercase, remove the hyphens, wrap every value in braces or quotes, and then copy the result or download it as a text file. Everything runs inside your browser with the secure random number generator built into modern browsers, so there is no signup, no installation and no upload. This guide explains what a UUID is, how each version works, how to choose the right one and how to use UUIDs safely in databases, APIs and code.

Developers look for a UUID generator, a GUID generator or a unique ID generator whenever they need an identifier that will not collide with any other. This free tool creates random UUID v4, sortable UUID v7, UUID v1 and Nil UUID values, in bulk if you need them, and lets you pick the case and format that your code expects. It runs in your browser on Windows, Mac, Linux, Android and iPhone, so there is nothing to install, no signup and no upload.

  • uuid generator
  • guid generator online
  • random uuid
  • uuid v4 generator
  • uuid v7 generator
  • bulk uuid generator
  • generate uuid online
  • uuid without hyphens
  • uuid vs guid
  • nil uuid
  • uuid primary key
  • generate guid online
  • unique id generator
  • uuid generator uppercase
  • uuid generator for laravel
  • uuid generator download txt

UUID v4 Generator (Random UUID)

UUID version 4 is built almost entirely from random numbers, which makes it the most popular choice when you need to generate a unique ID online. A random UUID v4 is perfect for database keys, API request IDs, session identifiers, file names, order numbers, invitation links and test data. Our UUID v4 generator sets the version and variant bits exactly as the standard requires, so every value is valid in any language or database.

UUID v7 Generator (Sortable UUID)

UUID v7 begins with a Unix timestamp in milliseconds, so new values sort in the same order in which they were created. That makes it an excellent UUID for primary keys, because new rows land at the end of the index instead of at random positions. If you are starting a new project and want unique IDs that are also friendly to MySQL, PostgreSQL and SQL Server, a UUID v7 generator is the modern answer.

GUID Generator for .NET and SQL Server

A GUID is Microsoft's name for a UUID. Choose UPPERCASE with the braces format to get values such as {123E4567-E89B-42D3-A456-426614174000}, ready for C#, .NET, SQL Server, the Windows registry, installers and COM components. Use this online GUID generator whenever you need sample GUIDs for configuration files, unit tests or database seed scripts without opening Visual Studio.

What Is a UUID?

A UUID (Universally Unique Identifier) is a 128-bit value used to label data without needing a central authority to hand out numbers. It is normally written as 32 hexadecimal characters split into five groups by hyphens, following the 8-4-4-4-12 pattern, for example 550e8400-e29b-41d4-a716-446655440000. The format is defined in RFC 4122 and was updated by RFC 9562, which formally added the newer UUID v6, v7 and v8 versions. Because a UUID can be created on any device, in any application and at any time without checking a shared counter, it has become the standard way to identify records across web apps, mobile apps, microservices, message queues and distributed databases.

Two small parts of every UUID carry meaning. The first digit of the third group is the version, which tells you how the UUID was created: a 4 means random, a 7 means time-ordered and a 1 means timestamp-based. The first digit of the fourth group is the variant, which for standard UUIDs is always 8, 9, a or b. In the example above, the 4 in 41d4 shows that it is a version 4 UUID and the a in a716 shows the standard variant. The remaining bits are either random data or a timestamp, depending on the version. A good UUID generator sets these bits correctly, and ours does so for every value it creates.

How to Generate a UUID Online

Creating a UUID with this tool takes only a few seconds, and the settings update the output instantly, so you can experiment until the format matches your project.

  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 tap one of the quick buttons for 1, 10, 50, 100 or 1000 values.
  3. Pick the output format: lowercase or UPPERCASE, with or without hyphens, and plain, wrapped in { braces } or wrapped in "quotes".
  4. Copy or download: use Copy to send the whole list to your clipboard or Download .txt to save a bulk list as a file with one UUID per line.

Because the list is created locally, you can press Generate new as many times as you like. Each click produces a fresh set of values, which is handy when you need several batches of unique IDs for different tables, fixtures or environments.

UUID Versions Explained: v1 vs v4 vs v7 vs Nil

Each UUID version builds the identifier in a different way, and the right choice depends on whether you care about randomness, sorting or compatibility. The table gives a quick comparison, and the paragraphs below explain each version in more detail.

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 v4 is the default for most developers. Out of 128 bits, 6 are reserved for the version and variant and the other 122 are random, which gives an enormous number of possible values. It reveals nothing about when or where it was created, so it is a safe pick for public IDs, file names and API identifiers. Its only weakness is that consecutive values have no relationship to each other, which matters when you use them as clustered primary keys in a large table.

UUID v7 fixes that weakness. The first 48 bits hold a Unix timestamp in milliseconds and the rest is random, so values generated later always sort after values generated earlier. This keeps database indexes compact, speeds up inserts and makes it easy to sort records by creation time without a separate date column. In our generator, UUID v7 values created in the same bulk batch also stay in strict order. For new applications, UUID v7 is usually the better choice over v4 when the value will be stored as a primary key.

UUID v1 combines a timestamp measured in 100-nanosecond steps since 1582 with a clock sequence and a node ID. In older systems the node ID was the computer's MAC address, which leaked hardware information. The v1 values created by this tool use a random node ID instead, so no real MAC address is ever used. UUID v1 is mainly useful when you must match an existing system or library that expects the version 1 layout. The Nil UUID, 00000000-0000-0000-0000-000000000000, is a special value in which every bit is zero. Applications use it as an explicit "no value" marker, for example as a default parent ID or as a placeholder in tests and documentation.

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, frameworks and databases. Both are 128-bit identifiers with the same layout, so a GUID created with this tool works anywhere a UUID is accepted, and the other way round. The only visible differences are in style: Microsoft tools often display GUIDs in uppercase and sometimes wrap them in curly braces, while Linux tools, web APIs and most databases prefer lowercase without braces.

One detail is worth knowing if you work across platforms. Some older Microsoft APIs store the first three groups of a GUID in little-endian byte order, which can change how the raw bytes look when you compare a GUID with a UUID in a binary column. The text form, however, is identical, so for everyday work with this online GUID generator you can copy the values straight into your code, SQL scripts or configuration files.

UUID Formats: Uppercase, Lowercase, No Hyphens, Braces and Quotes

The standard text form of a UUID is lowercase with hyphens, and RFC 9562 recommends lowercase output while telling software to accept both cases when reading. Our generator lets you switch to UPPERCASE when a system or style guide expects it, which is common with GUIDs in the Microsoft ecosystem. Choosing No hyphens produces a compact 32-character string such as 550e8400e29b41d4a716446655440000. A UUID without hyphens is popular for short URLs, file names, cache keys and database columns where you want to save a few bytes and avoid special characters.

The braces option wraps each value like {550e8400-e29b-41d4-a716-446655440000}, the registry-style format used by Windows, COM and many installer tools. The quotes option wraps each value in double quotes, so a bulk list can be pasted straight into a JSON array, a JavaScript array, a SQL IN (...) list or a CSV file after adding commas. Combining these settings lets you produce exactly the format your project needs without any manual find and replace.

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 applications, the chance of a collision is so small that it is treated as impossible, and you are far more likely to lose data to a hardware fault or a software bug than to a duplicate UUID.

That promise only holds when the random numbers are good. The generator on this page uses crypto.getRandomValues(), the cryptographically secure random source built into modern browsers, instead of Math.random(), which is predictable and not designed for unique IDs. If you write your own generator in code, always use the secure random function of your language or the ready-made UUID function listed below. For extra safety in a database, you can still add a unique index on the UUID column, which costs almost nothing and guarantees that a duplicate would be rejected rather than silently stored.

Using UUIDs as Database Primary Keys

UUIDs are popular as primary keys in MySQL, MariaDB, PostgreSQL and SQL Server because you can create the ID in your application before saving the record, merge data from several databases without clashes and avoid exposing guessable numbers such as /users/1 or /orders/1002 in your URLs. They also make it simple to create related records offline, in a mobile app or in a queue worker, and sync them later without asking the database for the next number.

The trade-off is index performance. Fully random UUID v4 values are inserted at random positions in a clustered index, which can cause page splits, fragmentation and slower writes on very large tables. UUID v7 solves this because its timestamp prefix makes new rows land at the end of the index, while keeping every benefit of a UUID. Storage size also matters: a CHAR(36) column uses 36 bytes per value, while a BINARY(16) column in MySQL uses only 16 bytes, and PostgreSQL and SQL Server have native UUID and uniqueidentifier types. In Laravel, the HasUuids trait and the $table->uuid() migration column make UUID primary keys easy to set up, and recent versions of the framework generate ordered, time-sortable values for you.

FeatureAuto-increment IDUUID v4UUID v7
Size4 to 8 bytes16 bytes16 bytes
Create before insertNoYesYes
Guessable in URLsYesNoHard to guess
Index friendlyExcellentFairVery good
Merge across databasesDifficultEasyEasy

How to Generate a UUID in Code

Need UUIDs inside your own project instead of copying them from a website? These are the most common one-liners for popular languages and databases. They are also a quick way to double-check that the values from this online tool match what your framework produces.

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()
Java
import java.util.UUID;

UUID.randomUUID();
Go
import "github.com/google/uuid"

uuid.New()
Ruby
require "securerandom"

SecureRandom.uuid
MySQL
SELECT UUID();
PostgreSQL
SELECT gen_random_uuid();

Common Uses for a UUID Generator

People search for a UUID generator for many different reasons. These are the situations in which developers, testers, database administrators and analysts use it most often.

  • Database records: primary keys and foreign keys that are safe to create on the client or the server, and easy to merge between environments.
  • APIs and microservices: request IDs, correlation IDs and idempotency keys for tracing a call across services and for retrying payments or orders safely.
  • Testing and mock data: bulk lists of unique IDs for fixtures, seeders, Postman collections, load tests and demo data.
  • File and upload names: collision-free names for images, documents, exports and temporary files, usually with the hyphens removed.
  • Sessions and invitations: unique identifiers for sessions, invitation links, tracking IDs and one-time links.
  • Windows and .NET: GUIDs for installers, COM components, product codes and registry entries.
  • Documentation and tutorials: realistic sample IDs for API documentation, blog posts and screenshots, without exposing real customer data.

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 because of its 122 random bits, and it is perfectly fine as a public identifier or as a hard-to-guess link for a low-risk action such as viewing a shared file. However, you should not rely on a UUID alone as a password, an API secret, a password reset token or any other credential. Some UUID versions, such as v1 and v7, contain a timestamp, which leaks when the value was created and narrows the search space for an attacker, and UUIDs generated by unknown libraries may not use a secure random source. For security-critical secrets, use a dedicated password or token generator that produces a longer random value, and always check permissions on the server instead of trusting that an ID is "unguessable".

Troubleshooting: Common UUID Problems

  • A validator rejects my UUID: A standard UUID has 32 hexadecimal characters in the pattern 8-4-4-4-12. Make sure the format is With hyphens and Plain, without braces or quotes.
  • My database says "invalid UUID": If you used the { GUID } or Quoted format, switch to Plain. Some databases, such as PostgreSQL, accept braces, while others do not.
  • Two UUIDs look almost the same: UUID v7 values start with a timestamp, so values created at nearly the same time share their first characters. This is expected and helps sorting.
  • Uppercase and lowercase do not match: UUIDs are case-insensitive, but many systems compare them as text. Pick one case and use it everywhere.
  • I need the version of a UUID: Look at the first character of the third group. A 4 means version 4, a 7 means version 7 and a 1 means version 1.

UUID Generator on Mobile, Windows and Mac

The generator is a normal web page, so it works on Android, iPhone, Windows, Mac and Linux in any modern browser. Open it, tap Generate new, then copy the result or download a list as a .txt file. There is no account and no extension, and the IDs are created on your own device.

More Free Developer Tools You May Need

IDs rarely travel alone. These free tools help with the data around them:

Why Use Our Online UUID Generator?

Our UUID generator is built to be quick, flexible and private. It is completely 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, database or document exactly. The result updates as soon as you change a setting, the Copy button puts the full list on your clipboard, and the download button saves it as a plain text file with one UUID per line.

Privacy is built in. Every UUID is created locally in your browser using the Web Crypto API, so your generated IDs are never uploaded, logged or stored on our servers, and the tool keeps working even if you lose your internet connection after the page has loaded. It runs smoothly on desktop, tablet and mobile, which makes it a reliable bookmark for any developer who needs a random UUID, a bulk UUID list or a GUID in the right format at a moment's notice.

ADVERTISEMENT
Demo Ad 300 x 250
COMMON QUESTIONS

Frequently Asked Questions About UUID and GUID Generators

Quick answers about generating UUIDs online, choosing between UUID v4 and v7, GUID formats, bulk generation and privacy.

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. You can also choose v7, v1 or Nil, change the case, remove the hyphens, and 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.

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.

ADVERTISEMENT
Demo Ad 320 x 50