Developer tool

Passphrase and PIN Generator

Generate memorable diceware-style passphrases from the EFF word list and random PINs, with entropy shown. Uses secure randomness and runs in your browser.

Free, no sign-up. Runs in your browser; nothing is uploaded.

Options

Type

Results

    64.6 bits of entropy | Strong

    Each word is picked at random from the 7,776-word EFF long list (12.92 bits per word). Four words is a good floor; five or six is better for a master password.

    Generated with your browser's secure random number generator. Nothing is sent or stored. Word list: EFF long list by the Electronic Frontier Foundation, licensed CC BY 3.0 US.

    How to use the passphrase and pin generator

    Passwords you can remember and nobody can guess

    Long random passwords are strong but hard to remember. A passphrase made of several random words gets you the same strength in a form your brain can hold. This tool builds them from the EFF long wordlist and shows how strong they are.

    Passphrases

    Choose how many words (three to ten), a separator and a few options:

    • Capitalise each word satisfies sites that require uppercase.
    • Add a random digit to one word satisfies sites that demand a number.
    • Separator can be a hyphen, space, dot, underscore or nothing.

    The tool generates a batch so you can pick one you find memorable. Because every word is chosen at random, you should use the result as it is rather than swapping words for ones you like better; that would reduce the randomness.

    Entropy explained

    Each word from a 7,776-word list adds about 12.9 bits. Five words give roughly 65 bits, which would take an attacker an impractically long time to guess offline. The panel under the results shows the total and a plain label from Weak to Very strong.

    PINs

    Choose four to twelve digits. With "avoid repeats, runs and doubled patterns" on, you will not get 0000, 1234 or 4545. PINs have about 3.3 bits per digit, so use them only where wrong guesses are limited by lockouts.

    Good habits

    1. Use a unique passphrase for each important account, or one master passphrase plus a password manager.
    2. Turn on two-factor authentication wherever it is offered.
    3. Do not store passphrases in plain text notes or email.
    4. Never reuse a PIN across devices and cards.
    5. Write down a master passphrase on paper and keep it somewhere safe until it is memorised.

    Privacy

    Secrets are created in your browser with its secure random generator. They are never uploaded, logged or saved.

    Frequently asked questions

    What is a diceware passphrase?

    A password made of several random words, such as correct-horse-battery-staple. It is long enough to be strong yet far easier to remember and type than random symbols.

    How many words do I need?

    Four is a reasonable minimum, five or six for important accounts and a password manager master password. Each word from this list adds about 12.9 bits of entropy.

    Where does the word list come from?

    The EFF long wordlist of 7,776 words, designed for dice rolls, with words that are easy to read and spell. It is released by the Electronic Frontier Foundation under CC BY 3.0 US.

    Is the randomness secure?

    Yes. It uses crypto.getRandomValues with rejection sampling so every word is equally likely. Nothing is sent to a server or stored.

    Are PINs safe?

    A PIN has little entropy, so it is only safe where a system limits guesses, like a bank card or phone lock. Avoid repeats and runs such as 1234; the option does this for you.

    How is this different from the password generator?

    The password generator makes character-based passwords. This one makes word-based passphrases and PINs, which are better when you must remember or type the secret.