Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

ULID & Nano ID Generator — Sortable and Short Unique IDs

Generate ULIDs — 26-character IDs that sort by creation time — or Nano IDs, short URL-friendly IDs with the alphabet and length you choose. Make one or a thousand at once, decode a ULID’s timestamp, and see how long it would take before two Nano IDs collide. Everything uses your browser’s secure random generator.

Atualizado em
ULIDs

Decode a ULID

Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

Como usar: ULID & Nano ID Generator

  1. Choose ULID for IDs that sort by time (great as database keys), or Nano ID for short, random, URL-friendly IDs.
  2. Set how many to generate — up to 1,000. For ULIDs keep monotonic on so IDs made in the same millisecond still sort in order.
  3. For Nano IDs pick the length and alphabet (or type your own) and an optional prefix like usr_; the collision risk panel shows if it is long enough.
  4. Copy or download the list. Paste a ULID into Decode to see when it was created.

ULID vs Nano ID vs UUID

ULIDNano ID (default)UUID v4
Length26 characters21 characters36 characters
Randomness80 bits + 48-bit timestamp126 bits122 bits
Sorts by timeYesNoNo (v7 does)
URL-safeYes (Crockford Base32)YesYes, but long

A ULID starts with a 10-character timestamp (milliseconds since 1970) followed by 16 random characters, in Crockford’s Base32 alphabet — no I, L, O or U, so it is hard to misread. Because the time comes first, ULIDs sort in creation order, which keeps database indexes compact. A Nano ID is pure randomness: with the default 21 URL-safe characters you would need to create a billion IDs every second for about 40 years before there is a 1% chance of a single duplicate.

Both are generated with crypto.getRandomValues, without the bias of Math.random() or modulo tricks. Need standard UUIDs? Use the UUID Generator.

Também pesquisado como: ulid generator, nanoid generator, nano id generator, generate ulid, ulid decoder, ulid to timestamp, short unique id generator, nanoid collision calculator.

Ferramentas que combinam com: ULID & Nano ID Generator

  • Gerador de senhas — Crie senhas fortes e verdadeiramente aleatórias ou frases-senha fáceis de digitar — com regras avançadas: inclua ou exclua palavras, exija determinados caracteres, escolha os símbolos permitidos, evite repetições e sequências.
  • Hash Generator — Compute MD5 and SHA hashes of any text or file instantly, create HMAC signatures, and paste an expected checksum to verify a download.
  • Gerador de números aleatórios — Gere números aleatórios (com ou sem repetições), escolha vencedores de uma lista, embaralhe nomes, divida grupos em equipes, jogue moedas e lance dados — usando a geração de números aleatórios criptograficamente segura do seu navegador.
  • Unix Timestamp Converter — See the current Unix time live, convert any epoch timestamp (seconds, milliseconds, micro- or nanoseconds) to a date in any time zone, and turn dates back into timestamps.

Perguntas frequentes

What is a ULID?
A Universally Unique Lexicographically Sortable Identifier: 26 characters, 48 bits of millisecond timestamp plus 80 random bits, encoded in Crockford Base32. ULIDs sort by creation time, unlike UUID v4.
How short can a Nano ID be?
It depends on how many you create. Enter your rate in the collision panel: it shows how long until there is a 1% chance of a duplicate. For public IDs created often, keep 16 characters or more.
Can I get the date from a ULID?
Yes — paste it into Decode a ULID. The first 10 characters are the creation time in milliseconds, shown as a date in your time zone and in UTC.
What does monotonic mean?
When several ULIDs are made in the same millisecond, monotonic mode increments the random part instead of drawing a new one, so they still sort in the exact order they were created.
Posso instalar o ULID & Nano ID Generator como um aplicativo da web e usá-lo offline?
Sim. O ULID & Nano ID Generator é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

Ferramentas relacionadas