IP Address to Binary Converter Calculator – Instant Results

March 23, 2026

🖧 IP Address to Binary Calculator

Convert any IPv4 address and subnet mask to binary instantly — with full octet breakdown, network class, and bit visualization

Quick Presets
⚙️ IP Address Input
. . .
⚠ Please enter valid octet values between 0 and 255.
✅ Binary Conversion Results
📊 IPv4 Class Reference
8
Bits per Octet
32
Total IPv4 Bits
4.3B
Total IPv4 Addresses
Base 2
Binary Number System
🗂 IPv4 Class Binary Ranges
IP Class First Octet Range Default Subnet Mask Binary Prefix Max Hosts/Network
Class A1 – 126255.0.0.0 /80xxxxxxx16,777,214
Class B128 – 191255.255.0.0 /1610xxxxxx65,534
Class C192 – 223255.255.255.0 /24110xxxxx254
Class D224 – 239N/A (Multicast)1110xxxxN/A
Class E240 – 255N/A (Reserved)1111xxxxN/A
Loopback127.x.x.x255.0.0.0 /801111111Local Only
📐 Common Subnet Masks in Binary
CIDR Dotted Decimal Binary Usable Hosts
/8255.0.0.011111111.00000000.00000000.0000000016,777,214
/16255.255.0.011111111.11111111.00000000.0000000065,534
/24255.255.255.011111111.11111111.11111111.00000000254
/25255.255.255.12811111111.11111111.11111111.10000000126
/26255.255.255.19211111111.11111111.11111111.1100000062
/27255.255.255.22411111111.11111111.11111111.1110000030
/28255.255.255.24011111111.11111111.11111111.1111000014
/30255.255.255.25211111111.11111111.11111111.111111002
/32255.255.255.25511111111.11111111.11111111.111111111 (Host)
🔢 Bit Position Reference (Single Octet)
Bit Position Bit 7 (MSB) Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 (LSB)
Decimal Value 1286432168421
192 = 11000000 11000000
255 = 11111111 11111111
128 = 10000000 10000000
📋 Common IP Addresses — Binary Quick Reference
IP Address Purpose Full Binary Class
192.168.1.1Home Router Default11000000.10101000.00000001.00000001C
10.0.0.1Class A Private00001010.00000000.00000000.00000001A
172.16.0.1Class B Private10101100.00010000.00000000.00000001B
8.8.8.8Google DNS00001000.00001000.00001000.00001000A
127.0.0.1Loopback01111111.00000000.00000000.00000001Loopback
255.255.255.255Broadcast11111111.11111111.11111111.11111111
0.0.0.0Default Route00000000.00000000.00000000.00000000A
1.1.1.1Cloudflare DNS00000001.00000001.00000001.00000001A
💡 Tip — Memorize the Bit Values: Each octet is 8 bits with place values 128, 64, 32, 16, 8, 4, 2, 1 (left to right). To convert 192 to binary: 128+64=192, so bits 7 and 6 are 1, giving 11000000. Subnet masks always have consecutive 1s followed by consecutive 0s — never mixed.
💡 Tip — Network vs. Host Bits: The subnet mask in binary shows you exactly which bits are the network portion (1s) and which are the host portion (0s). A /24 mask (11111111.11111111.11111111.00000000) means the first 24 bits identify the network and the last 8 bits identify hosts — allowing 2⁸ – 2 = 254 usable host addresses.

All devices connected to the net have an IP Address. Usually we see it written in dotted decimal form, for instance 192.168.10.1. It seems quite simple.

Even so computers do not use decimal numbers for their work. They operate with Binary values, that is made up of only 0 and 1 signs. To truly grasp how IP Addresses operate, you need to learn to convert the decimal form to Binary.

How IP Addresses Work in Binary

An IP Address forms itself from four different parts. Each of those parts is called an octet. An octet matches to eight Binary signs.

So four octets, each with eight elements, result in a 32-bit amount. Like this every IP Address represents a 32-bit number. When an admin of the net enters an address with dots the computer quietly converts it to Binary octets under the surface.

Here is how that happens in practice. We take each of the four decimal values and convert them to Binary. When signs are missing, we fill in with zeros to the left, so that each part has exactly eight signs.

Later we tie the four parts to form one long Binary sequence of only 0s and 1s. For instance, the address 192.168.10.1 matches to 11000000 for the first octet, 10101000 for teh second, 00001010 for the third and 00000001 for the fourth.

Another example: the decimal number 13 in Binary is 00001101. You can check that, because 8 plus 4 plus 1 equals 13. Like this an address like 154.31.16.13 converts too 10011010.00011111.00010000.00001101.

You can use online tools, that simplify this. Just enter the IP Address in the field, click the button, and the program shows the 32-bit Binary form. Such a tool works on Windows, Mac, Linux and browsers like Chrome, Firefox, Edge and Safari.

Grasping the Binary knowledge is key for subnetting. A subnet mask also consists of four octets. A very common sample is 255.255.255.0, that converts to 11111111.11111111.11111111.00000000.

The ones in the mask tell the computer which bits of the IP Address define the net. Another sample is 255.255.255.240 with 28 bits set to 1. Mask 255.255.255.248 leaves space for 6 hosts, while 255.255.255.240 allows 14 of them.

Each subnet costs two IP Addresses: one for the net name and one for thebroadcast address.

The Binary system forms the core of everything about address handling and subnetting. The whole system rests on Binary numbers sorted in four groups of eight signs, because eight signs fit well in one byte.

IP Address to Binary Converter Calculator – Instant Results

Related posts

Leave a Comment