Skip to content
Tools

Random String Generator

About Random String Generator

The Random String Generator creates random strings for passwords, API tokens, IDs, coupon codes, and test data. In Characters mode you choose the length and which characters to use: uppercase and lowercase letters, digits, symbols, and any custom characters, optionally without look-alikes such as 0 and O.

The other algorithms generate random bytes and encode them as Hex, Base64, Base64URL, or Base32 (RFC 4648), which suits secret keys and URL-safe tokens. Every result comes from your browser's cryptographically secure random generator and is never sent anywhere.

Features

  • Characters mode with uppercase, lowercase, digits, symbols, and custom characters
  • Random bytes encoded as Hex, Base64, Base64URL, or Base32
  • Up to 100 results at once, 1–256 characters or bytes each
  • Option to avoid look-alike characters such as 0/O and 1/l/I
  • Copy one result or all of them, or download a .txt file
  • Uses the browser's secure random generator without modulo bias
  • Your settings are saved in this browser; results are not

How to use

  1. Choose Characters or a byte encoding such as Hex or Base64.
  2. Set the length or number of bytes, how many results you need, and the characters to use.
  3. Copy a result, copy all of them, or download them as a .txt file.

Frequently asked questions

Are the strings secure enough for passwords and keys?

Yes. Every character or byte comes from crypto.getRandomValues, the browser's cryptographically secure random generator, and characters are picked without modulo bias. A 16-character password from letters and digits has about 95 bits of randomness; longer strings and larger character sets are stronger.

Is anything sent to a server?

No. Results are generated in your browser and never sent or saved. Only your settings, such as the algorithm, length, and character sets, are kept in this browser's local storage.

What are the limits?

Each result can be 1–256 characters in Characters mode or 1–256 random bytes in the byte encodings, and you can generate up to 100 results at once. Custom characters are limited to 256.

Which characters and encodings are supported?

Characters mode uses A–Z, a–z, 0–9, the symbols !@#$%^&*()-_=+[]{};:,.<>?/~, and any custom characters, including letters from other alphabets and emoji. Hex is lowercase, Base64 and Base32 follow RFC 4648 with = padding, and Base64URL uses - and _ without padding.

What does avoiding look-alike characters do?

It removes 0, O, o, 1, l, I, and | from the characters used, so codes are easier to read aloud or type from paper. Removing characters makes each string slightly less random, so use a longer length if strength matters.

Choose an algorithm, set the length and characters, and get as many random strings as you need.

Settings

Algorithm

Pick each character from the sets and custom characters below.

Character sets

Added to the chosen sets. Uncheck every set to use only these, such as 0123456789abcdef.

62 different characters

Results

Results appear here.