Random String Generator

Create random strings online in your browser. Choose a length, combine lowercase, uppercase, digits and symbols, or use a custom alphabet such as hexadecimal or Base58. Generate up to 100 values at once, exclude look-alike characters, prevent repeats, then copy or download the formatted list. Everything runs locally on your device.

Character sets
Result
0 chars · 0 bytes
Try:
✓ Generate random strings, tokens and IDs ✓ For API keys, test data, salts and identifiers ✓ Cryptographically secure randomness (Web Crypto) ✓ Client-side processing only
Examples
Alphanumeric string (32)
Length: 32

A 32-character mix of letters and digits — a safe default for tokens, slugs and identifiers.

Hex string (32)
Length: 32 Custom characters: 0123456789abcdef

A 32-character lowercase hexadecimal string built from a custom alphabet — handy for keys and colours.

Strong 20 with symbols
Length: 20

Twenty characters from every set including symbols — maximum entropy per character for secrets and salts.

Lowercase-and-digit token (64)
Length: 64

A 64-character string containing lowercase letters and digits — useful when a system accepts a long token but not uppercase letters or symbols.

What is a random string generator?

A random string generator creates unpredictable character sequences from a pool you choose. Select lowercase and uppercase letters, digits, symbols, or enter a custom alphabet to generate a random string for development, testing or data preparation. The tool supports Latin, Cyrillic and several other letter alphabets, as well as practical custom sets such as hexadecimal or Base58.

To create a random string, set its length from 1 to 512 characters, choose the character sets, and click Generate. You can produce up to 100 strings in one batch and return them one per line, comma-separated, space-separated or as quoted values. Copy the result directly or download it as a plain-text file for use in a script, fixture, spreadsheet or configuration draft.

The strength of an unpredictable string depends on its length and the number of distinct characters available. In simple terms, entropy is approximately length × log₂(alphabet size). This online random string generator uses the browser's cryptographically secure crypto.getRandomValues API with rejection sampling, so each character is selected without modulo bias. Generation happens locally in the browser: generated values are not sent to, logged by or stored on this site.

Choose the right character set and options

Use letters and digits for compact general-purpose identifiers, or a custom hexadecimal alphabet (0123456789abcdef) when a system expects hex values. Add symbols when you need a larger character pool and the receiving system accepts punctuation. A custom alphabet is also useful for formats with restricted characters, test datasets and human-readable codes.

Enable Exclude similar characters to remove i, I, l, L, 1, o, O and 0 from the selected pool. This helps when a code must be read or typed by a person. Enable No repeated characters when every character in a string must be unique. In that mode, the requested length cannot exceed the number of unique characters in the selected pool.

A random string is raw generated data, not a claim about a particular standard or service. Use a format and length that match the requirements of the system that will consume it. For account passwords, choose the dedicated password generator instead; for UUID-formatted identifiers, use the UUID generator.

FAQ

The password generator is tuned for human-usable secrets and shows a strength meter and crack-time estimate. The random string generator is a developer utility: it supports any custom alphabet (hex, Base58, your own characters), bulk output and list formatting (one per line, comma- or space-separated), which is ideal for tokens, IDs and test data rather than login passwords.

Yes. Every string is generated locally in your browser using the cryptographically secure Web Crypto API (crypto.getRandomValues) with rejection sampling to avoid modulo bias. Nothing is transmitted to a server, logged or stored. For secrets, prefer a length and character set that give at least 128 bits of entropy — for example a 32-character hexadecimal or a 22-character Base58 string.

Set the Count field to any value from 1 to 100. The generator creates that many independent strings using the same length and character-pool settings. Choose one-per-line output for a text file, comma- or space-separated output for quick pasting, or quoted output when preparing a list for code or structured data. You can then copy the result or download it as a .txt file.

It removes characters that can be confused when read or typed: i, I, l, L, 1, o, O and 0. This is useful for invitation codes, temporary reference codes and other values people may need to enter manually. It reduces the character pool slightly, so use a suitable length if unpredictability is important.

Yes. Turn on No repeated characters to select each character at most once within a string. The maximum possible length then equals the number of unique characters in the selected sets and custom alphabet. For example, a digits-only string with this option can be no longer than 10 characters.

Choose the alphabet required by the destination system. Letters and digits suit many general identifiers; a custom 0123456789abcdef alphabet produces lowercase hexadecimal strings; and a custom Base58-style alphabet can avoid characters a format does not allow. The tool also offers several language letter alphabets. Duplicate characters in combined sets or a custom alphabet are counted only once.
Related tools

Password Generator

Create strong random passwords and memorable Diceware passphrases locally in your browser.