Skip to content
MyToolkit.pro

Security

Password Generator

Pick a length and the character sets to include, then generate a random password. The entropy in bits is shown alongside the result. Everything runs locally in your browser.

Private by design: no text is uploaded or stored.

Generator options

Generator type

Result

Entropy (bits)
0
Strength
—

The generated value is not sent, logged, or stored by this site. Your system or password manager may keep its own clipboard history.

How is the password generated?

The generator uses your browser's cryptographically secure random number generator (crypto.getRandomValues), not Math.random(). A password contains at least one character from every selected set; a passphrase uses independently selected words. The value never leaves this page.

How to generate a strong random password

  1. Leave Password selected as the Generator type, or switch to Passphrase if you want words instead of characters.
  2. Set the Password length with the number field or the slider (4 to 256). The 12 characters, 24 characters and 32 characters presets set both at once.
  3. Tick the character sets you want. Lowercase, uppercase and digits are on by default and symbols are off. Turning on Symbols (!@#$...) adds 25 characters: !@#$%^&*()-_=+[]{};:,.<>?.
  4. If a target system rejects some characters, type them into Exclude characters. If people will read the password off a screen, tick Avoid ambiguous characters (I, l, 1, O, 0).
  5. Press Generate. The password is hidden at first. Click Show to read it, then Copy password.

With symbols enabled, every generated password contains at least one symbol. You don't need to regenerate until one turns up.

Entropy for common settings

The tool estimates entropy as length × log2(number of available characters). The estimate runs slightly high, because each selected set is guaranteed one character. It treats results under 28 bits as Weak, 28–35 as Fair, 36–59 as Strong and 60 or more as Very strong.

Settings Characters available Entropy (bits) Strength
16 chars, a-z A-Z 0-9 (default) 62 95 Very strong
16 chars, default + avoid ambiguous 57 93 Very strong
12 chars, all four sets 87 77 Very strong
20 chars, all four sets, exclude {}[]<> 81 127 Very strong
8 chars, a-z A-Z 0-9 62 48 Strong
6 chars, digits only 10 20 Weak

These labels don't account for offline cracking after a site's password database leaks, where attackers can try billions of guesses per second. Treat 8 characters as the bare minimum, not a target. For anything important, use 16 or more.

Avoiding ambiguous characters costs only about 2 bits on a 16-character password. That's a fair trade for a password someone has to type by hand.

In Passphrase mode, each word comes from a 64-word list and adds 6 bits. The Number of words slider goes from 3 to 10, so the maximum is 60 bits:

3 words  → 18 bits (Weak)
4 words  → 24 bits (Weak)      e.g. amber-beacon-cherry-eagle
6 words  → 36 bits (Strong)    default
8 words  → 48 bits (Strong)
10 words → 60 bits (Very strong)

Because the list is short, use 10 words for any passphrase you rely on. A password manager's master password should have more than 60 bits. For that, use a diceware-style generator with a 7,776-word list, where 6 words give about 77 bits.

Picking settings for a specific site or system

  • Accounts stored in a password manager: use 20–32 characters with all four sets. You never type them, so length costs you nothing. 20 characters from 87 gives about 129 bits.
  • Sites that reject some symbols: keep symbols on and put the rejected characters in Exclude characters, for example <>; for a form that strips markup-like input. That keeps more of the pool than turning symbols off entirely.
  • Wi-Fi keys and passwords read aloud: turn on the ambiguous-character option and consider leaving symbols off. A 20-character password from 57 characters still gives about 117 bits.
  • Numeric PINs: tick only Digits (0-9). A 6-digit PIN is 20 bits, which only works when the system limits how many attempts you get.
  • Database or API credentials: a long alphanumeric password avoids quoting problems in connection strings and .env files. If you need a unique identifier rather than a secret, the UUID Generator is the better fit.

Limits and error messages

  • If you clear every character set, generation stops with "Select at least one character set."
  • If your exclusions remove every character from a ticked set (for example, excluding 0123456789 while digits are on), you get "The exclusions remove every character from a selected set." Untick that set instead.
  • The length must be at least the number of selected sets, otherwise you see "The password must be at least as long as the number of selected sets."
  • Excluding characters that aren't in any selected set has no effect. The bit count only reflects the characters that remain.
  • The entropy figure assumes the password is random. It no longer applies once you edit the password by hand.
  • If you tick Clear the clipboard after 30 seconds if it still contains this value., the page clears the clipboard only when it can read it and the value hasn't changed. If the browser blocks clipboard reading, nothing is cleared. Your operating system's clipboard history may keep its own copy either way.

Randomness comes from the browser's crypto.getRandomValues().

Frequently asked questions

How long should a strong password be?

For a random password from letters and digits, 12 characters gives about 71 bits and 16 gives about 95. For accounts kept in a password manager, 20 or more characters costs you nothing extra.

Should I use the same generated password on several sites?

No. If one site leaks its password database, attackers try the same email and password on other services. Generate a separate password for each account and keep them in a password manager.

Are passphrases better than random passwords?

They are easier to type and remember, but each word here adds only 6 bits. Even the maximum of 10 words (60 bits) falls slightly short of a 10-character password using all four sets (64 bits).

Why does adding symbols barely change the entropy?

Symbols raise the pool from 62 to 87 characters, which adds about 0.5 bits per character. Adding four characters to the length gives you more than turning symbols on.

Can someone recreate the password I generated?

No. Each character is drawn from a fresh cryptographic random value, and there is no seed or setting that would reproduce it. If you lose it, generate a new one and update the account.

All in Code & Data

UUID Generator

Generate random UUID version 4 identifiers instantly in your browser.

Code & Data In your browser

Random Picker

Pick one or more random items from a list, with or without replacement. Private, fair selection entirely in your browser.

Text & Lists In your browser

Random team generator

Split a list of people into balanced random teams, with an optional seed for a repeatable draw.

Text & Lists In your browser

QR Code Generator

Generate a QR code from text or a URL, entirely in your browser. No upload, no external library, no tracking. Download as PNG.

Code & Data In your browser

Hash Generator

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes of any text in your browser. Digests update instantly and nothing is uploaded.

Code & Data In your browser

Cron Expression Helper

Explain a cron expression in plain English and preview its next run times. Runs entirely in your browser — nothing is uploaded.

Code & Data In your browser

What do you need?

Swipe up for the next one