Text Tools
Fancy Text
Calculators
Everyday helpers

Quick calculators

Percentages, money, grades, math, age, sleep and time tools.

Browse all calculators
% Percentage Calculator Percent of, change and difference ½ Fraction Calculator Add, subtract and simplify fractions A+ Grade Calculator Weighted grade and final exam score 4.0 GPA Calculator Semester and cumulative GPA Av Average Calculator Mean, median, mode and range σ Standard Deviation Calculator Spread of a data set, step by step 1:2 Ratio Calculator Simplify and scale ratios ≈ Rounding Calculator Round to any place or figure 1.0 Significant Figures Calculator Count and round significant figures ft² Square Footage Calculator Area of rooms and shapes Tp Tip Calculator Work out the tip and split the bill Ex Expense Calculator Track and total your spending Ag Age Calculator Exact age in years, months and days Zz Sleep Calculator Find a good time to sleep or wake t± Online Time Calculator Add and subtract hours and minutes Di Discount Calculator Sale price, percent off, stacked deals St Sales Tax Calculator Add, remove or find tax, VAT mode Si Simple Interest Calculator Interest, principal, rate or time Ci Compound Interest Calculator Growth, deposits, schedule and APY Pm Payment Calculator Loan payment, total interest Ir Interest Rate Calculator Rate from amounts or payments Fv Future Value Calculator Deposits, growth, compounding Pv Present Value Calculator Discount a lump sum or payments Fn Finance Calculator Solve N, rate, PV, PMT or FV Ro ROI Calculator Net gain, ROI and break-even Cm Commission Calculator Flat, tiered or base plus commission Sa Salary Calculator Hourly, weekly, annual pay E+ Scientific Notation Calculator Convert and calculate in E notation
Health
Dev Tools
More
Menu
Text Tools
Fancy Text
Calculators
Everyday helpers

Quick calculators

Percentages, money, grades, math, age, sleep and time tools.

Browse all calculators
% Percentage Calculator Percent of, change and difference ½ Fraction Calculator Add, subtract and simplify fractions A+ Grade Calculator Weighted grade and final exam score 4.0 GPA Calculator Semester and cumulative GPA Av Average Calculator Mean, median, mode and range σ Standard Deviation Calculator Spread of a data set, step by step 1:2 Ratio Calculator Simplify and scale ratios ≈ Rounding Calculator Round to any place or figure 1.0 Significant Figures Calculator Count and round significant figures ft² Square Footage Calculator Area of rooms and shapes Tp Tip Calculator Work out the tip and split the bill Ex Expense Calculator Track and total your spending Ag Age Calculator Exact age in years, months and days Zz Sleep Calculator Find a good time to sleep or wake t± Online Time Calculator Add and subtract hours and minutes Di Discount Calculator Sale price, percent off, stacked deals St Sales Tax Calculator Add, remove or find tax, VAT mode Si Simple Interest Calculator Interest, principal, rate or time Ci Compound Interest Calculator Growth, deposits, schedule and APY Pm Payment Calculator Loan payment, total interest Ir Interest Rate Calculator Rate from amounts or payments Fv Future Value Calculator Deposits, growth, compounding Pv Present Value Calculator Discount a lump sum or payments Fn Finance Calculator Solve N, rate, PV, PMT or FV Ro ROI Calculator Net gain, ROI and break-even Cm Commission Calculator Flat, tiered or base plus commission Sa Salary Calculator Hourly, weekly, annual pay E+ Scientific Notation Calculator Convert and calculate in E notation
Health
Dev Tools
More
Blog Get the Chrome extension
Blog Get the Chrome extension
Free · No sign-up · Made in your browser, never sent or stored

Random Password Generator: passwords and PINs

Pick a length and the characters you want, then copy a strong random password. It uses your browser's secure random source, and the strength shown is calculated, not guessed.

Include
Your password

Made in your browser with crypto.getRandomValues. Nothing is sent, stored or logged.
The basics

What is a random password generator?

A random password generator makes passwords by picking characters at random, so there is no pattern for anyone to guess. This one runs in your browser with its secure random source. Choose a length and the character types, press generate and copy the result. Nothing is sent to a server or stored.

Length does most of the work. NIST SP 800-63B-4 sets a minimum of 15 characters for a password used on its own and 8 for one used only as part of multi-factor sign-in, and recommends that services accept at least 64 characters. This tool starts at 16 and goes up to 128.

You can also make a numeric PIN. If you need to tidy text before you paste it somewhere, the case converter is one click away.

Password or PIN
TypeDefaultEntropyBest for
PasswordRandom characters, 16 long102.3 bitsAccounts where a password manager fills it in
PINSix digits19.9 bitsPhones and cards that lock after a few wrong tries
How it works

How to use the random password generator

Four steps, no sign-up.

01

Pick a type

Password for random characters, PIN for digits only.

02

Set the options

Choose the length and which character types to include. Tick look-alikes or no repeats if you need them.

03

Check the strength

The meter shows entropy in bits and a plain label. Raise the length to raise it.

04

Copy and save it

Press Show to read it, or copy it straight away. Paste it into the sign-up field and save it in a password manager.

Under the hood

How does the generator work?

The tool asks your browser for random numbers with crypto.getRandomValues. MDN describes the result as cryptographically strong random values. A simple remainder would make some characters slightly more likely, so the tool discards any random number that would cause that and draws again (rejection sampling). Every character in the pool is equally likely.

