Password entropy estimator

Calculate password entropy estimator using the values and assumptions you provide.

Calculate password entropy estimator using the values and assumptions you provide.

Both dots and commas are accepted as decimal separators.

Your inputs stay in your browser. Displayed results are rounded to a maximum of 12 significant digits.

Method and assumptions

Method version 1.0.0 · Updated

Calculate

Formula: Entropy = length × log₂(character-set size)

Calculate password entropy estimator using the values and assumptions you provide.

length
Length (m)
alphabetSize
Size of the character alphabet

Results depend on the assumptions entered; verify professional or safety-critical decisions independently.

Calculate with code

These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.

JavaScript
const poolSize = 26, length = 12;
console.log(length * Math.log2(poolSize)); // bits, assuming uniform independent characters
TypeScript
const poolSize = 26, length = 12;
const bits: number = length * Math.log2(poolSize);
console.log(bits); // entropy estimate
Python
import math
print(12 * math.log2(26))  # bits under uniform independent-character assumption
Java
System.out.println(12 * (Math.log(26) / Math.log(2))); // bits
C#
Console.WriteLine(12 * Math.Log2(26)); // bits