Random String Generator
Random String Generator creates random strings in bulk — just choose which characters to use and how long each string should be. Common formats such as passwords, PINs and random IDs are one tap away in the presets.
Results
Nothing generated yet. Choose your settings and press "Generate" — results appear here, one per line.
What is Random String Generator?
Choose from uppercase, lowercase, digits and symbols, set the length and how many you need, then press "Generate".
Anything from 1 to 100,000 characters long, and from 1 to 1,000 strings at a time.
Copy the results one by one or all at once, or save them as a .txt file!
When a random string generator comes in handy
- 🔐 Picking a password for a new account
- 🔢 Choosing a 4- or 6-digit PIN that is not your birthday
- 🆔 Preparing random IDs for test data or a system
- 🎟️ Creating a batch of coupon or invite codes for a campaign
- 📶 Making a Wi-Fi password you will write down on paper
- 🧪 Testing a length limit with a very long string
✨ What makes this generator different
- Built on your browser’s cryptographic random numbersCharacters are chosen with the random number generator browsers provide for cryptography (the Web Crypto API). Unlike ordinary random numbers (Math.random), its output is not practically predictable, and for every character drawn, values that would skew the odds are discarded so each selected character is equally likely.
- Every selected type is guaranteed to appearWith "Include at least one of each selected type" turned on, each type you picked shows up at least once, so the result will not be rejected by rules like "must contain a digit". The whole string is regenerated until every selected type appears, so no position or pattern is favored.
- Leave out look-alike characters for easy copying by handYou can exclude characters that are easy to confuse, such as the digit 0 and the letter O, or the digit 1, lowercase l and uppercase I. Handy when you write a Wi-Fi password on paper or read one out loud.
- Take large batches with you as a .txt fileGenerate up to 1,000 strings of up to 100,000 characters each. Even when that is too much to copy from the screen, "Download .txt" saves everything as a text file with one result per line.
- Nothing you generate is sent or keptEverything is generated inside your browser, and the strings are never sent to our server. Nothing is stored on your device either, so closing the page leaves nothing behind.
📖 How to use
- If one of the presets fits, choose it (it fills in the character types, length and count).
- Adjust the character types, length and how many you need by hand, if you like.
- Press "Generate" — the random strings appear below, one per line.
- Press "Copy" on the line you want, or use "Copy all" or "Download .txt" to take them all.
- The length can be 1 to 100,000 characters, and you can generate 1 to 1,000 strings at a time.
- When length × count goes above 3 million characters, generating and showing the results can take a few seconds on some devices. In that case, the results shown are cleared as soon as generation starts.
- When "Include at least one of each" is on, the length must be at least the number of selected types.
- "Exclude look-alike characters" leaves out these seven: 0, O, o, 1, l, I and |.
- Generated strings are not saved. They disappear when you leave the page, so copy or download the ones you need.
- Choosing a PIN preset turns off "Exclude look-alike characters" (leaving it on would cut the digits down to eight and reduce the combinations).
- For full details, please read our Terms of Service.
🛡️ Choosing a length and character set
The number of possible random strings is the size of the character set multiplied by itself once for each character in the string. Each extra character multiplies the combinations by the size of the character set. The figures below are theoretical values, assuming every position can use every selected character and each character is chosen independently and uniformly at random. (Turning on "Include at least one of each" rules out strings that miss a type, which lowers the count by up to about 20% without changing the order of magnitude.) More combinations mean a string is harder to guess by brute force, but real-world security also depends on not reusing passwords and on using two-factor authentication.
- PINs (4 or 6 digits)Four digits give only 10,000 combinations and six digits give 1,000,000. These lengths assume a lockout after a few wrong tries, as with bank cards and phones. Do not use them as passwords for websites.
- Letters and digits (62 characters)14 characters give about 1.24 × 10^25 combinations, and 16 characters about 4.77 × 10^28. A long password generated truly at random can be expected to hold up well against brute-force attacks.
- Letters, digits and symbols (94 characters)16 characters give about 3.72 × 10^31 combinations — more than letters and digits alone at the same length. However, some services reject symbols or allow only a few. If yours does, change the character types to match what the service accepts.
- Random IDs (36 lowercase letters and digits, 32 characters)About 6.33 × 10^49 combinations. Because every character is chosen independently and uniformly at random, the chance of two identical IDs is extremely low even in large batches. With only lowercase letters and digits, systems that ignore letter case will not turn two different IDs into the same one. Still, follow any length or character limits of the place where you use it.
❓ FAQ
- Is the random string generator free?
- Yes, it is free. There is no account to create and nothing to install — open the page and press "Generate" to get random strings right away.
- Are the passwords I generate sent or stored anywhere?
- No. Everything is generated inside your browser — the strings are never sent to our server and never stored on your device. They are gone once you close the page.
- How random is it?
- Characters are chosen with the random number generator browsers provide for cryptography (crypto.getRandomValues in the Web Crypto API). For each character drawn, values that would make some characters more likely than others are discarded and drawn again, so each selected character has the same chance. With "Include at least one of each" turned on, strings that miss a type are regenerated, so every string that meets the condition is equally likely. As a result, characters from smaller sets such as digits appear a little more often per position, and the shorter the string, the bigger that difference.
- What does "Include at least one of each selected type" change?
- Each type you selected (for example uppercase, lowercase and digits) appears at least once. With it off, a short string might happen to contain no digits at all. The whole string is regenerated until every selected type appears, so every string that meets the condition is equally likely.
- Which characters count as look-alikes?
- These seven: the digit 0, the letters O and o, the digit 1, lowercase l, uppercase I, and the | symbol. They are hard to tell apart in handwriting and some fonts, so excluding them helps when a string will be copied by hand or read aloud.
- Is there a way to save a large batch at once?
- Press "Download .txt" to save the generated strings as a text file with one result per line. "Copy all" also puts them on your clipboard, one per line.
