Skip to main content

UUID & NanoID generator

Create RFC 4122 UUID v4 strings or URL-safe random IDs with a chosen length — in your browser.

Generate UUID v4 with crypto.randomUUID or custom-length NanoID-style tokens from crypto.getRandomValues. Copy for databases, tests, and mocks — no server, no log.

Standard 128-bit UUID from the Web Crypto API (HTTPS or localhost).

Quick guide

Pick UUID for standard identifiers, or the random ID mode when you need a shorter token.

Set how many IDs to create (one per line when you copy). Regenerate anytime; values are not stored on our servers.

IDs are for uniqueness, not secrecy — do not use alone as authentication secrets.

FAQ

Is this a real NanoID package?
Same idea: cryptographically random bytes mapped to a URL-safe alphabet. Not the official npm package, but compatible length and charset for many use cases.
Collision risk?
UUID v4 has a huge space. For short random strings, pick enough length for your app’s scale.
Logged anywhere?
Generation runs locally in your browser.
Offline?
Works offline once the page is loaded, as long as crypto APIs are available.