← Passwords & security

Password / security tools

Random string generator

Generate random strings using a preset or custom character set.

Runs in your browser

Length: 1–1,024 characters. Batch: 1–100 strings, up to 10,000 characters in total. A custom set needs 2–256 distinct characters without whitespace or control characters. Duplicates are ignored.

Each character is selected with a cryptographic random source and rejection sampling to avoid bias. Strength depends on the length and character set you choose. Results are generated only when you press the button.

Practical guide

Create random strings with a preset or custom alphabet for test data and application identifiers. Choose an alphabet that the receiving system can store without alteration.

Steps that matter

  1. Set the length, quantity and allowed character set.
  2. Generate and check whether case sensitivity or punctuation affects the destination.
  3. For production tokens, also implement expiry, permissions and secure storage in your application.

Worked example

With 16 possible hexadecimal characters and 8 independent positions, there are 16⁸ = 4,294,967,296 possible strings. This counts possibilities; it does not guarantee uniqueness for a generated batch.

Check before using the result

  • Short strings and small alphabets have fewer combinations. Enforce uniqueness where your application requires it.
  • A generated string alone is not a complete session or API-key design. Do not treat an example value from a guide as a secret.