Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Converters & Encoders
  3. UUID Generator
Add to favorites

UUID Generator

Generate UUID v1 to v7, ULID, NanoID, CUID2 and Snowflake IDs in bulk, and inspect any ID to read its version and creation time.

Runs locally in your browserMore converters & encodersJump to full guide
Related readingHow Computers Generate Random Numbers (and When It Matters)10 minUUIDs Explained: Universally Unique Identifiers and When to Use Them10 min

Initializing in your browser…

You might also like

QR Code Generator

Make QR codes for links, Wi-Fi, contacts, events and payments as you type, check that each one scans, and download it as PNG or SVG.

Barcode Generator

Create Code 128, EAN-13, UPC-A, Code 39, ITF-14 and other barcodes with automatic check digits, and download them as PNG or vector SVG.

Color Palette Generator

Generate colour palettes from one base colour, with tints and shades, contrast and colour-blindness checks, and CSS, Tailwind or JSON export.

An example conversion

New database rows need primary keys that are unique everywhere and still arrive in creation order, so you generate UUID v7.

Settings

UUID v7, four IDs made in the same millisecond (09:30:00.000 UTC on 20 October 2026)
What UUID Generator produces

Generated, then inspected

01a158a5-71c0-7000-94a0-7874f2607c2b
01a158a5-71c0-7001-92ed-0487e8a9646c
01a158a5-71c0-7002-a657-017c70dcf1c5
01a158a5-71c0-7003-9002-ff6cb628bd7c

These sort as strings in the order they were made
Inspect: version 7, variant RFC 9562, timestamp 2026-10-20T09:30:00.000Z

The first twelve hex digits, 01a158a5-71c0, are the Unix time in milliseconds, the same for all four because they were made in the same millisecond. The 7 that follows is the version. The next three digits count up, 000 to 003, which keeps IDs made within one millisecond in order. The first digit of the fourth group (9, a, 9, 9) carries the variant bits, and the rest is random. Because the time comes first, sorting the strings sorts the rows by creation time, and pasting any of them into Inspect gives back the exact moment it was made.

What this converter does

Generate UUIDs in every version from v1 to v7, plus ULID, NanoID, CUID2 and Snowflake IDs, one at a time or up to 1,000 at once, and copy or download them. Paste any identifier into Inspect to see its version, its variant and the creation time hidden inside time-based IDs.

How it works

A UUID is a 128-bit identifier written as 36 characters, such as 3b241101-e2bb-4255-8caf-4136c566a962, that can be created anywhere without a central counter and still be unique. The versions differ in where the bits come from. Version 4 is fully random apart from six fixed bits, and is the safe default. Version 7 starts with the current Unix time in milliseconds and fills the rest with random bits, so new IDs sort by creation time, which keeps database indexes compact; it is the best choice for primary keys in a new system. Versions 1 and 6 use a clock counting 100-nanosecond steps since 1582 plus a node number; v6 reorders the fields so it sorts. Versions 3 and 5 are not random at all: they are an MD5 or SHA-1 hash of a namespace and a name, so the same input always gives the same UUID, which is useful for turning a URL or an email address into a stable ID. All of these follow RFC 9562, the current UUID standard.

The other formats are popular alternatives. A ULID packs a millisecond timestamp and 80 random bits into 26 characters of Crockford base32, sorts by time and avoids confusable letters. A NanoID is a short, URL-safe random string, 21 characters by default and any length from 4 to 128 here. A CUID2 is a lower-case random string that starts with a letter, so it is safe as an HTML id or a variable name. A Snowflake packs a timestamp, a datacenter and worker number and a sequence counter into a 64-bit number, the layout Twitter introduced and others copied.

All random bits come from the browser's cryptographic random number generator, not Math.random. Time-based IDs made in the same millisecond use a counter so that they still come out in order, and the list says whether the batch sorts in the order it was made. For random formats the tool states the collision odds: for a v4 UUID, 2.71 billion billion IDs are needed before there is an even chance of a single duplicate. An optional chi-square test draws a large sample and checks that every character occurs equally often.

