IP / Binary Converter
Enter an IPv4 address in any format — dotted-decimal, binary, hexadecimal, or integer — to convert between them all.
IP Address Binary Converter
Why Binary IP Representation Matters
Every IP address that routes traffic across the internet is fundamentally a 32-bit binary number. Type 192.168.1.1 into a browser, and your operating system converts that dotted-decimal notation into the binary value network hardware processes. This binary-to-IP relationship is essential for anyone working with subnetting, firewall rules, or access control lists. Network masks, wildcard masks, and routing decisions all operate at the binary level. An IP-to-binary converter makes the translation instant. It lets you verify calculations and catch configuration errors before they cause outages. For a broader look at addressing notation, see our guide on IP address formats explained.
How Octets Map to 8-Bit Binary Values
An IPv4 address consists of four octets separated by dots. Each octet is a decimal number from 0 to 255, which maps to exactly 8 binary digits. The octet 192 becomes 11000000 because 128 plus 64 equals 192. Converting an IP to binary simply translates each of the four octets into its 8-bit form, then joins them. The full 32-bit string holds the same information as the dotted-decimal form. It also reveals the bit patterns that drive network behavior. You can see which bits belong to the network and which identify hosts. The place-value table in the results shows this bit by bit for the address you enter.
Hex and Integer Representations
Beyond binary and dotted-decimal, IP addresses are often written as hexadecimal values and plain integers. Hexadecimal condenses every 4 bits into a single character (0-9, A-F). That makes it compact for packet captures, memory dumps, and low-level programming. The integer representation treats the full 32-bit address as one unsigned number. Databases and programming languages store IPs this way for fast comparison and range queries. This converter accepts all four formats as input and displays each one in the results. Paste whatever you have, and copy whatever you need.
IP Classes and Private Ranges
Although modern routing relies on classless CIDR notation, the legacy class system still appears in documentation and certification exams. Class A addresses start with a first octet below 128. Class B spans 128 through 191, and Class C covers 192 through 223. Classes D and E are reserved for multicast and experimental use. RFC 1918 designates three private address ranges: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. A fourth block, 100.64.0.0/10, is shared CGNAT space under RFC 6598 — common on Starlink and mobile carriers. This tool detects private, CGNAT, loopback, and link-local ranges automatically and identifies the class. If you are studying addressing generations, see our comparison of IPv4 vs. IPv6.
Frequently Asked Questions
How do you convert an IP address to binary?
Convert each of the four octets to 8 bits, then join them. For each octet, subtract the place values 128, 64, 32, 16, 8, 4, 2, and 1 from left to right. Write 1 where the value fits and 0 where it does not. For example, 192 is 128 plus 64, so it becomes 11000000.
Why is 255 the highest value in an IP octet?
Each octet is 8 bits, and 8 bits can represent 256 distinct values from 0 to 255. Set every bit to 1, and the place values 128, 64, 32, 16, 8, 4, 2, and 1 add up to 255. That is the maximum a single octet can hold.
What is the integer value of an IP address used for?
The integer is the full 32-bit address as one unsigned number. Databases and code store IPs this way because integer comparisons are fast. It also makes range checks simple. An address falls inside a block when its integer sits between the block’s first and last values.
Related Tools & Resources
Browse all of our free networking tools. Calculate subnet details for any CIDR block, or expand a block with the CIDR to IP range converter. You can also find your public IP address, run a DNS lookup, or check common network ports. For deeper subnetting math, read the subnetting beginner’s guide and the VLSM and supernetting article.