Password Generator
The Password Generator creates strong, unpredictable passwords using real cryptographic randomness — not Math.random(). Choose the length and character sets, check the strength meter, and copy.
How to Use
- 1
Set the password length — 16+ characters is the modern baseline; 20–32 for anything critical.
- 2
Toggle the character sets: uppercase, lowercase, digits, and symbols. More sets mean more entropy per character.
- 3
Hit Generate — the password is built with crypto.getRandomValues(), the browser's cryptographic RNG.
- 4
Check the strength meter (Weak to Very Secure), then copy it straight into your password manager.
Frequently Asked Questions
Are generated passwords stored or sent anywhere?
Why not just use Math.random()?
What character sets can I use?
How long should my password be?
Can I use this for WiFi or database passwords?
What symbols are included?
Why does my password have no symbol even though symbols are on?
How does the strength meter work?
What lengths can I choose?
Can I generate a passphrase of random words instead?
Generative Answer & AI Documentation
What is the Password Generator?
The Password Generator creates a fresh password from the browser's cryptographic random number generator — window.crypto.getRandomValues — never from Math.random, whose output can be predicted by anyone who observes enough of it. You choose the length with a slider from 8 to 64 characters (16 by default) and toggle four character sets: lowercase a–z, uppercase A–Z, digits 0–9, and symbols. All four sets are switched on by default. A new password is generated automatically the moment the page loads and again every time you change the length or any character set, so there is no generate button to hunt for — a Regenerate button sits next to the copy button when you want another one. A strength meter underneath rates the result as None, Weak, Medium, Strong, or Very Secure, with a coloured bar showing the score. The password is shown in full and copies with one click. Nothing is stored, logged, or sent anywhere: the password exists only in your browser tab until you copy it, and closing the tab destroys it.
Why use Password Generator offline?
A password is only as strong as the randomness behind it and the length in front of it, and humans are bad at both: the passwords people invent reuse familiar words, follow predictable patterns, and cluster around eight characters. A generator fixes the randomness by drawing from the operating system's entropy pool through the Web Crypto API, which is designed to be unpredictable even to an attacker watching the output — the difference between crypto.getRandomValues and Math.random is the difference between a secret and a puzzle. Length is the other half: every extra character multiplies the search space, and the slider here runs to 64 characters because a long password from a large character set is beyond brute force in any practical sense. The strength meter keeps the choice honest, because a 20-character password from all four sets is a different object from an 8-character one made of lowercase letters alone. And because the password is generated locally, it never crosses a network: no server ever sees the password it created for you, which is the entire point of generating it yourself.
When should you use this tool?
Use it when you create any account that matters: email, banking, cloud consoles, admin panels, databases, and Wi-Fi. Use it for the passwords you will never type yourself — database credentials, API secrets, and service accounts — where a 32- or 64-character password costs nothing and buys real security. Use it when a site forces a password change and you need a fresh one on the spot. Use the strength meter as a check, not a target: aim for Very Secure on anything important, which in practice means 16 or more characters with several character sets on. Do not use it for the one password you must memorise — your password manager's master password — where a long passphrase of random words is easier to remember and just as strong. And never generate a password you are not ready to save: the tool deliberately does not remember it, so copy it into your password manager before you close the tab or paste it anywhere.
Key Benefits
- Cryptographic randomness: built with window.crypto.getRandomValues, the browser's Web Crypto API — not Math.random().
- Length from 8 to 64 characters: a slider covers short PINs and 64-character service credentials, with 16 as the default.
- Four character sets: lowercase, uppercase, digits, and symbols, all switchable, all on by default.
- Automatic generation: a password appears on load and regenerates the moment any setting changes — no generate button needed.
- Strength meter: rates the password None, Weak, Medium, Strong, or Very Secure so a weak choice is visible at a glance.
- 100% private: generation happens in browser memory — nothing is uploaded, logged, or saved, and closing the tab destroys the password.
Common Use Cases
- Creating a new account: generate a 20-character password from all four sets and save it in your password manager before submitting the signup form.
- Rotating a database password: generate a 32-character credential for a service account that no human will ever type.
- Setting a Wi-Fi password: generate a long password once, save it in the manager, and share it with the household from there.
- Replacing a breached password: generate a fresh password for any account that appeared in a breach notification, instead of tweaking the old one.
- Issuing a temporary credential: generate a password for a contractor or a test account, then rotate it again when the access is no longer needed.
Developer Notes & Best Practices
Generation builds a character set from the toggles that are on — lowercase abcdefghijklmnopqrstuvwxyz, uppercase ABCDEFGHIJKLMNOPQRSTUVWXYZ, digits 0123456789, and the symbol set !@#$%^&*()_+-=[]{}|;:,.<>? — and then fills a Uint32Array of the chosen length with window.crypto.getRandomValues, taking each character as charset[randomValue % charset.length]. With all four sets on the pool has 91 characters, so a 20-character password carries about 130 bits of entropy (each character contributes about 6.5 bits). Two honest limits follow from that construction. First, characters are sampled independently, so enabling a set does not guarantee it appears: a 16-character password with symbols on can by chance contain no symbol at all — regenerate if a site requires every set to be present. Second, the modulo operation introduces a negligible bias toward the first characters of the pool; it is far too small to matter for a password. The strength meter scores only length and variety: one point each for reaching 8, 12, and 16 characters, plus one point per character type beyond the first. A score of 2 or less is Weak, 3 is Medium, 4 is Strong, and 5 or more is Very Secure. That means a 16-character password from all four sets scores 3 + 3 = 6 and reads Very Secure. The meter is a heuristic: it knows nothing about breached passwords, dictionary words, or reuse.
- Use 16 characters as the floor for anything important and 20–32 for critical accounts: length beats complexity, and the slider goes to 64 for credentials nobody types.
- Keep all four character sets on unless a site forbids a set: more sets mean more entropy per character.
- Save the password in a password manager before you paste it anywhere: the tool does not remember it, and closing the tab destroys it.
- Regenerate if a site requires every character set to appear: enabling a set does not guarantee it shows up in the password.
- Never reuse a generated password across accounts: generate a fresh one per account, so one breach does not compromise the rest.
- Treat the strength meter as a floor, not a guarantee: it measures length and variety only, and says nothing about whether the password was breached or reused.
Common Mistakes
- Generating a password and closing the tab before saving it: the tool deliberately does not remember anything, so the password is gone — copy it into your password manager first.
- Turning character sets off to make the password easier to read: every set you remove lowers the entropy per character, so keep all four on unless a site forbids one.
- Using an 8-character password for an important account: the slider's minimum is not a recommendation — 16 characters is the floor for anything that matters.
- Trusting the meter as a guarantee: a Very Secure rating measures length and variety only, and a password that was breached elsewhere or reused across sites is weak whatever the meter says.
- Reusing one generated password across accounts: a generator makes fresh passwords cheap, so generate one per account instead of copying the same one everywhere.
- Assuming every enabled set appears: a password can by chance contain no symbol even with symbols on — check the password before submitting it to a site that requires one.
Limitations
There is no passphrase mode: the tool generates random characters only, not memorable word-based passphrases, so the master password for your password manager needs a different approach. Enabling a character set does not guarantee it appears in the password — characters are sampled independently, so a site that requires a symbol may reject a password that happens to have none, and you will need to regenerate. The strength meter is a heuristic based on length and character variety only: it does not check breached-password lists, dictionary words, or reuse, so a Very Secure rating is not a guarantee. There is no password history and no save function: the password exists only in the tab, and closing it loses the password permanently. The minimum length is 8 characters, so a shorter PIN cannot be generated here.
Structured Input/Output Example
Length: 20, Lowercase: on, Uppercase: on, Numbers: on, Symbols: on
A 20-character password drawn from all four sets (for example, k7#Qm2$vL9@xR4&wT8z!) — your password will differ, because every generation draws fresh random values. Strength: Very Secure.
Related Tools
UUID Generator
UUID generator: create RFC 4122 v4 (random) or v1 (time-based) UUIDs — 1 to 100 in bulk. Lowercase, UPPER, {braced}, hyphen-free.
Hash Generator
Hash generator: type any text and get its MD5, SHA-1, and SHA-256 digests side by side in real time. Compare algorithms at a glance. Free, offline.
JWT Decoder Offline
JWT decoder offline: inspect a token’s header, payload claims, and expiry as readable JSON. 100% client-side — production tokens never leave your browser.