TOOLTIKI Lovable tool, really free
Developer Addressing

Binary to IPv4

192.168.10.0/24 254 usable hosts
Network address
192.168.10.0
Broadcast address
192.168.10.255
First usable host
192.168.10.1
Last usable host
192.168.10.254
Usable hosts
254
Total addresses
256
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
CIDR notation
192.168.10.0/24
Address range
192.168.10.0 – 192.168.10.255
Class
C
Scope
Private (RFC 1918)
Mask in binary
11111111.11111111.11111111.00000000
Address in binary
11000000.10101000.00001010.00000001
Subnets of /26
4
Usable hosts in each
62
Smallest block for 50 hosts
/26

Calculated in your browser · nothing is looked up or uploaded

Local · the mask octets are only nine values
Advertisement
320 × 100

Shows the binary form of an IPv4 address alongside its mask, so the network and host halves line up and the split is visible.

How to use the binary to ipv4

1 Enter the address in dotted decimal.
2 Read the binary row.
3 Compare it against the binary mask above it.

Reading an address in binary is how subnetting is actually taught, and for good reason: the mask is a boundary drawn through the 32 bits, and it only looks arbitrary in decimal. 255.255.255.0 is eight rows of ones and eight of zeros — obvious. 255.255.240.0 is less obvious in decimal and completely clear in binary: twenty ones, twelve zeros.

Each octet is eight bits, which is why every octet runs 0 to 255 and why 256 is not a valid value. The powers are worth memorising for reading a mask at a glance: 128, 192, 224, 240, 248, 252, 254, 255 are the only values a mask octet can take, corresponding to one through eight bits. A mask octet of any other value — 255.0.255.0 is the classic — is not a valid contiguous mask and equipment will reject it.

The binary form is also the quickest way to check whether two addresses are in the same network: mask them both and compare. If the network halves match, they can talk without a router; if not, they cannot, regardless of how similar the decimal looks.

Questions

Each is one byte — eight bits. 255 is all eight set, and there is no room for 256.

RFC 791 — Internet Protocol
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING