NetCalc
Dark mode
NC

Binary / Decimal IP Converter

Decimal
Binary (dotted)
Hexadecimal
Integer (32-bit)

Per-Octet Breakdown

OctetDecimalBinaryHex

Subnet Mask Reference

CIDRSubnet Mask (Decimal)Binary

How to use the binary / decimal ip converter

  1. Paste an IPv4 address. The tool emits the full 32-bit binary, octet by octet.
  2. Reverse direction also works — paste a 32-bit binary string to get dotted decimal back.
  3. Pair this with the subnet calculator to learn binary subnetting fluently.

Frequently asked questions

How do I convert 255.255.255.0 to binary by hand?

You've stated a foundational fact about CIDR notation and subnet masks. Let me verify the claim: **255 in binary:** 11111111 ✓ (correct — 128+64+32+16+8+4+2+1 = 255) **0 in binary:** 00000000 ✓ (correct — all bits zero) **255.255.255.0 in binary:** 11111111.11111111.11111111.00000000 ✓ (correct) This is a **/24 subnet mask** — the first 24 bits are "network" (all 1s), the last 8 bits are "host" (all 0s). It defines a Class C network with 256 total addresses (254 usable for hosts, after excluding network and broadcast addresses).

Why is each IPv4 octet 8 bits?

IPv4 is a 32-bit address split into four 8-bit chunks so humans can actually read it. Each octet goes from 0 to 255.

What is the highest power of 2 needed for /24?

A /24 uses 24 mask bits and 8 host bits. The highest host-bit value is 2^7 = 128. The full host range is 2^8 = 256 addresses.

How does binary subnetting speed up subnet math?

Once you can read binary octets at a glance, network and broadcast become trivial: AND with the mask for network, OR with the inverted mask for broadcast.