Count One Bits Online
Count the number of 1 bits (popcount / Hamming weight) in binary numbers.
Your data never leaves your browser
INPUT (BINARY)0 values
OUTPUT (COUNT)0 values
Drop in a binary number like 11010110 and get back 5 — the count of 1 bits, also known as popcount or Hamming weight. Paste one per line to crunch a whole list at once. And everything runs in your browser. Nothing gets uploaded.
How to Use
Enter binary numbers in the left panel, one per line.
Click Convert or use Live mode.
Copy or Download the count results.
Frequently Asked Questions
What is a popcount?
Popcount (population count) counts the number of 1 bits in a binary number. Also called Hamming weight.
What is it used for?
Popcount is used in cryptography, error detection, chess programming, and many algorithms that need to count set bits.
Can I count bits in multiple numbers?
Yes. Enter one binary number per line.
What characters are valid?
Only 0 and 1.
Is my data safe?
Yes. All processing happens in your browser.