IP to Binary Converter
Convert any IPv4 address into its binary, hexadecimal, and 32-bit integer forms. This free online developer calculator runs entirely in your browser — no signup, no data sent anywhere.
Inputs
Results
How It Works (Formula & Method)
Each of the four octets is a value from 0 to 255. Every octet is converted to an 8-bit binary string, and the four are joined to form the 32-bit binary address. The same four octets combine into a single integer as (o1×16777216) + (o2×65536) + (o3×256) + o4, which is also shown in hexadecimal.
Worked Example
Below is a worked example using the calculator's default values. The same numbers are pre-filled in the form above so you can press Calculate and see the result without typing anything.
Inputs used:
- IPv4 Address: 192.168.1.1
With these inputs, the calculator computes the metrics shown in the Results panel. Change any value and press Calculate again to see how the result responds — the live widget and the chart both update instantly.
About the IP to Binary Converter
An IPv4 address is usually written in dotted-decimal form like 192.168.1.1, but underneath it is just a 32-bit number. Seeing the binary form makes subnetting and network masks far easier to understand, and the integer form is how addresses are often stored in databases. This tool shows all three.
Tips & Considerations
- Each octet occupies 8 bits, so the whole address is exactly 32 bits — the reason IPv4 has about 4.3 billion addresses.
- Binary form makes CIDR masks obvious: a /24 network fixes the first 24 bits and leaves the last 8 for hosts.
- Storing addresses as integers makes range queries fast — a subnet becomes a simple numeric interval.
Frequently Asked Questions
Why convert an IP address to binary?
Subnet masks and CIDR prefixes operate on individual bits. Seeing the address in binary makes it obvious which bits identify the network and which identify the host.
What is the integer form used for?
A 32-bit integer is compact to store and fast to compare, so databases and routing code often keep IPv4 addresses as integers rather than strings.
Does this work for IPv6?
No. IPv6 addresses are 128 bits and written in hexadecimal groups. This converter handles IPv4 only.
What does the IP to Binary Converter compute?
The IP to Binary Converter takes 1 input value and returns 3 results. Convert an IPv4 address to its binary, hexadecimal, and 32-bit integer representations.