IPv4 Binary Calculator
Convert an IPv4 address between dotted-decimal and 32-bit binary notation. View every IPv4 octet in decimal, hexadecimal and 8-bit binary form.
What Is an IPv4 Binary Address?
An IPv4 address is a 32-bit numerical address commonly written as four decimal numbers separated by dots. Each of those four numbers represents one 8-bit binary octet.
For example, the address 192.168.1.1 contains four octets: 192, 168, 1 and 1. Converting each octet separately produces the full 32-bit binary IPv4 representation.
IPv4 to Binary Formula
Each decimal IPv4 octet is converted independently to an 8-bit binary number.
168 = 10101000
1 = 00000001
1 = 00000001
Therefore:
=
11000000.10101000.00000001.00000001
IPv4 Octets
The 32-bit IPv4 address is divided into four equal 8-bit groups called octets.
| IPv4 Part | Bits | Decimal Range |
|---|---|---|
| Octet 1 | 8 | 0–255 |
| Octet 2 | 8 | 0–255 |
| Octet 3 | 8 | 0–255 |
| Octet 4 | 8 | 0–255 |
How to Convert an IPv4 Octet to Binary
An 8-bit octet uses binary positional values 128, 64, 32, 16, 8, 4, 2 and 1.
192 = 128 + 64
Binary: 11000000
Leading zeros are important because every IPv4 octet must contain exactly eight bits in a full binary representation.
Binary to IPv4 Conversion
The reverse process separates a 32-bit binary value into four 8-bit groups and converts each group to decimal.
10101000 = 168
00000001 = 1
00000001 = 1
The resulting dotted-decimal IPv4 address is 192.168.1.1.
IPv4 Binary Example
Consider the address 10.0.0.1.
0 = 00000000
0 = 00000000
1 = 00000001
So the complete binary address is:
IPv4 Hexadecimal Representation
Each eight-bit IPv4 octet can also be represented by two hexadecimal digits.
168 = A8
1 = 01
1 = 01
IPv4 hex: C0 A8 01 01
The hexadecimal view is useful when examining packet data, network captures and low-level protocol fields.
Why IPv4 Binary Conversion Is Useful
IPv4 binary representation is useful for understanding how network addresses are stored and processed at the bit level. It is commonly used when learning networking, examining packet headers, troubleshooting network configurations and studying subnet calculations.
This calculator intentionally stops at address conversion. Subnet-mask calculations belong to the separate Subnet Mask Binary Calculator.
IPv4 Address vs Subnet Mask
| Value | Purpose |
|---|---|
| IPv4 Address | Identifies an interface or network endpoint |
| Subnet Mask | Defines which address bits represent the network portion |
Both can be written as 32-bit binary values, but they perform different functions. This page converts the IPv4 address itself only.
32-Bit IPv4 Structure
All four octets together always contain exactly 32 bits.
The dots in dotted-decimal notation are separators for humans; they are not additional binary data.
Important IPv4 Binary Notes
An IPv4 address contains exactly four octets.
Each octet must be from 0 through 255.
Each octet is displayed using exactly eight binary bits.
The full IPv4 address contains 32 bits.
Binary input may be entered as four 8-bit groups separated by dots or as one continuous 32-bit binary string.
This calculator does not determine subnet masks, CIDR prefixes, network addresses, broadcast addresses or host ranges.
IPv6 addresses use a different 128-bit format and belong to the separate IPv6 Binary Converter.