Binary IP Converter Calculator

Convert IPv4 formats accurately with guided validation. See octets, masks, ranges, and network details instantly. Download reports and visualize address structure for faster learning.

Calculator Form

Use the full-width stacked page layout, while the input controls adapt to three columns on large screens, two on medium screens, and one on mobile.

Choose the source format you want to convert.
Use dotted decimal notation with four octets.
Enter four 8-bit groups or one 32-bit binary string.
This powers subnet mask, network, and host calculations.
Decimal and binary conversion, subnet mask, wildcard mask, network address, broadcast address, host range, class detection, scope detection, CSV export, PDF export, and a Plotly chart.
Binary input can be typed as dotted octets or one 32-bit string. Decimal input must stay within 0 to 255 per octet.

Example Data Table

Input Format Input Address CIDR Converted Address Network Broadcast
Decimal 192.168.1.10 /24 11000000.10101000.00000001.00001010 192.168.1.0 192.168.1.255
Binary 10101100.00010000.00000101.01100100 /20 172.16.5.100 172.16.0.0 172.16.15.255
Decimal 10.0.15.200 /16 00001010.00000000.00001111.11001000 10.0.0.0 10.0.255.255

Formula Used

1) Decimal octet to binary
Convert each octet separately, then left-pad to 8 bits.
Example: 192 → 11000000

2) Binary octet to decimal
Decimal = b7×27 + b6×26 + b5×25 + b4×24 + b3×23 + b2×22 + b1×21 + b0×20

3) Subnet mask from CIDR prefix
A /p prefix means the first p bits are 1 and the remaining 32−p bits are 0.

4) Network address
Network = IP address AND subnet mask

5) Broadcast address
Broadcast = Network OR wildcard mask

6) Wildcard mask
Wildcard = 255.255.255.255 − subnet mask

7) Traditional usable hosts
Usable hosts = 2(32−prefix) − 2 for prefixes /0 through /30

How to Use This Calculator

  1. Select the conversion mode.
  2. Enter either a dotted decimal IPv4 address or a binary IPv4 address.
  3. Provide the CIDR prefix to calculate subnet-related values.
  4. Press Convert and Analyze.
  5. Read the result section above the form for the converted address and subnet details.
  6. Review the octet breakdown and Plotly graph for a visual explanation.
  7. Use the CSV or PDF buttons to export the calculated report.

FAQs

1) What formats does this calculator accept?

It accepts dotted decimal IPv4 addresses like 192.168.1.10 and binary IPv4 addresses either as four 8-bit groups or one continuous 32-bit string.

2) Why does each binary octet contain exactly eight bits?

IPv4 has four octets, and each octet stores one byte. One byte always equals eight bits, so padded binary octets preserve proper address structure.

3) What does the CIDR prefix control?

The prefix determines how many leading bits belong to the network part. It affects the subnet mask, wildcard mask, network address, broadcast address, and host range.

4) Why are /31 and /32 results treated differently?

Those prefixes have very small address spaces. A /32 identifies one host. A /31 is commonly used for point-to-point links, so traditional host rules differ.

5) Does the calculator identify private and public ranges?

Yes. It checks common private, public, loopback, link-local, multicast, and reserved ranges so you can better understand the role of the address.

6) Can I use this tool for subnet study?

Yes. It is useful for learning subnet masks, CIDR prefixes, broadcast addresses, wildcard masks, host counts, and the relationship between decimal and binary notation.

7) Is this calculator meant for IPv6?

No. This page is built for IPv4 conversion and subnet calculations only. IPv6 uses a different address length, notation style, and subnetting approach.

8) How do the export buttons work?

CSV export creates a spreadsheet-friendly summary of the calculated metrics. PDF export captures the result area and saves a report you can share or archive.

Related Calculators

ip to binaryusable ip calculatorsubnet plannerclassless ip calculatorhosts per subnetsubnet range finderip network analyzer

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.