Entropy is the base-2 logarithm of the number of different results the settings allow. A 16-character password from a pool of 85 characters has 8516 possible results, about 102.6 bits. Requiring one of each type removes a few results and brings it to 102.3 bits; the tool counts that exactly rather than estimating.

The strength labels compare the size of that search space with fixed thresholds. They are this tool's own convention, not a standard, and they assume the result is truly random. They are not a promise about how long a password would last.

Strength labels used by the tool
Entropy (bits)Label
Under 28Very weak
28 to 35.9Weak
36 to 59.9Fair
60 to 79.9Strong
80 and aboveVery strong
Length

How long should a random password be?

As long as the site allows, and at least 16 for an account you do not type by hand. OWASP advises allowing at least 64 characters so that long passwords and passphrases work. Every extra character multiplies the search space, while a bigger character set only adds a little per character.

The table shows the entropy of a password with no extra rules, by length and pool size. Doubling the length doubles the bits. Going from lowercase only to 85 characters adds about 1.7 bits per character.

Entropy in bits by length and character pool
LengthLowercase onlyLetters and numbersLetters, numbers, 23 symbols
837.647.651.3
1256.471.576.9
1675.295.3102.6
2094.0119.1128.2
24112.8142.9153.8
PINs

Password or PIN: which one?

Use a random password for almost every account, and let a password manager fill it in. Use a PIN only where the service limits wrong guesses, such as a phone lock or a bank card.

A PIN has so few possible values that it cannot protect anything an attacker may try without limit. Adding digits helps, but even ten digits is far below a 16-character password.

PIN entropy by length
DigitsEntropy
413.3 bits
619.9 bits
826.6 bits
1033.2 bits
Avoid these

Common password mistakes

These mistakes are easy to make and easy to avoid. Check them first.

  • Reusing a password

    One leaked password then opens every account that shares it. Use a different one for each site.

  • Making one up yourself

    People pick patterns, names and dates. A generator has no habits, so its output is far harder to predict.

  • Going too short

    Eight characters is a floor for sign-in that also uses a second factor, not a target. Aim for 16 or more.

  • Swapping letters for symbols

    Turning a word into p@ssw0rd barely helps. Common swaps like these are well known and easy to guess.

  • Keeping passwords where others can read them

    A sticky note, a shared file or an email draft is easy to find. Use a password manager.

  • Skipping multi-factor sign-in

    A strong password still helps if it leaks. A second factor stops the leaked one working alone.

Keep them safe

How do I keep generated passwords safe?

Save each one in a password manager and use a different password for every account. NIST requires services to allow password managers and autofill, so you should be able to paste a long password into any sign-in form. Turn on multi-factor sign-in where it is offered.

This page does not remember anything you generate. When you close the tab the results are gone, so copy one before you leave.

Before you use one

Check the site's own rules for length and allowed symbols. If a site rejects a symbol, untick Symbols or change the symbols list and generate again.

Accuracy

How accurate is this generator?

Before publishing, the random picks were tested for even distribution, every rule was checked on thousands of random settings, and the entropy figures were compared with exhaustive counts on small cases.

The generator makes random strings. It cannot tell you whether a site stores passwords safely or whether a password has leaked elsewhere, and it does not check passwords against breach lists.

Sources
FAQ

Random password generator FAQ

Short answers to what people ask most about generated passwords and PINs.

Is this random password generator safe to use?

The password is created in your browser using crypto.getRandomValues, the secure random source browsers provide. MDN describes it as filling an array with cryptographically strong random values. No password is sent to a server, saved or logged, and nothing needs an account.

Does the tool store or send my passwords?

No. Generation happens on your device, and there is no sign-up. The page does not save results in cookies or local storage, so closing the tab clears them. Copy what you need before you leave.

How long should a password be?

Longer is better. NIST SP 800-63B-4 sets a minimum of 15 characters for a password used on its own and 8 for one used only as part of multi-factor sign-in. This tool starts at 16 and goes up to 128. Use the maximum a site accepts for accounts you will not type by hand.

What does the entropy number mean?

Entropy is the base-2 logarithm of the number of different results the generator could have produced, given your settings. Each extra bit doubles that number. It measures the size of the search space for a truly random result. It does not measure a password you made up yourself.

Do I need symbols in my password?

Not for strength if the password is long enough: length adds more entropy than a larger character set. NIST tells services not to impose composition rules, but many sites still ask for symbols, numbers or mixed case. Tick the types a site requires and the generator will include them.

Why leave out look-alike characters?

I, l, 1, |, O, 0 and o are easy to mix up when you read a password aloud or copy it by eye. Leaving them out removes up to seven characters from the pool, which lowers entropy slightly, so add a few characters of length to make up for it.

What does Require at least one of each type do?

It keeps only passwords that contain every type you ticked, for sites that insist on a mix. The tool throws away results that miss a type and tries again, so the rest stay equally likely. The entropy shown accounts for this exactly.

Is a PIN secure?

Only in the right place. A six-digit PIN has about 20 bits of entropy, so anyone who can try every PIN could find it quickly. It is fine where the service locks you out after a few wrong tries, such as a phone or a bank card, and wrong for anything that can be guessed online without limits.

Should I use a password manager?

A password manager lets you use a different long random password on every site without remembering them. NIST says services must allow password managers and autofill, and OWASP recommends allowing paste into password fields. Whatever you use, keep a unique password for each account and turn on multi-factor sign-in where it is offered.

Can I use a generated password for Wi-Fi or a master password?

Yes. A long random password works well for a Wi-Fi key or a master password, and a password manager can remember it for you. Share a Wi-Fi key only with people who need it, and change it if you think someone else has it.