Skip to content

Password Generator

Generate strong random passwords or passphrases from the EFF wordlist. Set the length and character types, see the entropy, and make up to 100 at once.

Generating…

Generating a password in your browser…

Passwords are generated in your browser and are not sent to our server.

Type
20 characters
Character types
How many

01 · Definition

What is a password generator?

A password generator creates passwords from random numbers instead of human choices, so they contain no names, dates or keyboard patterns for an attacker to guess. Its strength is measured in bits of entropy: each extra bit doubles the number of guesses needed. This one runs in your browser and uses the Web Crypto API as its randomness source.

02 · Overview

How the Password Generator works

The generator has two modes. Random passwords are 4 to 64 characters drawn from the character types you select (A-Z, a-z, 0-9, symbols), with at least one of each selected type. Passphrases are 3 to 10 words drawn from the EFF large wordlist of 7,776 words. Both use crypto.getRandomValues with rejection sampling, so every character or word is equally likely. A new password appears whenever you change a setting, with its entropy in bits. Passwords are generated in your browser and are not sent to our server.

03 · Guide

Password entropy by length and character set

Entropy is the base-2 logarithm of the number of passwords the generator could have produced. The figures below are what this tool reports: they count only passwords that contain at least one character of every selected type, which is why they sit slightly under length × log2(character set size).

The symbol set is 25 characters: !@#$%^&*()-_=+[]{};:,.<>? With all four types selected the character set has 87 characters, or about 6.4 bits each.

The strength label uses one scale across this site: under 40 bits is very weak, 40 to 59 weak, 60 to 79 fair, 80 to 127 strong, and 128 or more very strong.

LengthLowercase only (26)Letters and digits (62)All four types (87)
837.647.250.5
1256.471.376.9
1675.295.2102.8
2094.0119.0128.7
24112.8142.9154.6
32150.4190.5206.1
Bits of entropy for a random password from this generator

04 · Guide

Passphrase vs random password

A passphrase is a sequence of words chosen at random from a fixed list. This tool uses the EFF large wordlist, which has 7,776 words, so each word adds log2(7776) = 12.9 bits no matter which separator or capitalisation you choose. The EFF recommends six words, about 77 bits, for most uses.

A random password packs more entropy into fewer characters: 12 characters from all four types (76.9 bits) is about as strong as a six-word passphrase that runs to 40 or more characters. A passphrase is easier to type and to remember. Use a passphrase for something you type by hand, such as a password manager's master password or a disk encryption key, and a random password for anything a password manager fills in for you.

WordsBits of entropyLabel on this site
451.7weak
564.6fair
677.5fair
790.5strong
8103.4strong
Passphrase strength with the EFF large wordlist

05 · Use cases

When to use the Password Generator

  1. 01

    Create a strong password for a new account

  2. 02

    Build a six-word passphrase for a password manager's master password

  3. 03

    Generate 100 passwords at once for test fixtures

  4. 04

    Make a letters-and-digits password for a system that rejects symbols

06 · Examples

Password Generator examples

Random, 20 characters, all four character types

ex 01

MY)Wi6+kXPWp2Z%$+g{n

About 129 bits, labelled very strong. It contains at least one uppercase letter, lowercase letter, digit and symbol.

Passphrase, 6 words, hyphen separator

ex 02

uranium-activator-release-stooge-mumbling-spouse

Six words from the EFF large wordlist: about 78 bits, labelled fair.

Random, 32 characters, letters and digits only

ex 03

0ahdNknVnrnNWQ2GpPeGGMGju48iK5fn

For systems that reject or truncate symbols. About 191 bits.

Passphrase, 7 words, space separator

ex 04

impulsive level uncounted dimmer undone impatient sevenfold

About 90 bits, labelled strong, and typeable on a phone or a TV remote.

07 · FAQ

Password: frequently asked questions

Are these passwords safe to use?

They are generated with window.crypto.getRandomValues, the browser's cryptographically secure random number generator, and each character or word is picked with rejection sampling so none is more likely than another. The password is created in your browser and is not sent to our server. As with any generator, store the result in a password manager rather than reusing it.

Should I use a random password or a passphrase?

Use a passphrase when you have to type or remember it: a master password, a laptop login, a Wi-Fi key. Use a random password when a password manager stores and fills it. At equal entropy a passphrase is much longer: six words (about 78 bits) run to 40 or more characters, while 12 random characters from all four types give about 77 bits.

How many bits of entropy do I need?

Each bit doubles the work of guessing. A password with 80 bits has about 1.2 × 10^24 possibilities, and one with 128 bits has about 3.4 × 10^38. This site labels 80 bits and above strong and 128 and above very strong. The default 20-character password is about 129 bits. The tool recalculates the figure whenever you change a setting.

How is the entropy calculated?

The tool calculates it from the settings that produced the password on screen, not from analysing the text. A passphrase is words × log2(7,776). A random password is the base-2 logarithm of the number of passwords of that length that contain at least one character of every selected type, which is a little under length × log2(character set size).

Should passwords still mix symbols and cases, and be changed regularly?

NIST SP 800-63B says services shall not impose composition rules such as requiring a mix of character types, and shall not require periodic password changes, only a change when there is evidence of compromise. It asks instead for length (at least 15 characters when a password is the only factor) and a check against known-compromised passwords. A site may still demand symbols, which is why the character types here are switchable.

Does the password I generate leave my browser?

No. It is generated by JavaScript in the page and is not sent to our server. The page does load analytics that record page views and that Generate or Copy was pressed, including how many passwords were requested, but never the passwords themselves. Once the page has loaded, random passwords also work offline.

Which wordlist do passphrases use?

Passphrases use the EFF large wordlist: 7,776 words chosen by the Electronic Frontier Foundation to be easy to type and tell apart. It is downloaded only when you switch to passphrase mode. Words are picked independently, so a word can occasionally repeat within a passphrase.

08 · Guides

Password guides

09 · Reference

Specs and further reading

These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.

10 · More

Tools that pair with Password

Last updated .