IP to Binary Converter

Convert IPv4 addresses into clean 8-bit binary groups, inspect the full 32-bit pattern, and sanity-check every octet before you use it in subnetting or network analysis.

Last updated: August 2026 | By Workshelve Team

Enter a dotted IPv4 address and the tool will convert each byte into binary with fixed 8-bit padding.

Supported format: standard dotted-decimal IPv4 only. IPv6 is not included in this converter.

Formula
binary octet = decimal octet converted to base 2 and padded to 8 bits
Binary Output
11000000.10101000.00000000.00000001
32-bit view: 11000000 10101000 00000000 00000001

Each octet becomes one byte

IPv4 addresses contain four decimal octets, and each octet maps directly to one 8-bit binary byte.

Validation matters first

The tool rejects malformed addresses so the binary output is based on valid IPv4 byte ranges only.

Grouped output stays readable

Keeping the result in four groups makes subnet masks, network boundaries, and bit comparisons much easier to scan.

How IP to Binary Conversion Works

An IPv4 address is four numbers separated by dots. Each of those numbers is stored as one byte, so the valid range is 0 through 255. To convert the address to binary, the converter changes each octet from base 10 into base 2 and pads the result to eight bits.

That padding is important. The binary form of decimal 5 is just 101, but a real IPv4 byte must be shown as 00000101. Without padding, the byte boundaries become ambiguous and the address is harder to read.

Networking work usually keeps binary grouped by octet instead of flattening everything into one long string because the grouped layout mirrors how addresses are stored and compared.

Worked Example: 192.168.0.1

192 base 10
11000000
168 base 10
10101000
0 base 10
00000000
1 base 10
00000001

Combined result: 11000000.10101000.00000000.00000001

Common IPv4 Binary Values

Decimal
Binary
0
00000000
1
00000001
10
00001010
128
10000000
192
11000000
255
11111111

IP to Binary FAQs

Does this support IPv6?

No. This converter is intentionally scoped to standard IPv4 dotted-decimal addresses.

Why is each group always 8 bits long?

Because every IPv4 octet is exactly one byte. Padding keeps the byte boundary accurate and readable.

What is the decimal value shown internally?

The parsed IPv4 address also maps to one unsigned 32-bit number. For the current input, that value is 3232235521.

Can I use leading zeros in the input?

Yes, as long as each octet still represents a valid decimal value from 0 to 255.

Related Tools