IP to Binary Converter

Convert IPv4 and IPv6 addresses to binary format instantly. Supports batch conversion, CIDR notation, subnet masks, and detailed network analysis.

Supported IP Formats: IPv4 (e.g., 192.168.1.1) and IPv6 (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334)

Binary Format: IPv4 converts to 32-bit binary, IPv6 converts to 128-bit binary

Single IP Conversion
Batch IP Conversion
IPv4
IPv6
Enter an IPv4 address with optional CIDR notation (e.g., /24 for subnet mask)
192.168.1.1
10.0.0.1
172.16.0.1
8.8.8.8 (Google DNS)
/24 Subnet
Leave blank if using CIDR notation
Show Advanced Options
Converting...

Understanding IP Addresses and Binary

An Internet Protocol (IP) address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.

IPv4 vs IPv6:

IPv4: 32-bit addresses (4.3 billion possible), represented in dotted-decimal notation (e.g., 192.168.1.1)

IPv6: 128-bit addresses (3.4×10³⁸ possible), represented in hexadecimal notation (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334)

Both can be converted to binary for network calculations and analysis.

IPv4 Address Classes

Class Range Default Subnet Mask Purpose Binary Start
Class A 1.0.0.0 - 126.255.255.255 255.0.0.0 Large networks 0xxxxxxx
Class B 128.0.0.0 - 191.255.255.255 255.255.0.0 Medium networks 10xxxxxx
Class C 192.0.0.0 - 223.255.255.255 255.255.255.0 Small networks 110xxxxx
Class D 224.0.0.0 - 239.255.255.255 N/A Multicasting 1110xxxx
Class E 240.0.0.0 - 255.255.255.255 N/A Experimental 1111xxxx

IPv6 Address Types

Type Prefix Purpose Example
Global Unicast 2000::/3 Public IPv6 addresses 2001:0db8::1
Link-local fe80::/10 Local network communication fe80::1
Unique Local fc00::/7 Private networks (like IPv4 private) fd00::1
Multicast ff00::/8 One-to-many communication ff02::1
Loopback ::1/128 Localhost ::1

Batch Conversion Features

1

Mixed IP Support: Process both IPv4 and IPv6 addresses in the same batch. The converter automatically detects the IP version for each address.

2

Error Handling: Option to skip invalid IP addresses and continue processing the rest. Detailed statistics show successful and failed conversions.

3

Results Download: Download conversion results as a text file for offline use or documentation purposes.

Enhanced Calculator Features:

  • Supports both IPv4 (32-bit) and IPv6 (128-bit) addresses
  • Batch conversion for multiple IP addresses at once
  • IPv4 subnet calculations with CIDR notation
  • IPv6 address compression and expansion handling
  • Binary visualization for both IP versions
  • Download results as text file
  • Detailed statistics for batch conversions

Frequently Asked Questions

IPv4 addresses are 32-bit numbers, so they convert to 32 binary digits (bits). IPv6 addresses are 128-bit numbers, converting to 128 binary digits. While IPv4 binary is typically grouped by octets (8-bit groups), IPv6 binary can be grouped by hextets (16-bit groups) or shown as a continuous 128-bit string.

The batch converter automatically detects the IP version for each address in your list. It processes each address independently, applying the appropriate conversion algorithm (IPv4 or IPv6). Results are displayed with clear indicators showing which version was detected for each IP.

Yes! The converter handles all standard IPv6 formats, including compressed addresses with double colons (::). It will expand compressed addresses to their full form before conversion and show both the compressed and expanded versions in the results.

With the "Skip invalid IP addresses" option enabled (default), invalid addresses will be skipped and noted in the results. The converter will continue processing the remaining valid addresses. You'll see a count of failed conversions in the statistics, and each failed address will be listed with an error message.

There's no hard limit, but for performance reasons, we recommend converting up to 1000 IP addresses at once. Very large lists may cause the browser to become unresponsive. For extremely large lists, consider breaking them into smaller batches or using the downloadable results feature to save your work.