Random String Generator
Generate random strings and tokens with configurable length, quantity, character pool, and letter case.
Run tool
This online random string generator produces customizable text strings and tokens for development, testing, and mock data creation. You can configure the output length anywhere from 1 to 256 characters and generate up to 50 items simultaneously. The generator supports multiple character sets, including decimal digits, standard letters, alphanumeric combinations, hexadecimal characters, and a base64 format containing letters, digits, plus signs, and slashes. For letter and alphanumeric pools, letter casing can be set to mixed case, uppercase only, or lowercase only. The case option does not modify numeric, hexadecimal, or base64 character sets. By default, the generator creates one 16-character alphanumeric string in mixed case. If an invalid or out-of-range value is entered for length or count, the tool automatically adjusts values to valid limits or applies standard defaults. Every character is selected at random, providing fresh output on each run.
Instructions
- Specify the desired string length between 1 and 256 characters (default is 16).
- Enter the number of strings to generate between 1 and 50 (default is 1).
- Select your preferred character pool: alphanumeric, digits, letters, hexadecimal, or base64.
- Choose your letter casing preference (mixed, uppercase, or lowercase) when using letters or alphanumeric sets.
- Run the generator to inspect and copy your generated strings from the result panel.
Examples
- Generating a 32-character hexadecimal token: set Length to 32, Count to 1, and Character Set to hexadecimal to generate a single 32-character hex sequence.
- Generating five 8-digit numeric verification codes: set Length to 8, Count to 5, and Character Set to digits to produce five distinct numeric strings.
- Generating three 20-character uppercase alphanumeric keys: set Length to 20, Count to 3, Character Set to alphanumeric, and Letter Case to Uppercase.
FAQ
What character sets are supported?
The tool supports five character pool options: decimal digits (0-9), standard alphabetic letters (A-Z, a-z), combined alphanumeric characters, hexadecimal notation (0-9, a-f), and a base64 character set including letters, digits, plus signs, and slashes.
How are out-of-range length or count values handled?
If an entered length or count is outside the allowed bounds (1 to 256 for length, 1 to 50 for count) or contains invalid numeric input, the tool automatically adjusts to the nearest permitted limit or resets to standard default values.
Does letter casing apply to digits or hexadecimal output?
No. The letter casing selection applies strictly to letter and alphanumeric character pools. Digits, hexadecimal sequences, and base64 strings maintain their standard character formats.
Are generated strings guaranteed to be unique across multiple runs?
Each character position is chosen independently through random selection. While duplicate strings are statistically rare for long lengths, absolute uniqueness across generations is not guaranteed.