HelperCrate

UUID / NanoID Generator

Generate UUID v4, 21-character NanoID or 12-character hex IDs in batches up to 100.

Your files never leave your device. Everything runs in your browser.

What UUID / NanoID Generator does

Unique identifiers are needed everywhere: database primary keys, request correlation IDs, uploaded file names, test data and short links. UUID / NanoID Generator produces three flavours of random identifier in bulk, using the browser's cryptographically secure random number generator rather than a predictable sequence.

UUID v4 follows the standard 8-4-4-4-12 shape and is produced by the browser's own UUID function. NanoID uses a 64-character URL-friendly alphabet and defaults to 21 characters, a length that carries more random bits than a UUID. Short ID is a 12-character hexadecimal string for cases where a smaller, simpler identifier is enough.

These values are identifiers, not secrets. The randomness is strong enough that duplicates are astronomically unlikely at normal scale, but an ID generated here should never double as an API key, password or authentication token. If the identifier must be unguessable to an attacker, use a dedicated secret generator instead.

How to use UUID / NanoID Generator

  1. Choose the type: UUID v4, NanoID or Short ID.
  2. Set how many to generate, from 1 to 100.
  3. For NanoID, set the length between 4 and 64 characters.
  4. Toggle Uppercase if the target system expects capital letters.
  5. Click Generate, or change any option to regenerate immediately, then use Copy all to copy one ID per line.

Features

Tips and common mistakes

Frequently asked questions

Is Math.random used?

No. UUIDs come from the browser's crypto.randomUUID, and NanoID and Short IDs draw from crypto.getRandomValues. Both are cryptographically secure random sources, unlike Math.random, which is predictable.

How likely is a collision?

A UUID v4 contains 122 random bits and a default NanoID contains 126, so accidental duplicates are astronomically unlikely at any everyday scale. Uniqueness is still not absolute; databases should keep a unique constraint as a safeguard.

Can I use these IDs as secrets or passwords?

No. They are designed for uniqueness, not secrecy or authentication. Anyone who sees or guesses an identifier should not gain access because of it. Use a password or token generator for secrets.

Can I choose a custom NanoID alphabet or prefix?

No. The generator uses one built-in 64-character alphabet for NanoID, a fixed 12-character hex format for Short ID, and the standard UUID v4 format. Length and uppercase are the only adjustments.

How many IDs can I generate at once?

Up to 100 per batch. Generating again replaces the current list, so copy the batch first if you need to keep it.

Are generated IDs sent anywhere?

No. Everything is generated in your browser and the list exists only on the page until you copy it.

Identifiers are generated locally with the Web Crypto API — nothing is uploaded or stored.