Password Generator

Create strong passwords using your browser's cryptographic random generator. Nothing is stored or transmitted.

     

How the randomness is produced

The generator uses the browser's cryptographic random source, crypto.getRandomValues, not Math.random. The difference matters: Math.random is a fast statistical generator whose sequence can be predicted from enough output, while the crypto source is designed for exactly this purpose.

Characters are selected with rejection sampling rather than a plain modulo. Taking a random number modulo the pool size makes the first few characters slightly more likely, and measurable bias in a password reduces its real entropy below the theoretical figure.

Entropy, in plain numbers

Strength is measured in bits: length multiplied by log2 of the pool size. A 12-character password drawn from 94 printable characters has about 79 bits; 16 characters gives about 105 bits; 20 characters gives about 131 bits.

Every additional bit doubles the work an attacker must do. That is why length beats complexity: going from 8 to 16 characters adds far more strength than adding three symbol classes to an 8-character password.

How long should a password be

12 characters is the practical minimum in 2026. 16 or more for email, banking and anything holding money. For a password you must type by hand on a phone, a five-word passphrase of 25-30 characters is both stronger and easier to remember than 12 random characters.

The best answer is not to memorise many passwords at all: one strong master password plus a password manager, which generates and fills a unique 20-character password for every site. It also refuses to autofill on lookalike domains, which is the single most effective defence against phishing.

Entropy by length and character pool
LengthPoolEntropyOffline cracking at 1e12 guesses/sec
8a-z (26)38 bitsunder a second
12a-z A-Z 0-9 (62)71 bitsabout a century
16all printable (94)105 bitslonger than the age of the universe
20all printable (94)131 bitseffectively permanent

Frequently asked questions

Is it safe to generate a password on a website?

It is safe here because the generation runs entirely in your browser and nothing is transmitted or stored - you can unplug the network after the page loads and it still works. For maximum caution, use your password manager's built-in generator instead and skip the website altogether.

How long should a password be?

At least 12 characters, 16 or more for anything important. Length is the strongest single factor. A 16-character random password is orders of magnitude harder to crack than a 'complex' 8-character one with symbols.

Are these passwords truly random?

They are generated by the operating system's cryptographic random number generator, which is the same source used for encryption keys. That is different from, and much stronger than, the pseudo-random numbers used for animations and games.

Should I change my passwords regularly?

Modern guidance has reversed: forced periodic rotation is no longer recommended, because it pushes people toward predictable patterns. Change a password when there is a reason - a breach, a shared device, or a suspicious login - and use unique passwords everywhere.

What is a passphrase and is it better?

A passphrase strings together several unrelated words, such as copper-lantern-fridge-walnut. It is long, easy to type and easy to remember, and it defeats dictionary attacks because the combination will not appear in any wordlist. For anything you must memorise, it usually beats a random string.

Everything runs inside your browser. Nothing you type is uploaded, there is no signup, and the page keeps working if you go offline.
Sponsored — ad slot reserved

More free tools

Related guides

Related searches

password generatorrandom passwordstrong password