Browse MG Calculator
Home Blogs Labs About Us Contact Us

Password Generator: Secure Browser Randomness

Generate a random password with your chosen length and character groups. Copy it directly into your password manager.

—
No ratings yet

Your inputs

Choose the units and assumptions that match your data. Example inputs are illustrative.

Your result

Enter your values, then choose Calculate.

Keep passwords private. Printing and automatic result downloads are disabled on this page.

Method, assumptions and worked example

How it works

Characters are drawn using Web Crypto and rejection sampling. The generator retries whole candidates until each selected group appears; it does not use Math.random or a random-sort shuffle. Length ranges from 8 to 128, and at least one group is required.

Worked example

Choose 20 characters and all four groups to generate a fresh password containing uppercase, lowercase, digits and symbols. Every example click makes a new value; this page deliberately does not publish a reusable example password.

Using the result

Use a unique password for every account and keep it in a password manager. A length limit on this tool is not a security endorsement for every permitted choice. Generated values are not deliberately stored, sent to a calculator endpoint or put into URLs; the surrounding site still uses its normal consent-controlled services. Avoid using any web generator on an untrusted device.

Frequently asked questions

Does the calculator save my password?

The calculator code keeps it only in the current page. Reset clears the result; copying places it on your device clipboard.

Will it work without secure randomness?

No. It shows an error instead of falling back to Math.random.

Method review and references

Formula and content reviewed on 10 October 2026. Worked examples are hypothetical. Methods and assumptions are explained on each page. Health estimates are not clinical measurements; symbolic tools are for entertainment.