UUID Generator

Generate universally unique identifiers (UUIDs) with a single click.

About this tool

A UUID generator for the moments you need a unique ID right now: a primary key for a test row, a request ID for a log line, a fixture value for a unit test. Choose version 4 (random) or version 1 (time-based), click Generate, and copy. Generation happens in your browser, so the IDs are not requested from or logged by a server.

How to use it

  1. Choose a version — v4 (random) or v1 (timestamp-based).
  2. Click Generate UUID to add one to the list.
  3. Copy any individual UUID, or generate several at once for seeding test data.

FAQ

Which version should I use?

v4 (random) is the standard choice for almost everything — database primary keys, API tokens, request IDs. v1 (timestamp-based) is useful when you specifically want IDs that sort roughly by creation time.

Are UUIDs guaranteed to be unique?

Not mathematically guaranteed, but the collision probability for v4 UUIDs is astronomically small — you'd need to generate billions of them per second for centuries before a collision became likely.

Is a v4 UUID safe to use as a security token?

v4 UUIDs use a cryptographically random source in modern browsers (crypto.randomUUID), so they're reasonable as unguessable identifiers, though a purpose-built token generator is still preferable for authentication secrets.

Is a UUID the same thing as a GUID?

Yes. GUID is the name Microsoft tools and .NET use for the same 128-bit identifier, written as 32 hexadecimal digits in groups of 8-4-4-4-12. A value generated here can be used anywhere either name is expected.

Can I generate many UUIDs at once?

This tool adds one UUID to the list per click, newest at the top. If you need a whole table of rows with UUIDs in a column, the Mock Data Generator has a UUID field type and can output many rows as JSON or CSV in one go.

Why do I get an error about a secure context?

Version 4 UUIDs come from the browser crypto.randomUUID function, which browsers only expose on HTTPS pages and on localhost. If you opened the site over plain HTTP, switch to the HTTPS address.

Does a version 1 UUID reveal anything about my computer?

A version 1 UUID encodes the time it was created, which is why these IDs sort roughly by creation time. The node part of the ID is generated randomly in the tool, not read from your network card, so it does not contain your MAC address.

Related tools

Guides & comparisons

← All tools · Encoding & Hashing · Blog · Cheat sheets · FAQ