Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

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.

Mis à jour le
ULIDs

Decode a ULID

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : 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.

Aussi recherché comme : nanoid generator, nanoid online, short id generator, url safe id generator, nanoid collision, custom alphabet id generator, random id generator.

Outils complémentaires : Nano ID Generator

  • UUID Generator — Create cryptographically random UUIDs (v4) or sortable, timestamp-based UUIDs (v7) in bulk, then copy or download them.
  • Générateur de mots de passe — Créez des mots de passe robustes et véritablement aléatoires ou des phrases de passe faciles à saisir, grâce à des règles avancées : incluez ou excluez des mots, imposez des caractères, choisissez les symboles autorisés, évitez les répétitions et les séquences.
  • Générateur de nombres aléatoires — Générez des nombres aléatoires (avec ou sans doublons), sélectionnez des gagnants dans une liste, mélangez des noms, répartissez des groupes en équipes, lancez une pièce et lancez des dés — en utilisant la fonction aléatoire cryptographiquement sécurisée de votre navigateur.
  • 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.

Questions fréquentes

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.
Puis-je installer Nano ID Generator en tant qu’application web et l’utiliser hors ligne ?
Oui. Nano ID Generator est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires