Free Online Utility • Binary Studio • Base-2 Engine

Convert IP Address to Binary

Convert IPv4 addresses into 32-bit dotted binary, raw bitstreams, hexadecimal, integer, and network class analysis.

Formula & Quick Reference Base-2 Engine
A.B.C.D -> 8-bit(A).8-bit(B).8-bit(C).8-bit(D)
192.168.1.1 -> 11000000.10101000.00000001.00000001
192.168.1.1Class C (Private RFC1918)
10.0.0.1Class A (Private RFC1918)
255.255.255.0/24 Subnet Mask
IPV4 TO 32-BIT BINARY
Binary IPv4 Output

        
100% client-side exact Binary Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Convert IP Address to Binary Works

Convert IP Address to Binary translates dotted-quad IPv4 addresses into their exact 32-bit binary representation alongside octet-by-octet hex, unsigned 32-bit integer, and classful network identifiers.

Binary arithmetic and base-2 encoding form the physical foundation of digital microprocessors, network packets, memory buffers, and cryptographic primitives. Every calculation in this utility runs directly inside your browser using exact JavaScript BigInt and typed-array pipelines, so arbitrary-length bitstreams, 128-bit addresses, and raw byte buffers never suffer from 53-bit IEEE floating-point truncation or server latency.

IPv4 32-Bit Octet Encoding

IPv4 = (o0 << 24) | (o1 << 16) | (o2 << 8) | o3
Each octet o_k in [0..255] -> 8-bit unsigned binary

Routers evaluate CIDR prefixes, subnet masks, and longest-prefix-match routing tables directly on the 32-bit binary layout of IPv4 addresses.

Worked Reference Examples

InputOutputStep / Bit Note
192.168.1.111000000.10101000.00000001.00000001Private RFC 1918 Class C
8.8.8.800001000.00001000.00001000.00001000Public DNS Resolver
255.255.255.011111111.11111111.11111111.0000000024 leading 1s (/24 mask)

Practical Engineering Applications

CIDR & Subnet Masking

Visualize exact network and host bit boundaries when partitioning /24, /26, or /28 subnets.

Firewall ACL & Route Summarization

Find common binary prefixes across multiple IPv4 addresses to build supernet routes.

Precision, Edge Cases & Best Practices

Optional CIDR suffixes such as /24 are stripped gracefully when parsing the base IPv4 address. Supports batch multi-line conversion.

All input parsing strips harmless formatting whitespace, underscores, or common prefixes such as 0b where applicable, while preserving exact bit order and padding width so outputs drop straight into C/C++, Rust, Verilog, VHDL, Python, and embedded firmware test harnesses.

Frequently Asked Questions

How many bits are in an IPv4 address?
Every IPv4 address consists of exactly 32 bits organized into four 8-bit octets (0–255 each).
Why do network engineers convert IPs to binary?
Bitwise AND between a 32-bit binary IP address and its binary subnet mask immediately reveals the exact network address.
Can I convert multiple IP addresses at once?
Yes — enter one IPv4 address per line to convert an entire list instantaneously.