Random String Generator
Generate a random string for API keys, test data, invite codes, or file names, from an alphabet you control.
Your input stays in your browser. Nothing is uploaded.
About this tool
Each character is picked uniformly from the alphabet using crypto.getRandomValues with rejection sampling, so every character has the same chance. The default alphabet has 62 characters (A–Z, a–z, 0–9); you can type any other set. If a character appears twice in the alphabet, it is twice as likely to be chosen. Length can be 1 to 256 characters.
How to use it
- Set the length.
- Edit the alphabet if you need, for example, only digits or only lowercase hex.
- Press Generate and copy the string.
Examples
API token
24 characters from the default 62-character alphabet give 24 × log₂(62) ≈ 143 bits.
Hex ID
An alphabet of 0123456789abcdef and length 32 gives a 128-bit hex identifier.
Readable invite code
Use an alphabet without look-alike characters, such as ABCDEFGHJKLMNPQRSTUVWXYZ23456789, for codes people type by hand.

