Esta página aún no está traducida al español, así que la mostramos en inglés.

Nano ID Generator — Short, URL-Safe Unique IDs

Make short, random, URL-safe IDs like V1StGXR8_Z5jdHi6B-myT — the same format as the popular nanoid library. Choose the length and alphabet, add a prefix, and check the collision calculator to be sure your IDs are long enough.

Actualizado el
ULIDs

Decode a ULID

Tus datos nunca salen de tu ordenador. Todo se procesa localmente en tu navegador.

Cómo usar: Nano ID Generator

  1. The page starts in Nano ID mode with the default 21 URL-safe characters.
  2. Pick a shorter or longer length and an alphabet — for codes people type, choose “No look-alikes”.
  3. Enter how many IDs you create per hour to see the time until a 1% chance of a duplicate.
  4. Copy or download the IDs.

How Nano ID picks characters

Each character is drawn from the alphabet with crypto.getRandomValues. To keep every character equally likely, random bytes are masked to the next power of two and values outside the alphabet are thrown away — the same approach as the nanoid library — instead of using modulo, which would favor some characters.

The collision estimate uses the birthday bound: with an alphabet of A characters and length L there are AL possible IDs, and a 1% chance of a duplicate appears after about √(0.02 · AL) IDs. For sortable IDs, see the ULID Generator.

También se busca como: nanoid generator, nanoid online, short id generator, url safe id generator, nanoid collision, custom alphabet id generator, random id generator.

Herramientas que combinan con: Nano ID Generator

  • UUID Generator — Create cryptographically random UUIDs (v4) or sortable, timestamp-based UUIDs (v7) in bulk, then copy or download them.
  • Generador de contraseñas — Crea contraseñas seguras y verdaderamente aleatorias o frases de contraseña fáciles de escribir, con reglas avanzadas: incluye o excluye palabras, exige determinados caracteres, elige los símbolos permitidos, evita repeticiones y secuencias.
  • Generador de números aleatorios — Genera números aleatorios (con o sin duplicados), elige ganadores de una lista, mezcla nombres, divide grupos en equipos, lanza monedas y tira los dados, todo ello utilizando el generador de números aleatorios criptográficamente seguro de tu navegador.
  • Slug Generator — Convert any title into a clean, lowercase URL slug — with proper transliteration of accents, umlauts and Cyrillic, optional stop-word removal and a bulk mode for whole lists.

Preguntas frecuentes

Is Nano ID better than UUID?
For IDs in URLs, yes: 21 Nano ID characters carry slightly more randomness than a UUID v4 in 15 fewer characters. UUIDs are better when a database or API expects that exact format.
Which alphabet should I use?
URL-safe is the default and the most compact. Use No look-alikes for codes people read or type (vouchers, invite codes), and Numbers only for things like order numbers — with more length to compensate.
Are these IDs secure?
They come from the browser’s cryptographic random generator, so they are unpredictable. For secrets such as API keys, use 32 or more characters.
¿Puedo instalar Nano ID Generator como aplicación web y utilizarla sin conexión?
Sí. Nano ID Generator es una aplicación web instalable (PWA): se instala desde el navegador, no se descarga desde una tienda de aplicaciones. Haz clic en «Instalar aplicación» en la parte superior de esta página en Chrome o Edge (Windows, macOS, Linux, ChromeOS) o, en Android, utiliza «Compartir» → «Añadir a la pantalla de inicio» en iPhone y iPad, o «Archivo» → «Añadir al Dock» en Safari 17+ en un Mac. A continuación, se abrirá en su propia ventana con su propio icono y, como se ejecuta íntegramente en tu navegador, seguirá funcionando sin conexión. Firefox en el ordenador de sobremesa no permite instalar aplicaciones web. Cómo funciona la instalación.

Herramientas relacionadas