IPv4 32-Bit Address

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.

IPv4 to Binary Binary to IPv4 32 Bits 4 Octets Hex View
IPv4 Binary Conversion 4 × 8-Bit Octets
Choose the conversion direction.
Enter four decimal octets, for example 192.168.1.1.
An IPv4 address contains exactly 32 bits divided into four 8-bit octets. Each decimal octet must therefore be between 0 and 255.
IPv4 Binary Result
IPv4 Address
Total Bits 32
Octets 4
Hexadecimal
32-Bit Binary Address

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.

192 = 11000000
168 = 10101000
1 = 00000001
1 = 00000001

Therefore:

192.168.1.1

=

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.

Decimal: 192

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.

11000000 = 192

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.

10 = 00001010

0 = 00000000

0 = 00000000

1 = 00000001

So the complete binary address is:

00001010.00000000.00000000.00000001

IPv4 Hexadecimal Representation

Each eight-bit IPv4 octet can also be represented by two hexadecimal digits.

192 = C0
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.

8 bits + 8 bits + 8 bits + 8 bits = 32 bits

The dots in dotted-decimal notation are separators for humans; they are not additional binary data.

Important IPv4 Binary Notes

Important: this calculator converts IPv4 addresses only.

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.

IPv4 Binary Calculator FAQs

What does this IPv4 Binary Calculator do?
It converts IPv4 dotted-decimal addresses into 32-bit binary form and converts 32-bit binary IPv4 values back into dotted decimal.
How many bits are in an IPv4 address?
An IPv4 address contains 32 bits divided into four 8-bit octets.
What is 192 in binary?
Decimal 192 is binary 11000000.
What is 192.168.1.1 in binary?
It is 11000000.10101000.00000001.00000001.
What is the maximum value of an IPv4 octet?
The largest valid octet is 255, which is binary 11111111.
Can I convert binary back to an IPv4 address?
Yes. Enter four 8-bit binary groups or a continuous 32-bit binary value.
Does this calculator calculate subnet masks?
No. It converts the IPv4 address itself only.
Does this calculator support IPv6?
No. IPv6 uses 128-bit addresses and is handled separately.
Scroll to Top