Inspect reads an identifier you paste, with or without hyphens, in braces or with a urn:uuid: prefix, and reports what it is: the UUID version and variant with the creation time decoded from v1, v6 and v7, the timestamp inside a ULID, or the time, datacenter, worker and sequence inside a Snowflake. It also recognises the nil and max UUIDs. NanoID and CUID2 strings carry no version or checksum, so for those it can only say the shape matches.

Options include a prefix and suffix for every ID (user_ or order- for example), upper case and hyphen-free UUIDs, and a count of up to 1,000. Upper case and hyphen removal are offered for UUIDs only, because applying them to a NanoID or CUID2 would change the identifier. Nothing you inspect goes into the address bar, and everything runs in your browser.

How to use

  1. 1Choose a format, for example UUID v4 for a general-purpose ID or UUID v7 for database keys.
  2. 2Set how many you need and press Generate. A new batch appears each time you change a setting.
  3. 3Click any ID to copy it, or use Copy all or Download for the whole list.
  4. 4For v3 or v5, pick a namespace and type the name; the same name always gives the same UUID.
  5. 5Switch to Inspect and paste an identifier to see its version and the time it was created.

Key features

  • UUID v1, v3, v4, v5, v6 and v7 following RFC 9562
  • ULID, NanoID (length 4 to 128), CUID2 and Snowflake IDs
  • Up to 1,000 IDs at once, click to copy, Copy all and Download
  • Time-ordered formats stay in order within the same millisecond
  • Cryptographically secure randomness, with the collision odds stated
  • Prefix and suffix, upper case and hyphen-free UUID options
  • Inspect any UUID, ULID or Snowflake and decode its timestamp
  • Recognises braces, urn:uuid: and hyphen-free input, and the nil and max UUIDs
  • An optional chi-square randomness check on a large sample
  • Runs in your browser; inspected IDs are never put in a link

Tips & best practices

  • Store UUIDs in a native uuid or 16-byte binary column rather than a 36-character string to save space.
  • Use v7 instead of v4 for new database tables if your database supports it; the sorting saves index work.
  • Add a prefix such as cus_ or ord_ to make IDs self-describing in logs.
  • Do not use a UUID as a security token; it is an identifier, not a secret.

Where this fits

  • Database primary keys

    Generate UUID v7 keys that sort by creation time, so inserts land at the end of the index instead of scattering across it.

  • Test data

    Create a batch of 100 UUIDs or NanoIDs with a prefix such as test_ and download them as a text file.

  • Stable IDs from names

    Use v5 with the URL namespace to give every page of a site an ID that stays the same each time you generate it.

  • Debugging an ID from a log

    Paste a v7 UUID, ULID or Snowflake from a log or an API response to see exactly when the record was created.

Frequently asked questions

Which UUID version should I use?

Version 4 for general-purpose random IDs, and version 7 for database keys or anything you want to sort by creation time. Use version 5 when the same name must always map to the same UUID. Versions 1 and 6 exist mainly for compatibility with older systems.

Can two UUIDs ever be the same?

In theory, but not in practice. A v4 UUID has 122 random bits, so you would need to generate about 2.71 billion billion of them before there is a 50 percent chance of even one duplicate.

Is a UUID secret or unguessable?

A v4 made with a cryptographic generator, as here, is very hard to guess, but UUIDs are designed to be unique rather than secret. Time-based versions reveal when they were created. Use a proper random token for passwords, session IDs or reset links.

What is the difference between a UUID and a ULID?

Both are 128 bits. A ULID is written as 26 base32 characters instead of 36 hex characters with hyphens, and always starts with a timestamp, so it sorts by time. UUID v7 offers the same ordering in the standard UUID format.

How do I get the date out of a UUID?

Switch to Inspect and paste it. Versions 1, 6 and 7 contain a timestamp, which the tool decodes. Version 4 contains no time at all.

Why do v5 UUIDs get a number added to the name in a batch?

Because the same namespace and name always produce the same UUID, a batch would otherwise be one value repeated. The first row uses the name exactly; each later row adds its row number.

Further reading

  • How Computers Generate Random Numbers (and When It Matters)10 min read
  • UUIDs Explained: Universally Unique Identifiers and When to Use Them10 min read

Private by design

Conversions run on your device in JavaScript. The values you enter are never sent over the network.