How to Generate a Strong Password Online

Learn how to generate a strong password online: what makes a password hard to guess, which settings to pick, and how to store it safely.

What makes a password strong

A strong password has three qualities: it is long, it is unpredictable, and it is used in exactly one place. Length matters because every character you add multiplies the number of guesses an attacker must try. Unpredictability matters because a password built from a familiar word, a name, or a date is guessable even if it looks complicated. And uniqueness matters because a password that leaks in one data breach is useless everywhere else if it was never reused.

That is why the classic advice to "just add a number and an exclamation mark" to a weak password does not help much. Summer2024! follows a pattern millions of people use, and patterns are exactly what guessing tools try first. A random string of the same length, with no words in it at all, is far harder to guess.

How long should a password be

For accounts that matter — email, banking, cloud storage, social media — aim for at least 16 characters. Your email account deserves the longest password of all, because anyone who controls your email can reset passwords on almost every other service you use. For low-stakes accounts, such as a throwaway forum login, a shorter password is a reasonable trade-off, but the habit of generating a fresh one costs nothing and removes the decision entirely.

There is no prize for memorising a 16-character random string, and you should not try. That is what a password manager is for: it remembers the passwords so you only have to remember one strong master password.

Which settings to choose

When you generate a password, include all four character types if the service allows it: lowercase letters, uppercase letters, digits, and symbols. Some older websites restrict which symbols they accept; if a site rejects your generated password, regenerate with a narrower symbol set rather than falling back to a word-based password.

Length is the single most effective setting. Moving from 10 characters to 16 characters makes a password dramatically harder to guess, far more than swapping letters for lookalike symbols does. If a service caps password length — some still do — use the maximum it allows and make sure the password is unique to that service.

Never reuse a password

Reusing one password across sites is the most common way accounts get taken over. When a website suffers a breach, the leaked passwords are tried automatically against email providers, banks, shops, and social networks. If your password is unique to the breached site, the leak is an inconvenience. If it is shared across sites, the leak becomes a takeover of everything.

Generated passwords make uniqueness easy. Let the generator produce a different password for every account, store them in a password manager, and never worry about remembering any of them.

What to do after generating a password

Copy the password, paste it where it is needed, and save it in your password manager before you close the tab. If you generate a password and then lose it, there is no way to recover it — the tool does not store it, and neither does anyone else. When you change a password on an existing account, update the saved entry in your manager at the same time, and sign out of other devices if the service offers that option.

Turn on two-factor authentication wherever it is offered, especially on your email account. A second factor means that even a leaked password alone is not enough to get in.

What this tool does and does not do

The free Password Generator creates random passwords in your browser using the Web Crypto API, the browser's built-in source of randomness. You choose the length and the character sets, and the password is generated on your own device — it is never saved, transmitted, or sent to any server. That also means the tool cannot recover a password you lose, and it cannot judge whether a password you typed yourself is strong: its output is only as strong as the settings you choose. A short password with few character types is weak no matter how it was produced, so use the longest length the service allows. Like every tool on this site, it runs entirely in your browser; the same privacy-first approach is used by the Barcode Generator, and if you publish content online, the guide to blurring faces in photos covers another common privacy step before sharing.

Try it now — free

Use the Password Generator right in your browser. No signup.

Open the tool →

More guides

All guides →