Secure Password Generator
Create a random password of any length, with uppercase, lowercase, digits and symbols, and copy it with one tap. It is made in your browser with its cryptographic generator: what is generated never leaves your device.
Works anywhere in the world, wherever you are.
Your password
…
8 to 128 characters.
Strength
Strong
≈ 103 bits: log₂ of (possible characters ^ length)
- Length
- 16
- Possible characters
- 90
- Character types
- 4 of 4
Strength comes only from the length and how many different characters it can use: that is all that matters for a random password like this one. The levels are the site's rule of thumb: under 50 bits, weak; 50 to 79, fair; 80 to 127, strong; 128 or more, very strong.
What is generated never leaves your device: the password is made in your browser with its cryptographic generator, is not in the Share link, is not saved and is not sent to analytics. Only the options (length and types) are remembered.
Related tools
UUID Generator
Everyday
Random v4 or time-ordered v7 UUIDs, 1 to 1,000 at once.
OpenRandom Number Generator
Everyday
Random numbers in a range, dice and coin flips.
OpenQR Code Generator
Everyday
A link, Wi-Fi, contact or SMS in a QR code. Free PNG and SVG.
OpenBase64 Encoder and Decoder
Everyday
Text or files to Base64 and back, with accents and emoji right.
OpenAbout this calculator
How to use it
When the page opens you already have a 16-character password using all four types. Change the length (8 to 128) or the character types and a new one appears instantly. "New password" gives you another with the same options and "Copy" puts it on your clipboard.
If you will read it or type it by hand, turn on "Leave out look-alikes": it drops capital I, lowercase l, 1, capital O and 0, which look almost the same in many fonts.
How it is generated
Every character is picked with crypto.getRandomValues, the browser's cryptographic random number generator, the same kind used to create encryption keys. JavaScript's ordinary random generator, which is not built for this, is never used.
So that every character has exactly the same chance, a random number that lands in the part that does not divide evenly is thrown away and another one is drawn (rejection sampling). One character of each type you selected is picked first, to guarantee they are all there, the rest come from all possible characters, and then the whole thing is shuffled into random order.
Strength is calculated only from the length and the number of possible characters: bits = log₂(possible characters ^ length). Each extra bit doubles the combinations someone would have to try. The levels are the site's rule of thumb: under 50 bits, weak; 50 to 79, fair; 80 to 127, strong; 128 or more, very strong.
Example
With the default options, 16 characters and all four types, there are 90 possible characters (26 uppercase, 26 lowercase, 10 digits and 28 symbols). Strength is 16 × log₂(90) ≈ 103 bits, level "Strong".
Going up to 20 characters reaches 129 bits, "Very strong". Leaving out look-alikes leaves 85 possible characters, and 16 characters give 102 bits. Eight digits alone, on the other hand, are just 26 bits: "Weak".
Good practice
Use a different password for every account. If one site is breached, a reused password opens all the others. A password manager stores and fills them for you, so you do not have to memorize them.
Where you can, turn on two-step verification (a code or an app on top of the password). And never share a password by text message or email.
Your password stays with you
The password is created in your browser and exists only on this page. It is not sent to any server, is not in the Share link, is not saved on your device and is not sent to the site's statistics. Only the options are remembered: the length and the character types.
Important limitations
- Once copied, the password sits on your clipboard; if your phone or computer keeps a clipboard history, it is there too. Clear it from that history if that concerns you.
- Some sites cap the length or reject certain symbols. If yours is rejected, turn off symbols or shorten it and generate another.
- The strength applies to a password exactly as it comes out of here. If you edit it by hand, reuse it across sites or write it where others can see it, it no longer applies.
- Requiring one character of each type trims the possible combinations very slightly, so the bits shown are a maximum; the difference is tiny.
- This tool does not check passwords you already have: typing your current password into a web page is never a good idea.
Frequently asked questions
This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.