Token Generator (Random String Generator)

Generate secure random tokens locally in your browser. Nothing is uploaded.

All processing happens locally in your browser. Tokens are not sent to any server.

Other languages 日本語 | English | 简体中文 | 繁體中文 | Español | Português (Brasil) | Bahasa Indonesia | Français | हिन्दी | العربية

Why this token generator?

How to use (3 steps)

  1. Choose a format (base64url / hex / custom charset).
  2. Set length and count, then generate.
  3. Copy, download, or share settings-only URL.

Generate

Token generator

Pick a format and length, generate a batch, then copy, download, or share settings (never tokens).

Advanced (seeded / charset options)
Embed this tool

This tool runs in your browser. Generated tokens are not sent to any server.

Share URL contains settings only (never tokens).

Results

    Recommended token workflow

    Pick the right randomness mode

    Use Secure mode for API keys, invite codes, reset links, or anything that grants access. Use Seeded mode only when you need repeatable fixtures for tests, docs, or demos.

    Match the length and encoding to the destination

    32 bytes is a practical starting point for many tokens. Hex is easy to inspect, base64url is shorter for links and config files, and custom alphabets are useful only when another system requires a restricted character set.

    Share settings, not secrets

    The share URL stores generator settings only. Generated tokens stay in your browser, so copy the final token into your vault or target system instead of pasting it into tickets, chats, or URLs.

    Quick checks before you ship

    Frequently asked questions

    Is this secure?

    Secure mode uses crypto.getRandomValues. Seeded mode is for reproducible tests only and is not secure.

    How many bytes should I use for an API key?

    A common baseline is 32 bytes (256 bits). For higher security margins, you can use 48 or 64 bytes.

    What is base64url?

    Base64url is base64 modified for URLs: + becomes -, / becomes _, and padding (=) can be removed.

    Are generated tokens stored or uploaded?

    No. Everything runs locally in your browser. Tokens are not uploaded and are not saved by default.

    Why doesn’t the share URL include tokens?

    Putting secrets in URLs can leak through history, logs, and referrers. This tool shares settings only, never tokens.