Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsUUID GeneratorNanoid Generator

Nanoid Generator

dev

Short random nanoid IDs with your own length and alphabet, and the collision odds

Runs in your browser. Nothing you type is sent anywhere. Updated on 24 Oct 2026.

Nanoid makes short random IDs for URLs, file names and database keys: 21 URL-safe characters by default, carrying 126 random bits, a little more than the 122 in a UUID v4. Choose the length and the alphabet, such as digits only or no lookalike characters, and the page estimates how many IDs you could create before a 1% chance of a duplicate. Values use the same unbiased method as the nanoid library.

Next:
  • Mock Data Generator Rows of realistic test data as JSON, CSV, SQL or XML, the same every time from one seed

How to generate a nanoid

1

The page opens with nanoid selected under Type, at 21 characters.

2

Set Length and pick an Alphabet, or choose Custom and type your own characters.

3

Read the note under the result for how many IDs give a 1% chance of a duplicate.

4

Set How many, click Generate, then Copy.

How Nanoid Generator works

This UUID generator creates version 4 and version 7 UUIDs in your browser, from one to a thousand at a time. Choose uppercase, no hyphens or curly braces, then copy the list or download it as a text file. Paste any UUID into the checker to see whether it is valid, which version it is, and when it was made if the version records a time.

Version 4 values come from crypto.randomUUID. Version 7 values follow RFC 9562: 48 bits of milliseconds, the version and variant bits, a counter and random bits from crypto.getRandomValues. Within the same millisecond the counter increases, so every UUID in a batch is larger than the one before, even when you generate a thousand at once.

Two alternatives are built in. A ULID is 26 characters of Crockford base32, a millisecond timestamp followed by 80 random bits, and sorts as text; the monotonic option keeps IDs from one millisecond in order. A nanoid is a short random string, 21 URL-safe characters by default, with your own length and alphabet and an estimate of the collision odds. The checker decodes a ULID's time as well as a UUID's.

The rest of the article, and all 6 questions about UUID Generator, are on the UUID Generator page.

Frequently asked questions

What is the difference between UUID v4 and v7?

Version 4 is entirely random apart from the version and variant bits. Version 7 starts with the time in milliseconds, then adds random bits, so v7 UUIDs sort in the order they were created. Use v7 for database primary keys, v4 when the order must not reveal anything.

Are these UUIDs really unique?

In practice, yes. A v4 UUID has 122 random bits; you would need to generate billions per second for many years before a collision became likely. Version 7 adds a millisecond timestamp and a counter, which makes a clash within one generator impossible.

When should I use a ULID or a nanoid instead of a UUID?

A ULID suits database keys and logs that should sort by time as plain text, in 26 characters instead of 36. A nanoid suits short IDs in URLs or file names, where a timestamp is not wanted. Use a UUID when a schema, an API or a database column type expects one.

Are generated UUIDs sent or saved anywhere?

No. They are generated in your browser with its secure random number generator and are never sent or stored. Only your options, such as uppercase or the number to generate, are remembered on this device.

Still stuck? Ask about UUID Generator and anybody who knows can answer. No account needed.

More ways to use UUID Generator

  • UUID GeneratorRandom v4 and time-ordered v7 UUIDs, up to 1,000 at once, plus a validator
  • GUID GeneratorGenerate GUIDs for .NET, SQL Server and Windows, in brace format
  • ULID GeneratorSortable 26-character ULIDs, monotonic within a millisecond, with a time decoder

Same job, other tools: Fake Address Generator (India) – Indian test addresses with a real city, state and PIN code, on streets that do not exist · Random IP Address Generator – IPv4 addresses for logs and tests, drawn only from the ranges reserved for documentation.

On the related tools: Remove Tracking Parameters – Strip utm, fbclid and gclid from a link before you share it.

Related tools

All developer tools
Mock Data GeneratorRows of realistic test data as JSON, CSV, SQL or XML, the same every time from one seedNginx Config GeneratorA commented nginx server block for a reverse proxy, static site, SPA or redirectURL Parser & Query EditorSplit a link into its parts, edit the parameters and rebuild itBarcode GeneratorMake EAN-13, EAN-8, UPC-A, Code 128, Code 39 and ITF-14 barcodes as SVG or PNGHash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files, with checksum compareCron Expression BuilderBuild a cron schedule from menus, read it in plain English, see the next runsSlug GeneratorClean URL slugs from titles, including accented and Hindi text, one or hundreds at onceMeta Tag GeneratorWrite title, description, canonical, Open Graph and Twitter tags with a live preview

In the collection Test Data Generators.

Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)