Password Generator

Build strong, random passwords with exactly the length and character types you need. Everything is generated in your browser with cryptographically secure randomness — nothing is uploaded, logged or stored.

Your password

Strength: — —

Options

4 16+ recommended 128
Include characters

Privacy: passwords are generated locally with crypto.getRandomValues and never sent anywhere. Closing or reloading this page discards them permanently, so copy anything you want to keep into a password manager first.

  1. 1

    Choose a password length

    Drag the length slider or type a number into the box next to it. Anything from 4 to 128 characters is allowed; 16 or more is recommended for real accounts.

  2. 2

    Select the character types

    Tick uppercase letters, lowercase letters, numbers and symbols in any combination. At least one type must stay selected, and every selected type is guaranteed to appear in the result.

  3. 3

    Set the optional extras

    Exclude similar-looking characters such as l, 1, I, O and 0 if the password has to be read or typed by hand, and choose how many passwords to generate at once.

  4. 4

    Generate and check the strength

    Press Generate. The passwords appear instantly along with a strength meter showing the estimated entropy in bits for the settings you chose.

  5. 5

    Copy and store it safely

    Copy a single password with the button beside it, or copy the whole list at once, then paste it straight into your password manager rather than a note or an email.

Diagram showing password generator options for length, uppercase, lowercase, numbers and symbols feeding a character pool that produces a random password and a strength rating
How the Password Generator works: your chosen options build a character pool, and secure randomness draws from it.

Overview & Benefits: Why Use a Password Generator?

Passwords invented by people are far more predictable than they feel. We reach for names, dates, keyboard patterns and a favourite word with a digit bolted on the end, and we reuse the result across dozens of accounts. Attackers know this: modern cracking tools work through leaked password lists, dictionary words and common substitutions such as a → @ or s → 5 long before they ever resort to brute force. A password generator sidesteps the problem completely by removing human habit from the process and drawing each character at random instead.

This tool gives you direct control over the two things that decide how hard a password is to guess: its length and the size of its character pool. Set any length from 4 to 128 characters, then include or exclude uppercase letters, lowercase letters, numbers and symbols in any combination. When you select more than one character type, the generator guarantees at least one character from each of them before shuffling everything into its final order, so a password can never quietly come out missing a type a website insists on.

Concrete benefits over inventing a password yourself:

  • No predictable patterns: every character is drawn independently, so there are no words, dates or keyboard runs for a cracking dictionary to latch onto.
  • Measurable strength: the meter reports entropy in bits rather than a vague "weak or strong" badge, so you can see exactly what a change in length buys you.
  • Meets awkward site rules: toggle symbols or numbers off when a site rejects them, or on when it demands them, without weakening the rest of the password.
  • Fast bulk creation: generate up to 20 unique passwords at once when you are setting up a batch of accounts, devices or service logins.
  • Readable when it has to be: exclude similar-looking characters for passwords that get typed from a printed sheet or read over the phone.

How the Strength Meter Works

Strength here is entropy, measured in bits, and calculated as the password length multiplied by the base-2 logarithm of the character pool size. A 12-character password drawn from the full 94-character printable set carries roughly 78 bits; stretching it to 20 characters pushes it past 130 bits. Entropy is the honest measure because it describes how much work an attacker has to do, whereas the familiar "one uppercase, one number, one symbol" rule can be satisfied by a password as flimsy as Password1!. The practical takeaway is that length beats complexity: adding characters raises entropy much faster than swapping a letter for a lookalike symbol.

Where the Randomness Comes From

Every character is selected using crypto.getRandomValues, the browser's cryptographically secure random number generator, rather than the ordinary Math.random function, whose output is predictable enough to be unsuitable for anything security related. The tool also uses rejection sampling when mapping random numbers onto the character pool, which removes the subtle modulo bias that would otherwise make some characters marginally more likely than others. The final shuffle uses the same secure source.

Common Use Cases

For Everyday Accounts

  • Replacing a reused password: generate a unique 20-character password for each site so one breach cannot cascade into the rest of your accounts.
  • Recovering after a leak: when a service announces a breach, generate a fresh password rather than editing the old one.

For Developers and IT Teams

  • Service credentials: create long, symbol-heavy secrets for database users, API accounts and admin panels.
  • Bulk provisioning: generate a batch of starter passwords for new devices or user accounts in one pass.

For Shared and Offline Situations

  • Wi-Fi and guest access: exclude similar characters so a guest can type the password correctly from a printed card the first time.
  • Phone support: a password without l, 1, O and 0 is far easier to read aloud accurately.

Password Best Practices

  1. Use a password manager. It is the only realistic way to keep a different strong password for every account, and it removes any need to memorise what you generate here.
  2. Never reuse passwords. Reuse converts a single breach somewhere else into a compromise of your email, bank and everything tied to them.
  3. Turn on two-factor authentication. Even a perfect password benefits from a second factor, especially on email and financial accounts.
  4. Do not store passwords in plain text. Notes apps, spreadsheets, chat messages and email drafts are all readable by anyone who reaches the device or the account.
  5. Change a password when there is a reason to. Rotate after a breach or a suspected compromise rather than on an arbitrary calendar schedule, which tends to push people toward weaker, predictable variations.

Privacy: What Happens to Your Password

Nothing generated on this page leaves your device. There is no upload, no form submission and no background request — the generator is pure JavaScript running in your own browser, which is exactly why this tool has no server-side component, unlike some of our other utilities. The passwords exist only in the page's memory and are discarded the moment you close or reload the tab. That also means there is no history to go back to, so copy anything you intend to keep before you navigate away.

Frequently Asked Questions (FAQs)

Are the generated passwords ever sent to your server?

No. Passwords are created entirely inside your browser using the Web Crypto API and never leave your device. There is no upload, no API call and no logging, so there is nothing for us to store even if we wanted to.

Is this random enough to be safe?

Yes. The tool uses crypto.getRandomValues, the browser's cryptographically secure random number generator, and applies rejection sampling so every character in the pool is equally likely. The much weaker Math.random function is not used anywhere in this tool.

How long should my password be?

For an account that matters, 16 characters or more with a mixed character set is a sensible minimum, and 20 or more is better. Length adds far more strength than swapping a letter for a lookalike symbol, so prefer a longer password over a short, complicated one.

What does the strength meter actually measure?

It measures entropy in bits, calculated as the password length multiplied by the base-2 logarithm of the character pool size. Entropy describes how much guessing an attacker has to do, which is a far better measure than counting character types.

Why would I exclude similar-looking characters?

Characters such as l, 1, I, O and 0 are easy to confuse when a password has to be read aloud, copied from a screen or typed from a printed sheet. Excluding them slightly shrinks the character pool, so add a few extra characters of length to compensate.

Can I generate more than one password at a time?

Yes. Set the quantity control to generate up to 20 passwords at once, then copy any single one individually or copy the whole list in one click.

Do I need to pick every character type?

No, but the more types you include the larger the character pool and the stronger the result. At least one type must be selected. When you select several types, the generator guarantees at least one character from each before shuffling the rest.

Should I reuse a password across sites?

No. Generate a separate password for every account and store them in a password manager. Reuse is what turns a single breach at one website into a break-in on all of your other accounts.

Ready to secure an account? Scroll back to the generator, or browse the rest of our free Security Tools.

Other free utilities that pair well with tightening up your accounts.

More reading from the blog.