
Password entropy estimator
Calculate password entropy estimator using the values and assumptions you provide.
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 charactersTypeScript
const poolSize = 26, length = 12;
const bits: number = length * Math.log2(poolSize);
console.log(bits); // entropy estimatePython
import math
print(12 * math.log2(26)) # bits under uniform independent-character assumptionJava
System.out.println(12 * (Math.log(26) / Math.log(2))); // bitsC#
Console.WriteLine(12 * Math.Log2(26)); // bits