Skip to content
nah

UUID & Nano ID Generator

Generate UUID v4, UUID v7, and Nano IDs in bulk — instantly in your browser.

100% in your browser — files never leave your device

Type

How UUID and Nano ID generation work

UUID v4 is 122 bits of pure randomness with no inherent order. UUID v7 embeds a 48-bit millisecond timestamp in the first six bytes before the random remainder, which makes IDs sort chronologically as strings — the reason it's increasingly preferred for database primary keys, since sequential inserts land at the end of a B-tree index instead of scattering randomly through it.

Nano ID takes a different tradeoff: a 21-character ID built from a 64-character URL-safe alphabet, generated here with the same crypto.getRandomValues source as the UUIDs. At the default size its collision probability is comparable to UUID v4's, just shorter and dash-free — useful for short IDs in URLs or filenames.

All three generators draw from the Web Crypto API's cryptographically secure random source, not Math.random. Generation is capped at 1,000 IDs per batch and downloadable as a .txt file, which covers seeding a database or test fixture without needing a script.

Frequently asked questions

What is the difference between UUID v4 and UUID v7?

UUID v4 is entirely random — 122 random bits with no inherent ordering. UUID v7 embeds a 48-bit millisecond timestamp in the first 6 bytes, making the IDs lexicographically sortable by creation time. This matters for database primary keys: v7 inserts at the end of a B-tree index (good for performance) while v4 inserts randomly (causing index fragmentation).

What is Nano ID and when should I use it?

Nano ID produces URL-safe random IDs using a 64-character alphabet. A 21-character Nano ID has roughly the same collision probability as a UUID v4 but is shorter and has no dashes. Use it when you want compact, URL-friendly IDs and do not need the timestamp-sortable property of UUID v7.

Are the IDs generated securely?

Yes. All IDs use crypto.getRandomValues, the Web Crypto API, which is cryptographically secure. Nothing is sent to a server — generation happens entirely in your browser.

Related tools

How to use UUID Generator

Use the free tool above, or check the options on your device. No subscription or account is required for the browser tool.

UUID Generator in your browser

Free browser tool — no installation

  1. Choose the identifier type.
  2. Set Count and any available Size or Uppercase options, then select Generate.
  3. Copy identifiers or Download .txt.

Choose an identifier type appropriate to the system accepting it; generated IDs are not passwords.

Processing happens on your device in the browser. Large files may exceed your device’s available memory.

UUID Generator on Mac

Free browser tool — no installation

Use the tool on this page in Safari, Chrome, or Firefox. These steps use the browser tool; they do not require an extra app.

  1. Choose the identifier type.
  2. Set Count and any available Size or Uppercase options, then select Generate.
  3. Copy identifiers or Download .txt.

Choose an identifier type appropriate to the system accepting it; generated IDs are not passwords.

Processing happens on your device in the browser. Large files may exceed your device’s available memory.

For file tools, choose a copy of the original. Find saved results in your browser’s Downloads menu; your browser may ask where to save them. If processing fails, keep the original and try a smaller file or a desktop browser.

UUID Generator on Windows

Free browser tool — no installation

Use the tool on this page in Edge, Chrome, or Firefox. These steps use the browser tool; they do not require an extra app.

  1. Choose the identifier type.
  2. Set Count and any available Size or Uppercase options, then select Generate.
  3. Copy identifiers or Download .txt.

Choose an identifier type appropriate to the system accepting it; generated IDs are not passwords.

Processing happens on your device in the browser. Large files may exceed your device’s available memory.

For file tools, choose a copy of the original. Find saved results in your browser’s Downloads menu; your browser may ask where to save them. If processing fails, keep the original and try a smaller file or a desktop browser.

UUID Generator on iPhone / iPad

Free browser tool — no installation

Use the tool on this page in Safari or another current browser. These steps use the browser tool; they do not require an extra app.

  1. Choose the identifier type.
  2. Set Count and any available Size or Uppercase options, then select Generate.
  3. Copy identifiers or Download .txt.

Choose an identifier type appropriate to the system accepting it; generated IDs are not passwords.

Processing happens on your device in the browser. Large files may exceed your device’s available memory.

For file tools, choose Browse in the file picker to find a document in Files. A result may open in a preview; use Share → Save to Files when offered. If processing fails, keep the original and try a smaller file or a desktop browser.

UUID Generator on Android

Free browser tool — no installation

Use the tool on this page in Chrome or another current browser. These steps use the browser tool; they do not require an extra app.

  1. Choose the identifier type.
  2. Set Count and any available Size or Uppercase options, then select Generate.
  3. Copy identifiers or Download .txt.

Choose an identifier type appropriate to the system accepting it; generated IDs are not passwords.

Processing happens on your device in the browser. Large files may exceed your device’s available memory.

For file tools, choose a document from the system file picker. Saved downloads are usually available in your browser’s Downloads menu or your file manager. If processing fails, keep the original and try a smaller file or a desktop browser.