Skip to content

Random String Generator

Create random strings from the characters you choose, one or a hundred at a time.

—

Random strings for test data and IDs. Need a password for an account? Use the Password Generator.

Options
Runs in your browser — your data is not uploaded.

How to use

  1. Set Length to a number from 1 to 256.
  2. Select A–Z, a–z, 0–9 or Symbols, or enter your own set in Custom characters.
  3. Set How many from 1 to 100. Each option change generates new strings.
  4. Use Copy for one string, or Copy all or Download for a list. Select Regenerate for new strings with the same settings.

Examples

Alphanumeric test ID

Input
Length 16; A–Z, a–z and 0–9; How many 1
Output
••••••••••••••••
Alphabet: 62 characters · ≈ 95.3 bits per string

32-character hex token

Input
Length 32; Custom characters 0123456789abcdef; How many 1
Output
••••••••••••••••••••••••••••••••
Alphabet: 16 characters · ≈ 128.0 bits per string

Uppercase booking codes for testing

Input
Length 8; A–Z only; Exclude ambiguous (i l 1 L o O 0 I); How many 10
Output
••••••••
••••••••
••••••••
••••••••
••••••••
••••••••
••••••••
••••••••
••••••••
••••••••
Alphabet: 23 characters · ≈ 36.2 bits per string

FAQ

How random are the strings?

The tool uses your browser's crypto.getRandomValues with unbiased sampling, not Math.random. If your browser lacks the Web Crypto API, it cannot generate strings.

Does Unique characters prevent duplicate strings?

Unique characters prevents repeated characters within each string, not duplicate strings in a list. Length cannot exceed the number of available characters.

Can I use spaces or Unicode in Custom characters?

Custom characters accepts printable ASCII without spaces, so Unicode characters are not supported. Duplicate characters are ignored, and this field replaces the selected character sets.

Are generated strings stored?

Generated strings stay in your browser and are not stored. Your settings, including Custom characters, are saved in localStorage; site analytics receives interaction events with only the tool slug.

Can I use this random string generator for passwords?

For account passwords, use the Password Generator. This tool does not guarantee that each string contains every selected character type.