IPv4 to Binary Converter
Convert an IPv4 address into its 32-bit binary representation. View each of the four 8-bit octets, inspect the bit values, and copy your results for networking, subnetting, or study.
Convert an IP Address
Enter four decimal numbers separated by dots. Each number must be between 0 and 255.
Conversion Results
IPv4 address:
Octet-by-octet breakdown
Bit positions and values
A bit with value 1 contributes its place value to the decimal number. A bit with value 0 contributes nothing.
| Octet | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
How IPv4 to Binary Conversion Works
IPv4 addresses contain 32 bits divided into four groups of eight bits,
called octets. The familiar address 192.168.1.1 is written
in decimal, but computers process the underlying bits.
- Split the address into four octets.
- Convert each octet into binary using place values 128, 64, 32, 16, 8, 4, 2, and 1.
- Keep each binary octet at exactly eight digits by adding leading zeros when necessary.
- Join the four octets with periods to display the full binary address.
Example: 192.168.1.1
| Decimal | Calculation | 8-bit binary |
|---|---|---|
| 192 | 128 + 64 | 11000000 |
| 168 | 128 + 32 + 8 | 10101000 |
| 1 | 1 | 00000001 |
| 1 | 1 | 00000001 |
The final binary address is
11000000.10101000.00000001.00000001.
Frequently Asked Questions
How many bits does an IPv4 address have?
An IPv4 address has 32 bits, arranged in four octets of eight bits each.
What is 192.168.1.1 in binary?
The binary representation is
11000000.10101000.00000001.00000001.
Why are zeros added to the beginning of an octet?
Leading zeros ensure every octet contains eight bits. For example,
decimal 1 is written as 00000001.
Can I convert 255.255.255.255?
Yes. Each octet becomes 11111111, giving a 32-bit string of ones.
Does this converter support IPv6?
No. This tool accepts IPv4 addresses only. IPv6 uses a different format and has 128 bits.
Is my IP address sent to a server?
No. The conversion is performed in your browser. No server request is needed to calculate the result.