How to generate a strong password
- Drag the slider to choose a length between 6 and 64 characters. A new password appears straight away.
- Tick the character types you want: uppercase, lowercase, numbers and symbols. The password always contains at least one character from each type you select, which satisfies most "must contain" rules on sign-up forms.
- If you might need to read or type the password by hand, tick Exclude look-alike characters to leave out I, l, 1, O and 0.
- Click Generate Password for another one, then use the copy button next to the password. Paste it straight into your password manager or the sign-up form.

How the password is generated
The generator uses crypto.getRandomValues, the cryptographically secure random number generator built into every modern browser. It is designed for security keys and cannot be predicted from earlier output, unlike the ordinary Math.random function.
Turning a random number into a character needs care. A common shortcut takes the random number modulo the number of characters, but because 232 is not an exact multiple of most pool sizes, some characters then come up slightly more often than others. This tool uses rejection sampling instead: random values that fall in the uneven leftover range are thrown away and redrawn, so every character in the pool has exactly the same chance. After one character from each selected type is placed, the remaining positions are filled from the whole pool and the result is shuffled with a Fisher-Yates shuffle that uses the same unbiased random numbers.
What the strength meter means
The meter shows entropy, measured in bits. It is calculated as length × log2(pool size), where the pool is the number of different characters that can appear. With all four types selected the pool has 77 characters, so each character adds about 6.3 bits and a 16-character password has about 100 bits. Every extra bit doubles the number of guesses an attacker would need on average. Because the password is forced to contain one character of each selected type, the true figure is very slightly lower than the number shown, which is why it is labelled "about".
| Entropy | Label |
|---|---|
| Under 40 bits | Weak |
| 40 to 59 bits | Fair |
| 60 to 79 bits | Good |
| 80 to 99 bits | Strong |
| 100 bits or more | Very strong |
This estimate applies only to passwords made randomly by a generator like this one. A password you invent yourself, such as a word with a few substitutions, has far less real entropy than its length suggests, because attackers try common patterns first. The labels are a guide, not a guarantee: how long a password resists attack also depends on how the website stores it.
Practical tips
- Length matters most. Adding characters raises entropy faster than adding character types. Aim for at least 16 characters for important accounts.
- Use one password per account. When a website is breached, reused passwords are tried on other services within hours.
- Store passwords in a password manager. It remembers long random passwords so you do not have to, and fills them only on the correct website.
- Turn on two-factor authentication for email, banking and social media, so a leaked password alone is not enough.
- Check the site's rules. A few websites reject certain symbols or limit length. If a password is refused, untick Symbols or reduce the length and generate a new one.
Privacy
The password exists only in this browser tab. It is not sent to Preslo, not stored, and not logged. When you copy it, it goes to your device's clipboard, so clear the clipboard afterwards if you share the computer. Closing or refreshing the page discards it.
Frequently asked questions
Is the password sent to a server?
No. The password is generated by JavaScript running in your browser and is never sent anywhere, so only you can see it.
Is the password truly random?
It uses crypto.getRandomValues, your browser's cryptographically secure random number generator, and rejection sampling so that every allowed character is equally likely.
How is the strength calculated?
Strength is estimated as entropy: the length multiplied by log2 of the number of possible characters. For example, 16 characters from a pool of 77 give about 100 bits. The label is based on that number.
How long should my password be?
For important accounts such as email and banking, use at least 16 random characters. If a site allows it, longer is better, especially when you store the password in a password manager.
What does excluding look-alike characters do?
It removes I, l, 1, O and 0, which are easy to confuse in some fonts. This makes the password easier to read and type by hand but slightly reduces the pool size, so the entropy figure drops a little.
Should I use the same password on different sites?
No. Use a different password for every account so that one leaked password cannot unlock your other accounts. A password manager makes this practical.
Is the password generator free?
Yes. There is no signup and no limit on how many passwords you generate. The site is supported by ads.