IP & Subnet Bit Visualizer
See an IPv4 address, mask and subnet broken down bit by bit, with network and host bits coloured.
Bit breakdown
The binary math
The network address is the IP AND the mask; the broadcast is the network OR the wildcard. Both update as you change the inputs.
→ Need the subnet list and ranges? Use the Subnet Calculator
Seeing subnets in binary
An IPv4 address is 32 bits, written as four 8-bit octets. Converting an address to binary shows how each octet contributes to the network and host portions. The prefix length (the /24 in 192.168.10.0/24) is simply how many bits, counting from the left, belong to the network; the rest are host bits. This visualizer colours network bits blue and host bits gold across every row, so the boundary — and why the numbers fall where they do — is obvious.
How the parameters are derived
- Mask length / prefix — the number of consecutive 1s in the subnet mask. A
/24mask is twenty-four 1s followed by eight 0s, i.e.255.255.255.0. - Network address — a bitwise AND of the IP and the mask. AND keeps a bit only where both are 1, so it preserves the network bits and forces every host bit to 0 — the subnet's first address.
- Broadcast address — a bitwise OR of the network and the inverted mask (the wildcard). OR sets a bit where either is 1, so it leaves the network bits intact and forces every host bit to 1 — the subnet's last address.
- Host range — every address between network and broadcast. For
192.168.10.0/24that's192.168.10.1to192.168.10.254.
The "binary math" panel above shows both operations worked out live for whatever you enter, the same way you'd do it by hand.
Moving the boundary
Drag the prefix slider and watch the colour boundary move: every bit you hand to the network halves the hosts per subnet and doubles the number of subnets. Click any bit in the IP row to flip it and see the address change. Use Copy link to share the exact view — the address and prefix travel in the URL.
These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.