Skip to content
QKQuickKit日本語
Identifiers & AuthLOCALRuns in your browser

NanoID Generator

Generate NanoIDs in the browser: a compact URL-safe random identifier, 21 characters by default, with a configurable size and custom alphabet.

This tool handles input and primary processing in your browser and is designed not to send the input to QuickKit’s server.

Alphabet size:

NanoIDs

How it works

NanoID (github.com/ai/nanoid) is a compact random identifier. The default is 21 characters over a 64-symbol URL-safe alphabet — A-Z, a-z, 0-9, `_`, and `-` — the same set NanoID uses by default. Each character is drawn from the browser's Web Crypto API using NanoID's bitmask algorithm with rejection sampling, so every symbol is equally likely for any alphabet length and there is no modulo bias. Set a custom size, or a custom alphabet of 2 to 256 symbols (Unicode code points are counted, so emoji alphabets work). A custom alphabet with repeated characters is allowed but flagged, because repeats skew the distribution. Larger alphabets and longer IDs lower collision probability; NanoID's own collision calculator is the reference for picking a size. This tool only creates IDs; it does not parse or attribute an existing one.