Passwords and encryption

Password Generator

Create strong, truly random passwords, memorable passphrases and PINs in one click, see exactly how strong they are, and optionally hash or encrypt them with industry-standard algorithms. Everything is created on your device with your browser's secure random generator and nothing is ever sent or stored.

  • Cryptographically secure
  • Hash and encrypt options
  • Never stored
Password generator with a long random password, strength meter and length slider

Generate several at once

Hash and encrypt this password

Hashes (one-way fingerprints)

Developers store a hash instead of the password. For real storage use a slow, salted algorithm like PBKDF2 (below), bcrypt or Argon2. MD5 and SHA-1 are shown only for learning and compatibility.

Encodings

Encrypt with AES-256-GCM

The key is derived from your secret with PBKDF2 (310,000 rounds, random salt) and the text is sealed with AES-256-GCM. Everything happens in your browser.

Created in your browser with its secure random generator. Never sent or stored.

What you get

Built to be quick, clear and private.

Random, passphrase or PIN

Pick the style that suits the account, from 4 to 64 characters, with the character types the site allows.

Honest strength meter

Entropy in bits and an estimate of how long a very fast attacker would need, calculated from the real settings.

Hash and encrypt

Turn the password into SHA-256, SHA-512, PBKDF2 and other digests, or lock it with AES-256-GCM and a secret of your own.

Bulk generation

Create up to 20 passwords at once for test accounts, imports or onboarding sheets.

How it works

Three steps from start to result.

  1. Choose a type and length

    Random characters are strongest per character, passphrases are easiest to remember. Use at least 16 characters for important accounts.

  2. Copy it into your password manager

    Paste it straight into the sign-up form or a password manager. Do not keep it in a note or an email.

  3. Optionally hash or encrypt it

    Open the encryption panel to see the hash a developer would store, or to protect the password with AES before you share it.

What makes a password strong

Strength comes from unpredictability, measured in bits of entropy. Every extra bit doubles the number of guesses an attacker needs, so a password that is only a few characters longer can be millions of times harder to crack. Humans are poor at randomness: we choose names, dates and keyboard patterns that cracking tools try first, which is why a generated password beats a clever one.

Hashing and encryption are often confused. A hash such as SHA-256 or PBKDF2 is a one-way fingerprint: you can check a password against it, but you cannot turn it back into the password. Websites should store hashes, never passwords, and should use slow salted algorithms so that stolen hashes are expensive to guess. Encryption, such as AES-256-GCM, is two-way: with the right secret you can recover the original text, which makes it useful for sending a password to someone.

The options in this tool let you see both ideas in action. Generate a password, open the hash panel to see the fingerprints a developer would store, and use the AES option to lock it with a secret before you share it. Share the encrypted text and the secret through different channels, and keep your everyday passwords in a password manager.

Great for

  • New accounts and password resets
  • Wi-Fi and router passwords
  • Test and demo accounts
  • Seeing what a password hash looks like
  • Sharing a password with an encrypted message
  • Teaching why length beats complexity

Good to know

Length beats cleverness

Each extra character multiplies the work for an attacker. A 20-character random password is far stronger than a short one with symbols.

Never reuse a password

One breach then opens every account that shares it. Generate a new one for each site.

Hashes are not for sharing

A hash is a one-way fingerprint used by developers for storage. To send a password to someone, use the AES option and share the key separately.

Frequently asked questions

Quick answers about password generator.

Are the passwords stored or sent anywhere?

No. They are created in your browser using the secure random number generator built into it. Nothing is transmitted, logged or saved.

How long should a password be?

Use at least 16 random characters for important accounts such as email and banking, and 12 as an absolute minimum elsewhere. With a password manager, 20 or more costs you nothing.

What is entropy?

Entropy measures unpredictability in bits. Every extra bit doubles the number of guesses an attacker needs. Under 40 bits is weak, 60 is acceptable for low-value accounts and 80 or more is strong.

Passphrase or random characters?

Both are strong when long enough. Passphrases chain random words, are easy to type and remember, and suit the few passwords you must know by heart. Random strings suit a password manager.

When is a PIN safe?

Only when the system locks after a few wrong tries, like a phone or a bank card. Never use a short PIN as a website password.

What are the hash options for?

A hash turns a password into a fixed-length fingerprint that cannot be reversed. Developers store hashes instead of passwords. The tool shows SHA-1, SHA-256, SHA-384, SHA-512 and a salted PBKDF2 hash so you can see what each looks like.

Which hash should I use to store passwords?

Plain SHA hashes are fast, which is bad for passwords. Use a slow, salted algorithm such as PBKDF2, bcrypt or Argon2. The PBKDF2 option here uses a random salt and 310,000 rounds of SHA-256.

What does the AES-256-GCM option do?

It encrypts the password with a key derived from a secret you type, using AES-256 in GCM mode, and shows a single text you can store or send. Paste it back with the same secret to decrypt it.

Is MD5 included?

MD5 is listed for compatibility and learning only. It is broken for security use and must never protect real passwords.

Can you recover a password I forgot to save?

No. We never see or store it. Generate a new one and update the account.

Is it safe to use an online password generator?

It depends on where the password is made. Many generators build it on a server. This one builds it in your browser and the page works without sending anything, which you can confirm in your browser's network tab.

Guide: Password Generator: How to Create Passwords That Cannot Be Guessed
Read the full guidePassword Generator: How to Create Passwords That Cannot Be Guessed

Most hacked accounts were protected by a password someone could have guessed. Here is how strong passwords work, how long they should be and how to generate one safely.

More free tools

Everything works without an account.