IP to Binary Converter
Convert IPv4 and IPv6 addresses to binary, hexadecimal, and decimal formats. Calculate subnet masks, network addresses, and CIDR notation.
Quick examples:
Network Address Converter
Convert IP addresses between binary, decimal, and hexadecimal formats. This tool supports both IPv4 and IPv6, with advanced subnet calculations including network addresses, broadcast addresses, and CIDR notation.
Why Use This Tool?
Multiple Formats
Convert between binary, decimal, and hexadecimal instantly.
Octet Breakdown
View each octet's binary, decimal, and hex values.
Subnet Calculations
Calculate subnet mask, network and broadcast addresses.
IPv4 & IPv6 Support
Works with both IPv4 and IPv6 address formats.
How this IP to Binary Converter works
This network utility converts IP addresses between decimal, binary, and hexadecimal representations while calculating subnet information for CIDR notation. The tool supports both IPv4 (32-bit) and IPv6 (128-bit) address formats, parsing input strings and validating each octet or hextet falls within valid numeric ranges before performing conversions. IPv4 octets must range 0-255, while IPv6 hextets must be valid hexadecimal values up to FFFF.
Binary conversion transforms each address component using positional notation, padding each IPv4 octet to 8 bits or IPv6 hextet to 16 bits for consistent display. The converter offers both dotted format (11000000.10101000.00000001.00000001) and continuous format (11000000101010000000000100000001) output options. Hexadecimal output uses uppercase notation with 0x prefix for decimal values, facilitating integration with programming contexts.
Subnet calculations apply CIDR prefix length to generate subnet masks through bit-level operations, computing network addresses by ANDing the IP with the mask, and broadcast addresses by ORing with the inverse mask. The tool displays usable host counts using 2^(32-CIDR)-2 formula, along with IP class detection for educational reference. All computations execute locally using JavaScript bitwise operations without server communication.
How to Use
Enter IP Address
Input any valid IPv4 or IPv6 address.
Set CIDR (Optional)
Specify subnet prefix length for network calculations.
View Conversions
See binary, hexadecimal, and subnet information.
Example Usage
Converting a common private IP:
Frequently Asked Questions
What is binary representation of an IP address?
What is CIDR notation?
How do I calculate subnet mask from CIDR?
What are IP address classes?
Does this tool support IPv6?
Related Tools
Base64 Encoder Decoder
Encode and decode text and files to/from Base64 format. Fast and secure.
Binary to Text Converter
Convert binary code to readable ASCII/UTF-8 text.
Text to Binary Converter
Convert text to binary code with customizable formatting.
Phone Number to IP Address Converter
Educational tool demonstrating hash-based phone to IP conversion.
The IP to Binary Converter is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.
