Random String & Token Generator

Runs locally in your browser

Generate secure random strings, API keys and tokens with honest entropy

Character Set

Effective alphabet

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

62 unique characters · 6 bits each

Options

190.5 bits of entropy per string.

Advanced

Output

Generated strings appear here.

Choose a character set and select Generate.

Only options are remembered in this browser; generated strings are never saved or sent.

Need a password with policy rules? Use Password Generator

Random String & Token Generator

Generate random strings, API keys, secrets and invite codes in your browser. Every character is drawn uniformly with crypto.getRandomValues and unbiased rejection sampling, and the entropy shown is the real value for the alphabet you choose.

How to use
  1. 1.Choose a preset such as Alphanumeric, Hex or Base64URL-safe, or enter a custom alphabet.
  2. 2.Set the length and quantity, and turn on Avoid ambiguous for codes people type by hand.
  3. 3.Optionally add a prefix or suffix under Advanced, such as sk_.
  4. 4.Select Generate, then copy one string, Copy All or download a .txt file.
How entropy is calculated

Entropy is length × log2(alphabet size) bits, using the unique characters left after ambiguous characters are removed. A prefix or suffix is fixed text and adds no entropy. With Require each class, strings missing a class are redrawn, and the entropy is counted exactly over the strings that remain, so it is slightly lower. 128 bits or more is a common target for API keys and session tokens.

Limits and privacy

Length 1–1024, quantity 1–100, custom alphabet up to 4096 code points and prefix or suffix up to 64. Custom alphabets are split by Unicode code points, so an emoji built from several code points counts as several characters. Generated strings stay in memory only; your options are remembered in this browser, the strings are not.

CodingTool is officially live on

Launched on StartupBaseCodingTool.dev - Free, Fast & Easy Developer Tools in One Place | Product HuntCodingTool - Featured on Startup FameFazier badgeListed on Turbo0Featured on Twelve ToolsFeatured on Findly.tools