IP to Binary Converter

Convert IPv4 addresses to binary notation with per-octet breakdown, subnet mask visualization, and CIDR support.

Your data is processed entirely in your browser. Nothing is uploaded to any server.

Common IP Addresses

Octet Breakdown

See each of the four octets converted separately with decimal, binary, and hex values side by side.

Subnet Visualization

Select a CIDR prefix to see network vs host bits highlighted, with network address and broadcast calculated.

Quick Presets

Click common IP addresses like 192.168.1.1, 127.0.0.1, or 8.8.8.8 to instantly see their binary representation.

Need a custom tool or web app?

I build MVPs and custom web applications in 7 days. From idea to production, fast, reliable, and scalable. 9+ years of full-stack experience.

Contact

Frequently Asked Questions

How do I convert an IP address to binary?
Convert each of the four octets (numbers separated by dots) to its 8-bit binary representation. For example, 192.168.1.1 becomes 11000000.10101000.00000001.00000001. Each octet is a number from 0-255, which fits in exactly 8 binary bits.
What is the binary of 192.168.1.1?
192.168.1.1 in binary is 11000000.10101000.00000001.00000001. Breaking it down: 192 = 11000000, 168 = 10101000, 1 = 00000001, 1 = 00000001. The full 32-bit representation without dots is 11000000101010000000000100000001.
Why are IP addresses 32 bits?
IPv4 addresses use 32 bits (4 bytes) because this was the size chosen when the Internet Protocol was designed in the early 1980s. 32 bits allow for about 4.3 billion unique addresses (232). Each of the 4 octets uses 8 bits, giving a range of 0-255 per octet. IPv6 uses 128 bits for a vastly larger address space.
How do subnet masks work in binary?
A subnet mask is a 32-bit number where the network portion is all 1s and the host portion is all 0s. For example, 255.255.255.0 in binary is 11111111.11111111.11111111.00000000, meaning the first 24 bits identify the network and the last 8 bits identify hosts. CIDR notation /24 means 24 network bits.
What is the binary of 255.255.255.0?
255.255.255.0 in binary is 11111111.11111111.11111111.00000000. Since 255 in binary is 11111111 (all 8 bits set to 1) and 0 is 00000000 (all bits 0), this common subnet mask has 24 consecutive 1-bits followed by 8 zero-bits, written as /24 in CIDR notation.