Convert any IPv4 address to binary, hexadecimal, and decimal formats instantly. Useful for network engineers, students, and anyone learning about IP addressing.
Binary is a base-2 number system that uses only two digits: 0 and 1. Every computer, router, and network device processes data in binary. When you type an IP address like 192.168.1.1, your device internally represents it as a 32-bit binary number.
Understanding binary representation of IP addresses is essential for network subnetting, access control list (ACL) configuration, and troubleshooting routing issues. Network engineers regularly convert IP addresses between decimal, binary, and hexadecimal to work with subnet masks and wildcard masks.
An IPv4 address consists of four octets, each ranging from 0 to 255. Each octet is 8 bits, making the total address 32 bits long. The address is divided into a network portion and a host portion, determined by the subnet mask.
| Class | First Octet Range | Default Mask | Binary Start | Purpose |
|---|---|---|---|---|
| A | 1 - 126 | 255.0.0.0 | 0xxxxxxx | Large networks |
| B | 128 - 191 | 255.255.0.0 | 10xxxxxx | Medium networks |
| C | 192 - 223 | 255.255.255.0 | 110xxxxx | Small networks |
| D | 224 - 239 | N/A | 1110xxxx | Multicast |
| E | 240 - 255 | N/A | 1111xxxx | Reserved |
| Decimal | Binary | Hex | Usage |
|---|---|---|---|
| 0 | 00000000 | 00 | Network address (host part) |
| 1 | 00000001 | 01 | First usable host |
| 128 | 10000000 | 80 | /25 boundary |
| 192 | 11000000 | C0 | /26 boundary |
| 224 | 11100000 | E0 | /27 boundary |
| 240 | 11110000 | F0 | /28 boundary |
| 248 | 11111000 | F8 | /29 boundary |
| 252 | 11111100 | FC | /30 boundary |
| 254 | 11111110 | FE | Last usable host |
| 255 | 11111111 | FF | Broadcast (host part) |
To convert an IP address to binary by hand, take each octet and divide it repeatedly by 2, recording the remainder. Read the remainders from bottom to top to get the binary representation. Pad with leading zeros to ensure each octet is exactly 8 bits.
Reading the remainders bottom-to-top gives 11000000, which is the binary representation of 192.
Some IP address ranges are reserved for private use and are not routable on the public internet. Knowing these ranges and their binary representations helps with network design.
| Range | CIDR | Binary Start | Number of Addresses |
|---|---|---|---|
| 10.0.0.0 - 10.255.255.255 | 10.0.0.0/8 | 00001010.xxxxxxxx | 16,777,216 |
| 172.16.0.0 - 172.31.255.255 | 172.16.0.0/12 | 10101100.0001xxxx | 1,048,576 |
| 192.168.0.0 - 192.168.255.255 | 192.168.0.0/16 | 11000000.10101000 | 65,536 |
To find your current IP address, check out our What Is My IP tool.
Split the IP into four octets, then convert each octet from decimal to an 8-bit binary number. For example, 192.168.1.1 becomes 11000000.10101000.00000001.00000001. You can use the converter tool above or do it manually by dividing each number by 2 and tracking remainders.
IPv4 addresses use 32 bits, providing approximately 4.3 billion unique addresses. This was considered sufficient when the protocol was designed in the 1980s. IPv6 uses 128 bits to address the shortage of available IPv4 addresses.
Binary is base-2 (digits 0-1) while hexadecimal is base-16 (digits 0-9 and A-F). Hexadecimal is a more compact way to represent binary values, with each hex digit corresponding to exactly 4 binary bits. Network engineers use hex for MAC addresses and IPv6 addresses.
Yes, but IPv6 addresses are 128 bits long, making them much longer in binary. IPv6 addresses are typically represented in hexadecimal with colon separators (e.g., 2001:0db8::1). This tool focuses on IPv4 conversion.
About Tommy N.
Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.
Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.
Once done, hit any button as below
![]() |
![]() |
![]() |
![]() |