Developer Tools

Nano ID Generator

Live

Nano ID with transparent inputs and reviewable results.

About Nano ID Generator

Nano ID with transparent inputs and reviewable results. Enter id length, quantity, alphabet in a purpose-built nano id generator interface designed for this subject. Rejection sampling with Web Crypto selects characters uniformly from the entered alphabet. The result includes generated ids, estimated entropy per id, alphabet size, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, supported input range, units, and rounding. Verify important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up Nano ID Generator

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

This workspace updates as you edit.

Enter id length.

Enter quantity.

Enter alphabet.

Nano ID Generator result

Enter the values above, then process to see a detailed result.

How Nano ID Generator works

Rejection sampling with Web Crypto selects characters uniformly from the entered alphabet.

How it works

Rejection sampling with Web Crypto selects characters uniformly from the entered alphabet. Results depend on the entered assumptions, supported input range, units, and rounding. Verify important decisions against authoritative requirements.

Examples

Nano ID Generator worked example

Example input
{
    "length": 21,
    "quantity": 8,
    "alphabet": "_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
Expected result
{
    "ids": [
        {
            "number": 1,
            "id": "29Iy01Q3JqXrBwLXVNpmX"
        },
        {
            "number": 2,
            "id": "viqp5ws74y51Ey9ceBVqP"
        },
        {
            "number": 3,
            "id": "BJRF46a1SOHI3vIMrithH"
        },
        {
            "number": 4,
            "id": "20xnGMHJRRKEmlmJIakL1"
        },
        {
            "number": 5,
            "id": "XZZ_o2JIeI-lcGyzosUT6"
        },
        {
            "number": 6,
            "id": "HGBw2W7pfON5VpESzLYW8"
        },
        {
            "number": 7,
            "id": "eLGySSu4wMd4YGAuWGPtS"
        },
        {
            "number": 8,
            "id": "zwwbu1RbXOiDzsCDXd3gD"
        }
    ],
    "entropy_per_id": 126,
    "alphabet_size": 64,
    "timestamp_ms": 1784159549211,
    "entropy_bits": 80
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Web Cryptography API

Frequently asked questions

How does the Nano ID Generator work?

Rejection sampling with Web Crypto selects characters uniformly from the entered alphabet.

What information should I enter?

Enter id length, quantity, alphabet. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports generated ids, estimated entropy per id, alphabet size, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, supported input range, units, and rounding. Verify important decisions against authoritative requirements.