Developer tools

Random alphanumeric generator

Generate random strings of letters and digits. Uppercase, lowercase and numbers start selected, with symbols off. It runs in your browser.

String settings

Choose the length and characters your destination accepts.

String options

Include character types

Additional options

Removes exactly: 0 (zero), O, 1 (one), I, and l (lowercase L).

Each string must contain at least one of each selected type.

Choose your options, then generate strings.

Your strings

Your results will appear here, one string per line.

Copy and download export plain text. Reset clears this page’s results; it cannot clear a saved file or your clipboard.

How to generate alphanumeric strings

  1. Set length and count

    Length is the number of characters per string. String count is the number of results. The defaults are 20 characters and one string.

  2. Choose the character types

    Keep letters and numbers selected, with Symbols off, for alphanumeric output. Require every selected character type starts on.

  3. Generate and save

    Select Generate strings. Copy all copies the results, and Download .txt saves one string per line.

Changing a setting clears the previous output. Reset clears results and restores this page's defaults, including Symbols off. Cancel stops a generation that is still running.

Which characters can appear?

The starting alphabet contains 62 characters: uppercase A to Z, lowercase a to z and digits 0 to 9. It contains no spaces, punctuation or accented letters. Keep Symbols off to keep the output alphanumeric.

With Require every selected character type on, each string contains at least one uppercase letter, one lowercase letter and one digit. The length must therefore be at least 3 with these defaults. Turn that option off if a string may contain any mix of the selected characters.

Exclude similar characters removes exactly 0, O, 1, I and lowercase l. With all three alphanumeric types selected, that leaves 57 available characters. You can also turn off uppercase or lowercase letters if your destination accepts only one case.

Random strings can repeat

Use the output for sample values or wherever you need a random sequence with a specific length and alphabet. The generator does not check a database or remove duplicates. Characters can repeat within a string, and the same string can appear more than once, including in one batch.

If you use a string as an identifier, check it against existing values in your application. A short string has fewer possible values. This page does not promise uniqueness or certify password strength.

Frequently asked questions

How does the generator choose characters?

It uses the browser's Web Crypto getRandomValues function. Rejection sampling avoids favoring characters when random bytes are mapped to the alphabet. With Require every selected character type on, it rejects whole candidates that miss a selected type. Generation stops with an error if secure randomness is unavailable.

Can I generate one-character strings?

Yes. Set Length to 1 and turn off Require every selected character type, or select only one character type. A one-character result cannot include uppercase, lowercase and a digit at the same time.

What happens if I enable Symbols?

The generator also draws from 32 ASCII punctuation characters. The result is no longer limited to letters and digits. Reset restores the alphanumeric preset, or use the password generator link for a page that starts with symbols enabled.

How many strings can I generate?

Length and count must be positive whole numbers that JavaScript can represent exactly. There is no added count or length cap. Processing and the visible results must fit in available browser memory. Very large requests may fail or exhaust browser resources. Cancel stops processing; reduce length or count if it cannot finish.

Generate random numbers