Random Password Generator

Generate strong random passwords or random strings right in your browser. Mix digits, uppercase letters, lowercase letters and symbols, choose the length and count, and exclude characters that are easy to confuse. Every result is generated locally — no duplicates, nothing uploaded — and can be copied or downloaded instantly.

Character sets
Result 0 in total

About this tool

The random password generator creates strong, unpredictable passwords and random strings in seconds. It draws randomness from the browser Web Crypto API rather than an ordinary pseudo-random function, so the results are cryptographically strong and suitable for account passwords, API keys and invitation codes.

Nothing is sent to a server: every password is produced on your own device, which means the results can never be logged, intercepted or stored by this website.

Strength is a number, not a feeling. A password drawn uniformly from a pool of N characters has log2(N) bits of entropy per character, so 12 characters from a 62-symbol pool carry about 71 bits, while 16 characters carry about 95. Adding symbols raises the pool and therefore every character, but length multiplies the total, which is why a long passphrase usually beats a short scrambled string that is hard to remember. Online attacks are limited by rate and lockout, so even 40 bits may survive; offline attacks against a stolen hash can test billions of guesses per second, so 70 bits is a reasonable floor today. Note that forcing one character from each class does not add entropy in proportion, since it slightly reduces the keyspace, and the practical benefit comes from the length that such rules usually impose.

The generator solves only one part of the problem. A perfect password reused on three sites is compromised the moment any one of them leaks, because attackers replay the pair against every other service, a technique known as credential stuffing. Generate a separate value per account and store it in a password manager, which also removes the need for a memorable pattern. Forced rotation on a fixed calendar is no longer recommended, because it pushes people toward predictable increments; rotate on evidence of a breach or when someone with access leaves. If a service limits length or forbids symbols, that is a signal about how it stores passwords, not a reason to weaken every other account. Check new passwords against known breach corpora where possible, and never paste one into a chat window or an issue tracker to compare notes.

Random strings for machines have different constraints from passwords for people. An API key or invitation code travels in URLs, headers and logs, so it should use an alphabet that needs no escaping: letters and digits, or Base64url with - and _ instead of + and /, which gives six bits per character. A 128-bit token therefore needs 22 characters, and a 256-bit one needs 43. Shortening the string to look tidy is the usual mistake, and so is using a normal pseudo-random function where the output must be unpredictable; the Web Crypto API used here is the right primitive, while Math.random is not. Treat generated secrets as write-once: store only a hash on the server, show the value to the user once, and log the identifier rather than the secret itself.

How to use

  1. Character sets: tick the character ranges you want to use. You can select more than one, but at least one is required.
  2. Number of passwords: how many passwords to generate at once, from 1 to 1000.
  3. Password length: enter a fixed value (both boxes the same) or a range such as 16 to 20. The allowed range is 1 to 512.
  4. Include characters: adds custom characters to the candidate pool. Repeating a character increases its weight, but does not guarantee it appears in the result.
  5. Exclude characters: the generated passwords will never contain these characters. By default the easily confused characters 0oO1iIlLq9g are excluded.
  6. Result: one password per line, automatically de-duplicated. Copy everything to the clipboard or download it as a UTF-8 text file.
  7. Decide the attack model before choosing a length: for a password typed into a rate-limited login, 12 to 16 random characters are enough; for a key that could be cracked offline from a leaked database, target at least 80 bits and prefer 20 or more characters.
  8. Close the loop after generating: paste the result into your password manager, confirm it was saved, and log in once. A password that was copied from a field that silently dropped a character, or lost in a clipboard manager, is discovered at the worst possible moment.

Frequently asked questions

Are the generated passwords stored or uploaded to a server?

No. Every password is generated on your device using the browser cryptographically secure random number generator (Web Crypto API). Nothing is uploaded or recorded, and the results disappear as soon as you close or refresh the page.

Why do the passwords never contain 0, o, O, 1, i, l, L, q, 9 or g?

The “Exclude characters” box is pre-filled with 0oO1iIlLq9g because these characters look alike in many fonts — for example the digit 0 versus the letter O, or the digit 1 versus the letter l. Remove them from the box to use them again.

What is the difference between “Include characters” and “Exclude characters”?

“Include characters” adds characters to the candidate pool, and repeating the same character makes it more likely to be picked — but it is not guaranteed to appear. “Exclude characters” removes them from the pool completely, so the results can never contain them.

How many passwords can I generate at once?

To keep the browser responsive, the limit is 1000 passwords per run and 512 characters per password. Results are automatically de-duplicated, so you may receive slightly fewer passwords than requested when the possible combinations run out.

Are the generated passwords strong enough?

Yes. Use at least 12 characters and enable digits, uppercase, lowercase and symbols — the number of possible combinations becomes so large that brute forcing is impractical. Use a different password for every important account and store them in a password manager.

Is a 12-character random password still strong enough?

For most online accounts, yes: 12 characters from letters, digits and symbols give roughly 70 bits, far beyond what a rate-limited login can test. The exception is a system that stores fast unsalted hashes, where offline cracking is cheap, so use 16 or more characters for anything that protects money, infrastructure or source code.

Why are some characters excluded by default?

Because 0 and O, 1 and l, 5 and S look alike in many fonts, and a password that has to be read aloud or typed from a screen can be mistyped. Excluding a handful of characters costs less than one bit of entropy at typical lengths, which is a fair trade for fewer support calls; remove the exclusions if the value will only ever be pasted.

Can I use these passwords for Wi-Fi or API keys?

Yes, but match the constraints of the consumer. Wi-Fi keys may need to be typed on a TV remote, so a shorter alphabet or a passphrase is easier; API keys must survive URLs and logs, so pick letters and digits or Base64url and use at least 128 bits. Never shorten a key just to make it fit a field without recalculating the entropy it loses.