Network Calcs
Dark mode
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?

Each 255 octet is eight 1s: 11111111. The trailing 0 octet is 00000000. So 255.255.255.0 = 11111111.11111111.11111111.00000000.

Why is each IPv4 octet 8 bits?

IPv4 is a 32-bit address divided into four equal 8-bit fields for human readability. Each octet ranges 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.

How to Use the Binary / Decimal / IP Converter

Enter a binary number, decimal number, or dotted-decimal IP address. The converter automatically detects the input format and shows all three representations simultaneously. For IP addresses, each octet is converted independently — useful for subnet mask calculations, ACL bitmask construction, and understanding how IPv4 addresses map to binary.

Example: 192.168.1.1 converts to binary 11000000.10101000.00000001.00000001 and decimal 3232235777. To calculate the network and broadcast address from an IP and mask, use our Subnet Calculator. For CIDR notation conversions, try the CIDR Converter.