UUID / GUID Generator

UtiliStudio Workspace Tool

Get a fresh UUID, also called a GUID, the moment the page opens and copy it in one click. Uses the browser Web Crypto API and supports versions 1, 4, 6, and 7, bulk creation up to 10,000 IDs, and export.

Generate standard and timestamped UUIDs directly in your browser
Open in full workspace
Loading UUID Generator…

Key Capabilities

Multiple UUID Versions

Generate standard RFC 4122 version 4 random identifiers, newer RFC 9562 version 7 timestamp-ordered UUIDs, as well as version 1 and 6.

High-Volume Bulk Generation

Produce anywhere from a single UUID up to 10,000 unique identifiers in a single batch in under 20 milliseconds.

Multi-Format Export

Export batches as raw plain text (one per line), structured CSV with indices and timestamps, or formatted JSON arrays.

Format Validation & Inspection

Inspect existing UUIDs to verify canonical formatting, detect specific version bits, and check variant compliance.

How to Use UUID Generator

1

Select UUID version

Choose your desired UUID version, such as version 4 (random) or version 7 (timestamp-ordered).

2

Choose generation quantity

Specify the number of identifiers needed, from 1 to 10,000 UUIDs.

3

Generate identifiers

Click Generate to instantly create unique, collision-resistant identifiers.

4

Copy or export results

Copy single UUIDs with one click or download the entire batch as TXT, CSV, or JSON.

Practical Examples

UUID v4 (Random) vs. UUID v7 (Timestamp-Ordered)

UUID v4 provides uniform randomness, while UUID v7 encodes a millisecond timestamp prefix to optimize B-tree database indexing.

Input (Raw / Unformatted)
Configuration: Version = 7, Quantity = 2
Output (Formatted & Indented)
0191ebc5-67c2-7b3e-8f2b-9876543210ab
0191ebc5-67c3-71f0-a3e1-4567890123cd

UUID Generator Guide

What a UUID is

A UUID (Universally Unique Identifier), also called a GUID in Microsoft ecosystems, is a 128-bit value used to label records, files, messages, and resources without a central authority handing out numbers. It is usually written as 32 hexadecimal digits in five groups separated by hyphens, in the pattern 8-4-4-4-12, for example 550e8400-e29b-41d4-a716-446655440000.

UUIDs are standardized by RFC 9562, which in 2024 replaced the older RFC 4122 and added versions 6, 7, and 8. Two fields are embedded in every UUID: the version number, which is the first digit of the third group, and the variant, encoded in the first digit of the fourth group. Looking at those two positions tells you how an identifier was generated.

Comparing the common versions

Version 4 is the most widely used. Apart from the six fixed version and variant bits, all 122 remaining bits are random. It reveals nothing about when or where it was created, which makes it a safe default for public identifiers.

Version 1 combines a 60-bit timestamp with a clock sequence and a node identifier, historically the MAC address of the generating machine. It sorts poorly as text because the timestamp is stored with its low-order bits first, and it can leak information about the host. Version 6 is a reordered version 1: the same timestamp fields are stored most-significant first, so values sort chronologically while remaining compatible with version 1 data.

Version 7 is the modern recommendation for new systems that need ordering. Its first 48 bits are a Unix timestamp in milliseconds and the rest are random. Values generated later sort after values generated earlier, both as bytes and as strings, while still being practically impossible to guess.

Why version 7 helps databases

Most relational databases store primary keys in a B-tree index. Random version 4 keys are inserted at scattered positions throughout that index, which causes page splits, fragmentation, and poor cache locality once a table grows into millions of rows. Because version 7 keys increase over time, new rows are appended near the end of the index, giving insert performance much closer to an auto-increment integer.

Version 7 keys also carry their creation time, so you can roughly date a record from its ID alone. If exposing creation time is a concern, for example in public URLs, use version 4 for the external identifier and keep the time-ordered key internal.

UUID vs GUID, shareable settings, and the UUID API

GUID is simply the Microsoft name for a UUID. .NET, SQL Server, and Windows APIs call the type a GUID or uniqueidentifier, while most other ecosystems say UUID, but both refer to the same 128-bit format. A value generated here works anywhere a GUID is expected; some Windows tools just display it in uppercase or inside curly braces.

You can link straight to the settings you need. Opening this page with ?version=7&count=100 at the end of the address shows one hundred version 7 UUIDs immediately, so you can bookmark common setups or share them with your team. Dedicated pages for version 4 and version 7 open the generator preset to each version.

For scripts and terminals, https://utilistudio.com/api/uuid returns a fresh UUID as plain text. Add version (1, 4, 6, or 7), count (up to 100), and format=json when you want a JSON array instead, for example curl "https://utilistudio.com/api/uuid?version=7&count=5".

Collisions, randomness, and storage tips

With 122 random bits, the chance of two version 4 UUIDs colliding is so small that you would need to generate around a billion identifiers per second for decades before a duplicate became likely. That guarantee depends entirely on the quality of the random source, which is why generators should use a cryptographically secure source such as the Web Crypto API rather than a simple pseudo-random function.

UUIDs are not secrets. Being hard to guess is not the same as being an access token, so never rely on an unguessable ID alone to protect private data.

For storage, prefer a native UUID column type (PostgreSQL uuid, or BINARY(16) in MySQL) over a 36-character string. The binary form uses less than half the space and compares faster. UUID text is case-insensitive, but lowercase is the canonical form, so normalize case before comparing values from different systems.

Common Use Cases

Database Primary Keys

Generate UUID v7 identifiers that sort chronologically to minimize database index fragmentation in PostgreSQL, MySQL, and SQLite.

Distributed Request Tracing

Create random UUID v4 values for correlation IDs, distributed trace headers, and microservice transaction tracking.

Mock Data Generation

Quickly generate thousands of synthetic entity IDs for automated testing, seed scripts, and API prototyping.

ETL & Data Migration Pipelines

Produce clean, collision-resistant unique keys when merging disparate legacy datasets into modern warehouses.

Frequently Asked Questions

Is a GUID the same as a UUID?

Yes. GUID (globally unique identifier) is the name Microsoft uses for the same 128-bit identifier defined by the UUID standard, so a GUID generator and a UUID generator produce the same values. Windows tools sometimes display GUIDs in uppercase or wrapped in curly braces, but the underlying value is identical.

Can I generate UUIDs from the command line or share my settings?

Yes. Add ?version=7&count=100 to this page address to open the generator with those settings, which is handy for bookmarks and team docs. For scripts, request https://utilistudio.com/api/uuid to get a fresh UUID as plain text, with optional version and count parameters.

What is the difference between UUID v4 and UUID v7?

UUID v4 is generated entirely from random bits, which provides uniform unpredictability. UUID v7 embeds a Unix millisecond timestamp in the leading bits followed by random bits, allowing identifiers to naturally sort in chronological order for high-performance database indexing.

How are random numbers generated?

Identifers are produced using the browser Web Crypto API (crypto.getRandomValues), providing cryptographically strong pseudorandom numbers directly on your device.

Which export formats are supported?

You can download or copy generated identifiers as newline-delimited plain text (.txt), comma-separated values (.csv) with index and timestamp columns, or structured JSON (.json).

Related Guides

Related Developer Tools

Ready to use UUID Generator?

The tool is at the top of this page, or open it in the full workspace with tabs, favorites, and Ctrl+K search.