Are Online Password Generators Safe?
It's a fair question: if a website makes your password, couldn't it keep a copy? A well-built generator can't, because the password never leaves your device. Here's how to check.
Try the private generator →Three checks for any generator
- Look for in-browser generation. The page should say it uses your browser's crypto (Web Crypto,
crypto.getRandomValues). - Try it offline. Load the page, turn on airplane mode, and generate again. If it still works, nothing is being sent to a server.
- Prefer no accounts or tracking. A generator has no reason to ask you to sign in or to send what you generate anywhere.
How a safe generator works
Your browser has a cryptographically secure random number generator, the same one used to encrypt your web traffic. A safe generator asks it for random numbers and maps them to characters or words, entirely inside the page. The password exists only in your browser tab until you copy it. The KOSEC generator works this way, and passes the airplane-mode test.
What makes a generator unsafe
- Generating passwords on a server and sending them to you.
- Using
Math.random(), which is not designed for security and can be predictable. - Third-party scripts that could read the page (keep ad and analytics scripts away from where passwords are shown, or use a generator without them for your most critical passwords).
The best option: your password manager
If you use a password manager, its built-in generator is ideal because it saves the password at the same moment. Online generators are handy for one-off needs: a Wi-Fi password, a device without a manager, or a passphrase you'll memorize.
FAQ
Can the website see my generated password?
Not if it generates in your browser. Verify with the offline test.
Is Math.random good enough for passwords?
No. Secure generators use crypto.getRandomValues.
Should I generate my master password online?
It's safe with an in-browser generator, but you can also roll dice with a wordlist if you want zero doubt.