# Ones counter

## World's simplest binary tool

Free online binary ones counter. Just load your binary values and the number of their set bits will be automatically calculated. There are no ads, popups, or nonsense, just an awesome high bit counter. Load binary values – get the number of ones. Created for developers by developers from team Browserling.

announcement
we've created devurls!

We just created another project – DEVURLS – world's simplest developer news aggragator. Check it out!

A link to this tool, including input, options and all chained tools.

Can't convert.

Ones counter tool
What is a ones counter?

This utility calculates the number of ones in binary values. It can count the high bits in binary numbers of any length. It can also process multiple binaries at once if they are entered one per line. With the multiline option active, it displays the number of 1's for each value individually. If option multiline is turned off, it displays the total number of ones in all binary values. The binary representation can also be prefixed or suffixed with the binary base indicator. For example, "0B101", "101b", or "101₂". The presence of a base indicator does not affect the number of high bits. Simple and easy!

Ones counter examples
Click to use

Ones in Binary Number

In this example, we calculate the number of 1's in the decimal number 54483 that's written in the binary representation. The input number contains sixteen bits and nine of them are ones.

1101010011010011

9

**Required options**

Count the number of ones
in each line separately.

Prefixed Binaries

In this example, we count the number of set bits in seven binary numbers that have binary base prefixes or suffixes. We use the "Multiline" option so that the calculation is carried out individually for each line.

0b1111111
B000000000
b010101000001
0B0111100101101
110111101001101b
10010011110010110B
0110110110110110110₂

7
0
4
8
10
9
12

**Required options**

Count the number of ones
in each line separately.

1024-bit RSA Key

This example processes a large 1024-bit binary private key and calculates the number of ones in it. It turns out that in this number there are 508 symbols that are '1' and the rest 516 (1024-508) symbols are '0'.

1010100001101001001000111000101000100000100011011000110001001100101011000101001101101011011010011011101111111010011101001100000010110000011110111001100100011110011111110001100000011000001100011111010000111111101110110000000101000111011011000011010000000110110011100011011100000000001010011001111000001011000101001001111000100110110111011001000100101010110011101010001101000000111000100000110001101110001000101100010101111100011101110000100000100110101011011000011011100001001011100001011101101010110010101111111010101011111011011111101010101001101111001100110010111100100101001000111100111011110011011110101111011111110001110100110010010111000101100101100001001000111000001101011000010001011011010110101010101010001100011110000001110011010110100000101100111101010011110111000111111010011001011010000101000110101000011000111000011111100100011110000011010110111101000010100101010000010000111110110101101111010101000110111001010000110100110111111111110001110101110011110010010001010010001001100110110001001101001110000010011101

508

**Required options**

Count the number of ones
in each line separately.

Pro tips
Master online binary tools

You can pass input to this tool via

__?input__query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinebinarytools.com/count-one-bits

__?input__=1101010011010011&multiline=false
All binary tools

Quickly convert ASCII characters to binary numbers.

Quickly convert binary numbers to ASCII characters.

Quickly convert UTF8 characters to binary bits.

Quickly convert binary bits to UTF8 characters.

Quickly generate random binary values.

Quickly create an image from a binary number.

Quickly convert binary numbers to octal numbers.

Quickly convert octal numbers to binary numbers.

Quickly convert binary numbers to decimal numbers.

Quickly convert decimal numbers to binary numbers.

Quickly convert binary numbers to hexadecimal numbers.

Quickly convert hexadecimal numbers to binary numbers.

Quickly convert octal values to BCD values.

Quickly convert BCD values to octal values.

Quickly convert decimal values to BCD values.

Quickly convert BCD values to decimal values.

Quickly convert hex values to BCD values.

Quickly convert BCD values to hex values.

Quickly convert an IP address to a binary IP address.

Quickly convert a binary IP address to a human readable IP.

Quickly convert an IPv6 address to a binary IPv6 address.

Quickly convert a binary IPv6 address to a human readable IPv6.

Quickly convert a string to binary values.

Quickly convert binary values to a string.

Quickly convert binary numbers to reflected binary numbers.

Quickly convert reflected binary numbers to binary numbers.

Quickly convert octal numbers to reflected binary numbers.

Quickly convert reflected binary numbers to octal numbers.

Quickly convert decimal numbers to reflected binary numbers.

Quickly convert reflected binary numbers to decimal numbers.

Quickly convert hexadecimal numbers to Gray code.

Quickly convert Gray code to hexadecimal numbers.

Quickly calculate the sum of a bunch of binary values.

Quickly calculate the difference of a bunch of binary values.

Quickly calculate the product of a bunch of binary values.

Quickly convert a negative number to a binary representation.

Quickly convert a negative binary number to a decimal number.

Quickly convert base 2 numbers to base -2.

Quickly calculate bitwise AND of a bunch of binary values.

Quickly calculate bitwise NAND of a bunch of binary values.

Quickly calculate bitwise OR of a bunch of binary values.

Quickly calculate bitwise NOR of a bunch of binary values.

Quickly calculate bitwise XOR of a bunch of binary values.

Quickly calculate bitwise XNOR of a bunch of binary values.

Quickly calculate bitwise NOT of a bunch of binary values.

Quickly find the number of high bits in binary values.

Quickly find the number of low bits in binary values.

Quickly invert bits of binary numbers.

Quickly reverse the order of bits in binary numbers.

Quickly convert plain text to binary values.

Quickly convert binary numbers to plain text.

Quickly randomize the order of bits in binary numbers.

Quickly rotate bits in binary numbers to the left or right.

Quickly shift bits of a binary number to the left.

Quickly shift bits of a binary number to the right.

Coming soon
These binary tools are on the way

Create a File from Binary Values

Convert binary numbers to a binary file.

Binary Dump a File

Create a binary dump of files in your browser.

Convert Binary to Arbitrary Base

Convert binary values to any base (up to base 64).

Convert Binary to Roman Number

Convert binary numbers to Roman numerals.

Convert Roman Number to Binary

Convert Roman numerals to binary values.

Generate a Binary Sequence

Create a list of increasing of decreasing binary numbers.

Binary Sheffer Stroke

Calculate bitwise sheffer stroke operator of binary values.

Convert Binary to BCD

Encode every binary bit as a binary coded decimal.

Convert BCD to Binary

Decode binary coded decimals to binary bits.

Divide Binary Numbers

Perform division operation on several binary numbers.

Rotate a Binary Right

Rotate bits of a binary number to the right.

Rotate a Binary Left

Rotate bits of a binary number to the left.

Extract Bits from Binary Numbers

Extract n-th bit from a binary number.

Calculate Parity

Count parity of a binary number.

Convert EBCDIC to Binary

Convert EBCDIC characters to binary values.

Convert Binary to EBCDIC

Convert binary bits to EBCDIC symbols.

Swap Binary Endianness

Change endianness of a binary number.

Convert Little Endian Binary to Big Endian Binary

Convert a binary number from little endian to big endian.

Convert Big Endian Binary to Little Endian Binary

Convert a binary number from big endian to little endian.

Convert a Floating Point Number to Binary

Find the binary representation of a floating point number.

Convert Binary Values to a Bitmap

Convert a binary string to a bitmap image.

Convert a Bitmap to Binary Numbers

Convert a bitmap image to zeros and ones.

Pad Binary Values

Add signed or unsigned padding to binary numbers.

Truncate Binary Values

Drop leading or trailing bits and make a binary value shorter.

Subscribe!
Never miss an update

Cool!

Notifications
We'll let you know when we add this tool

Cool!