IP to Binary Converter

Convert any standard decimal IPv4 address into its 32-bit binary representation in real-time.

Waiting for input...

About this tool

This converter takes a standard IPv4 address in decimal (dotted quad) notation and converts each of its four octets into 8-bit binary, giving you the full 32-bit binary representation of the address. It runs entirely in your browser - nothing is sent to a server.

Want the full explanation of octets, dotted quad notation, and why IPv4 addresses are 32 bits long? Read Ch.2: Understanding the Structure of an IP Address.

This binary view is also exactly what you need to follow the bitwise AND walkthrough in Ch.4: Subnet Masks and the "Same Network" Test.

Frequently asked questions

What is an IPv4 address in binary?

An IPv4 address like 192.168.1.4 is really four 8-bit numbers (octets) joined by dots. Written in binary, each octet becomes 8 bits, so the full address is 32 bits long: 11000000.10101000.00000001.00000100.

Why convert an IP address to binary?

Binary is how computers and routers actually store and compare IP addresses. Seeing the binary form makes concepts like subnet masks, CIDR notation, and network/host boundaries far easier to reason about than the decimal form alone.

What is dotted quad notation?

Dotted quad notation is the a.b.c.d format most people know as "an IP address" - four decimal numbers from 0-255, separated by dots. It exists purely for human readability; the underlying address is always 32 bits of binary.

How many bits are in an IPv4 address?

Exactly 32 bits, split into four 8-bit octets (4 x 8 = 32). That fixed length is why IPv4 tops out at about 4.3 billion unique addresses, which is also why IPv6 exists.