How to generate a password
- Choose a length between 8 and 128 characters. I recommend at least 16.
- Press Run tool.
- Copy the password straight into your password manager, then into the site that needs it.
Run it again for a new password. Each result is independent of the last one.
How the passwords are made
The generator uses crypto.getRandomValues, the cryptographic random number generator built into your browser. This is the same source browsers use for security work, not the predictable Math.random function that some simple generators rely on.
Each character is picked from 74 options: uppercase letters, lowercase letters, digits and the symbols ! @ # $ % ^ & * _ - + =. The code also avoids a subtle problem called modulo bias, which would otherwise make some characters slightly more likely than others.
The password is created on your device. It is never sent to a server, logged or stored. Close or refresh the page and it is gone, so copy it before you leave.
How long should a password be?
Every character from a set of 74 adds about 6.2 bits of randomness. In practice:
- 12 characters gives about 74 bits. That is acceptable for low-value accounts with login limits.
- 16 characters gives about 99 bits. This is my default for WordPress admin, hosting control panels and email.
- 20 characters or more gives over 120 bits. Use this for database passwords, SFTP accounts and anything that could be attacked offline.
Length beats complexity. A long random password is far harder to crack than a short one stuffed with symbols.
Where WordPress site owners need strong passwords
Your WordPress admin login is the obvious one, but it is rarely the only door into a site. Use a unique, generated password for each of these:
- WordPress administrator and editor accounts. Change it under Users > Profile > Set New Password.
- Your hosting account and cPanel or control panel.
- The MySQL database user stored in
wp-config.php. - SFTP and SSH accounts.
- Your domain registrar. If someone takes your domain, they take your site.
- The email address used to reset all of the above.
A strong password is one layer. Add two-factor authentication and a login limit as well. The WordPress security plugins guide on WPSekar.com compares plugins that handle both.
Practical tips
- Use a password manager. Nobody can remember twenty random 16-character passwords, and you should not try.
- Never reuse a password across sites. Reuse is how one data breach turns into five hacked accounts.
- If a site rejects some symbols, generate a new password or remove the rejected symbol and add a couple of extra characters to make up for it.
- Do not send passwords by email or chat. Use your password manager's sharing feature.
Frequently asked questions
Is it safe to generate a password on a website?
It is safe when the password is created locally, as it is here. You can check this by opening your browser's network tab: running the tool makes no request.
Why are there no ambiguous character options?
To keep the tool simple. If you need to read a password aloud, a longer passphrase made of words is easier to say.