Count Binary Zeros
Count zero bits in decimal, binary, or hexadecimal input
Last updated: October 14, 2026
- Decimal and hex inputs can use uppercase or lowercase letters.
- Binary values must only contain 0 or 1.
- Negative numbers are not supported for zero counting.
- Great for debugging bit masks or evaluating compression.
- Use Clear to reset before testing another value.
- Copy results to share with teammates or documentation.
Result actions
Copy or download the tool output, or share a link to Count Binary Zeros.
Get new tools in your inbox
An occasional email when we ship new free tools. No spam, unsubscribe anytime.
Related tools
Count Binary Ones
Count the number of 1 bits in binary representation
Invert Binary Bits
Flip all bits in a binary number (0→1, 1→0)
Shuffle Binary Bits
Randomly reorder the bits in a non-negative number
Convert Binary to Negabinary
Convert numbers to negabinary (base -2) representation
Calculate Average Time
Average a list of durations in HH:MM:SS or MM:SS
Convert CSV to JSON
Transform CSV data into JSON format with customizable options
Count zero bits
Choose Decimal, Binary, or Hexadecimal, enter a value, and select Count zeros. Decimal and hexadecimal input are converted to a binary representation; binary input is counted exactly as entered. The result shows the binary string, the number of zero bits, the number of one bits, the total length, and the zero-bit percentage.
Input rules
Decimal input accepts a whole signed integer string but negative values are rejected; the numeric range is limited to JavaScript safe integers. Hexadecimal input accepts hexadecimal digits with an optional 0x prefix and uses the same safe-integer limit. Binary input must contain only 0 and 1; leading zeros are retained and counted. Decimal and hexadecimal strings with trailing characters are rejected instead of being partially parsed.
Privacy
Counting runs in your browser; the input is not sent to our servers.