What is an IPv4 to binary converter?
An IPv4 to binary converter translates an IP address from familiar dotted-decimal notation into its underlying 32-bit binary representation. It can also perform the reverse conversion, translating a 32-bit binary IPv4 address back into decimal format.
For example, the IPv4 address 192.168.1.10 becomes 11000000.10101000.00000001.00001010 in binary. The two formats represent exactly the same 32-bit address.
How is an IPv4 address represented?
IPv4 addresses contain 32 bits divided into four groups of eight bits. Each 8-bit group is called an octet. In normal decimal notation, the four octets are separated by periods.
Because an octet contains eight binary bits, its decimal value can range from 0 to 255. This is why a valid IPv4 address contains four decimal numbers, each between 0 and 255.
What is binary?
Binary is a number system that uses only two digits: 0 and 1. Computers use binary because digital systems naturally represent information using two states.
Each position in an 8-bit IPv4 octet has a value of 128, 64, 32, 16, 8, 4, 2 or 1. Adding the values represented by 1 bits produces the decimal value of the octet.
| Bit Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Example: 192 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
In this example, 128 + 64 = 192, so decimal 192 is binary 11000000.
How does IPv4 to binary conversion work?
The converter processes each IPv4 octet separately. Every decimal octet is converted into an 8-bit binary value. Leading zeros are added when necessary so that each octet always contains exactly eight bits.
The four binary octets are then joined together to form the full 32-bit IPv4 address. When converting in the opposite direction, each group of eight binary digits is interpreted as a decimal value from 0 through 255.
How to use the IPv4 binary converter
- Choose IPv4 → Binary to convert a normal IP address into binary.
- Enter an IPv4 address such as 192.168.1.10.
- Click Convert to see the 32-bit binary result and each individual octet.
- To reverse the conversion, choose Binary → IPv4.
- Enter four 8-bit binary octets or a continuous 32-bit binary number.
IPv4 to binary example
Consider the address 192.168.1.10. Each decimal octet is converted independently into eight binary bits.
| Decimal | Binary |
|---|---|
| 192 | 11000000 |
| 168 | 10101000 |
| 1 | 00000001 |
| 10 | 00001010 |
Why is binary important in subnetting?
Subnet masks and CIDR prefixes operate on the binary bits of an IPv4 address. Understanding binary makes it easier to see exactly where the network portion of an address ends and where the host portion begins.
For example, a /24 prefix means that the first 24 binary bits belong to the network. A /26 means that the first 26 bits belong to the network, leaving six bits for host addresses.
Frequently asked questions
What is 192.168.1.1 in binary?
192.168.1.1 is 11000000.10101000.00000001.00000001 in 32-bit binary notation.
How many bits are in an IPv4 address?
An IPv4 address contains 32 bits divided into four 8-bit octets.
Why does each IPv4 binary octet have 8 bits?
Each decimal octet represents one byte, and one byte contains eight bits. Eight bits can represent decimal values from 0 through 255.
Can I enter a continuous 32-bit binary address?
Yes. The converter accepts either four 8-bit binary octets separated by periods or one continuous string containing exactly 32 binary digits.
What is 255 in binary?
Decimal 255 is 11111111 in 8-bit binary because all eight bit positions are set to 1.
Is binary conversion useful for subnetting?
Yes. IPv4 subnetting is fundamentally based on binary network and host bits, so binary notation can make CIDR prefixes, subnet masks and subnet boundaries easier to understand.