Connect via MCP →

Enter Calculation

Formula

Formula: Random Password Generator
Show calculation steps (1)
  1. Even-set distribution

    Even-set distribution: Random Password Generator

    In Each Chosen Set mode, each of the k enabled sets is used either floor(L/k) or ceil(L/k) times across an L-character password.

Advertisement

Results

Password
JorhjIMPLaDJ
12 characters · not stored anywhere
Length 12 characters
Pool size (distinct characters) 62
Search space (pool^length) 3,226,266,762,397,900,000,000

What this Password Generator does

This tool builds a random password of up to 50 characters from the character sets you choose: lowercase letters, uppercase letters, digits, punctuation, and brackets and symbols. The password is generated in your session and is never saved or transmitted, so each result exists only on the page you see.

Diagram showing character set categories combining into a password
A strong password draws from several character sets: lowercase, uppercase, digits and symbols.

How to use it

Tick the character sets you want to include, choose how characters should be selected, set the password length, and generate. You can mix any combination of the five sets. The more sets you include, the larger the search space and the harder the password is to guess.

Select Evenly From offers two strategies. All Chosen Characters merges every enabled set into one pool and draws each character uniformly at random from that pool. Each Chosen Set rotates through the enabled sets in order, guaranteeing each set is represented as evenly as possible before a final shuffle randomizes the positions.

The formula explained

Security is commonly described by the search space, the total number of possible passwords an attacker must try in the worst case. For a pool of P distinct characters and a length of L, the search space is $$\text{Search Space} = P^{L}$$ Adding one more character (raising \(L\)) multiplies the space by \(P\), while adding more character types raises \(P\), so length and variety both compound your protection.

Exponential growth curve of password search space versus length
Search space grows exponentially as password length increases.

Worked example

Suppose you enable lowercase (26), uppercase (26) and digits (10), choose Each Chosen Set, and ask for 8 characters. There are \(k=3\) sets, so the rotation 0,1,2,0,1,2,0,1 produces 3 lowercase, 3 uppercase and 2 digit characters. After a Fisher-Yates shuffle you might get something like kT4mQ7pR. The pool size is \(P = 26+26+10 = 62\), so the search space is $$62^{8} \approx 2.18 \times 10^{14}$$

FAQ

Are my passwords stored? No. Each password is generated for display only and is not saved or logged.

How long should my password be? Aim for at least 12-16 characters with multiple character types. Longer is always stronger because each added character multiplies the search space.

What does "Each Chosen Set" guarantee? It distributes characters as evenly as possible across the sets you picked, which helps satisfy site rules that require a mix of letters, numbers and symbols.

Last updated: