Password

Password Generator

Details

How to use Password Generator

What the tool does, how to run it, and what to expect from the result.

How to generate a secure random password

A strong password is a random one, drawn from a large character set and long enough that guessing it is infeasible. What makes it strong is not that it looks complicated but that it was generated by a process an attacker cannot predict or reproduce.

This generator uses your browser's cryptographically secure random number generator, and the password is created on your device and never transmitted. Store it in a password manager, because a unique password per site is what limits the damage when any one site is breached.

  • Set the length to at least 16 characters, and use 20 or more for anything important, since length matters more than any other setting.
  • Enable the character types the site requires, keeping all four on unless a form rejects one.
  • Generate the password and copy it directly into your password manager rather than into a note or a message.
  • Use a different password for every site, which is the whole point of generating them rather than remembering them.
  • Turn on two-factor authentication wherever it is offered, because it protects you even when a site leaks its password database.

How long should a password be in 2026?

Sixteen characters is the sensible default, and twenty or more costs nothing when a password manager does the typing. With all four character sets enabled, 16 characters carry roughly 103 bits of entropy, far beyond any feasible brute-force attack on a properly hashed password, and length keeps beating complexity: four extra characters are worth more than any symbol requirement.

Current NIST guidance points the same way. It recommends length and breach-list checking, and it recommends against forced complexity rules and scheduled rotation, both of which push people toward predictable patterns. A long, random, unique password per site, stored in a manager, is the whole recipe.

Generated on your device, never transmitted

The password is created by crypto.getRandomValues, your browser's cryptographically secure generator, with rejection sampling so no character is even marginally favoured. It exists only in the page's memory: nothing is sent over the network, nothing is logged, and closing the tab destroys it. A generator that produces passwords on a server asks you to trust that no copy is kept, which is not a trade you need to make.

One practical guarantee is built in: the result always contains at least one character from every set you enable, then the whole string is shuffled. That way a sign-up form that insists on a digit or a symbol accepts the password on the first try instead of bouncing a perfectly strong one.

Tips

Getting a better result out of Password Generator

Specific settings and thresholds, not general advice.

  • The randomness comes from crypto.getRandomValues, the browser's cryptographically secure generator, which is seeded by your operating system. This is the property that matters: a generator built on Math.random is predictable from a handful of outputs, and passwords made that way can be reconstructed by an attacker who sees any of them.
  • Length beats complexity, and it is not close. A 20-character lowercase-only password carries about 94 bits of entropy; a 10-character password using every character class carries about 64. Adding a symbol to satisfy a form is worth far less than adding four more characters.
  • With all four character types enabled, the pool is 86 characters, which is 6.4 bits per character. That makes 12 characters about 77 bits, 16 characters about 103 bits, and 20 characters about 129 bits. Anything above 80 bits is beyond brute force against a properly hashed password.
  • NIST dropped the old rules in SP 800-63B. It now recommends against forced complexity requirements and against periodic rotation, because both push people toward predictable patterns, the classic one being a season and a year with a symbol on the end, incremented each time. What it does recommend is length, and checking passwords against known breach lists.
  • The real answer is a password manager. A generated password is only as good as the fact that you never reuse it, and no human remembers 40 unique 16-character strings. Generate it here or generate it in the manager, but store it in the manager either way.
Limits

What Password Generator does not do

The honest boundary, so you do not lose time finding it yourself.

  • It does not exclude ambiguous characters, so a password can contain both a capital O and a zero, or a lowercase l and the digit 1, which is painful to transcribe by hand.
  • It has no passphrase mode, so it cannot produce a memorable multi-word string of the sort that is easier to type on a phone.
  • The length slider tops out at 64 characters, and the symbol set is fixed, so a site that rejects a particular symbol has to be worked around by disabling symbols entirely.
  • It does not check the result against known breach corpora, which for a randomly generated password is unnecessary but is worth knowing it does not do.
At a glance

Who Password Generator is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Developers, designers, and anyone who needs quick, private generated values.

Ideal for

Generating values on demand without a backend, install, or sign-up.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

How do I generate a strong password?

Open the page and one is already waiting, since a password is generated on load. Set the length to 16 or more, leave all four character types on unless a site rejects one, press Generate for a fresh result, and use Copy to move it straight into your password manager.

Is this password generator free?

Yes, completely. No signup, no premium tier, and no limit on how many passwords you generate. It is a small piece of JavaScript running in your own browser tab.

Where should I keep the password after generating it?

In a password manager, immediately. A generated password only helps if it stays unique per site, and no one memorises dozens of random 16-character strings. Paste it into the manager entry for the site, not into a note, a chat, or an email to yourself.

Why do I get an error saying to select a character type?

Because every character set is unchecked. The generator draws from the pools you enable, so at least one of lowercase, uppercase, numbers, or symbols has to be on. Turn any of them back on and Generate works again.

Can it generate a memorable passphrase instead?

No, this page produces random character strings only. A multi-word passphrase of the correct-horse-battery-staple style is easier to type on a phone and can be just as strong at sufficient length, but you would need a dedicated passphrase generator for that.

Is this actually secure, or is it Math.random with extra steps?

It uses crypto.getRandomValues, which is the browser's cryptographically secure pseudo-random number generator, seeded from the operating system's entropy pool. That distinction is the whole ballgame. Math.random in V8 is a fast, non-cryptographic algorithm whose internal state can be recovered from a small number of observed outputs, which means passwords generated from it are reconstructable. This generator additionally uses rejection sampling rather than a naive modulo, which removes the small bias that would otherwise make some characters marginally more likely than others.

Does the password ever leave my browser?

No, and this is the reason a browser-based generator can be trusted at all. The password is generated by your own device, exists only in the page's memory, and is never sent over the network, never logged, and never stored. Nothing about it is transmitted to any server, and closing the tab destroys it. A password generator that generates on a server is asking you to trust that the server does not keep a copy, which is not a reasonable thing to ask.

How long should my password be?

Sixteen characters is a good default and gives you roughly 103 bits of entropy with all character types enabled, which is far beyond any feasible brute-force attack against a properly hashed password. Twenty is better and costs you nothing when a password manager is doing the typing. The threshold worth remembering is that below about 12 characters you are relying on the site having hashed your password well, and many sites have not.

Do I need symbols and numbers, or is length enough?

Length is the more powerful lever by a wide margin. Every character you add multiplies the search space by the size of the pool, whereas adding a character class only increases the pool. A 20-character password drawn from lowercase letters alone has more entropy than a 12-character password using all four classes. The practical reason to enable all four is that many sites still enforce composition rules and will reject a password without them, and this generator guarantees at least one character from each class you select so that those forms accept it first time.

Should I change my passwords every 90 days?

No, and NIST now explicitly recommends against it. Forced rotation produces predictable passwords, because people respond to it by incrementing a number or changing a season, which is a pattern an attacker exploits rather than one that defeats them. The current guidance is to use a long, unique, randomly generated password per site, store it in a manager, and change it when there is a reason to: a breach, a suspicion, or a shared credential leaving the team.

Why does the password always contain at least one of each type I selected?

Because sites demand it. The generator picks one character from each selected pool, fills the remaining length from the combined pool, and then shuffles the result so the guaranteed characters are not always at the front. This costs a negligible amount of entropy compared with pure random selection, and it means the password will not be bounced by a form that insists on at least one digit, which is a far more common frustration than the theoretical loss is a risk.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon