Free networking converter

IPv4 to Binary Converter

Convert IPv4 addresses between dotted decimal, binary octets, 32-bit binary, hexadecimal, and unsigned integer formats. Use it when checking subnet math, reading packet captures, or documenting network ranges.

  • Dotted decimal
  • Binary octets
  • Hex and integer
  • Local browser math

IPv4 inputs

Convert address formats

Everything runs locally in the browser. The converter does not submit IP addresses to a server.

Conversion result

IPv4 breakdown

Address192.168.1.25
Dotted decimal
192.168.1.25
Binary octets
11000000.10101000.00000001.00011001
32-bit binary
11000000101010000000000100011001
Hexadecimal
0xC0A80119
Unsigned integer
3232235801
Octets
192 | 168 | 1 | 25
Address range
Private RFC1918 range
Subnet hint
Commonly seen in private LANs.

Common examples

Quick IPv4 conversions

Use these examples to sanity-check private ranges, public DNS addresses, loopback, and link-local addresses without retyping them.

How IPv4 to binary conversion works

An IPv4 address is a 32-bit number. People usually write it as four decimal octets, like 192.168.1.25, because that is easier to read than one long binary value. Each octet is a number from 0 to 255, and each one can be represented by exactly eight binary bits.

To convert the address, convert each decimal octet separately and pad each binary group to eight digits. The octet 192 becomes 11000000, 168 becomes 10101000, 1 becomes 00000001, and 25 becomes 00011001. Joined together, those four groups form the full 32-bit address.

Why binary octets matter for subnetting

Subnetting is easier to understand when you can see which bits belong to the network portion and which bits belong to hosts. A subnet mask marks network bits with 1s and host bits with 0s. Comparing the binary address to the binary mask shows where a network boundary falls.

This is especially useful when a subnet is not on a clean dotted-decimal boundary, such as /26, /27, or /29. Binary groups make it clear why a /26 block increments by 64 addresses, while a /29 block increments by 8 addresses.

Decimal, hexadecimal, and integer IPv4 formats

Most network dashboards show dotted decimal addresses, but logs, APIs, packet tools, and firewall exports sometimes expose the same address as hexadecimal or an unsigned integer. These formats all describe the same 32-bit value; they simply package the bits differently.

Hexadecimal is compact because each hex digit represents four bits. That means an IPv4 address can be written as eight hex digits. Unsigned integer form stores the full 32-bit value as one number, which is common in databases and low-level tooling.

Common IPv4 conversion mistakes

The most common mistake is dropping leading zeroes in binary. Each IPv4 octet must stay eight bits wide, so 1 is not written as 1 inside an IPv4 binary octet; it is written as 00000001. Without padding, the groups no longer line up with subnet masks.

Another common mistake is mixing decimal and binary separators. A dotted binary IPv4 address should contain four binary octets. If you paste one 32-bit binary string instead, the converter can still read it, but it will display the grouped version so the boundaries are visible again.

Methodology, Formula & Official Standards

This IPv4 Dotted-Decimal, 32-Bit Binary & Hexadecimal tool implements the official specifications and mathematical definitions established by IETF RFC 791 (Internet Protocol v4), RFC 4632 (CIDR), and IEEE 802.3 network byte order (big-endian) standards. Core calculation logic: 32-Bit Integer = (Octet_1 × 2^24) + (Octet_2 × 2^16) + (Octet_3 × 2^8) + Octet_4; each octet (0–255) maps to an 8-bit binary byte and a 2-digit hexadecimal value. All conversions and calendar evaluations run locally in your browser using deterministic standards so engineers, travelers, and students can verify exact outputs without rounding drift.

Step-by-Step Worked Example

Worked Example: Converting the private gateway address 192.168.1.1 into binary and 32-bit unsigned integer form translates each octet: 192 = 11000000_2 (0xC0), 168 = 10101000_2 (0xA8), 1 = 00000001_2 (0x01), 1 = 00000001_2 (0x01). Joined in big-endian network order, the 32-bit hex value is 0xC0A80101 and the unsigned integer is 3,232,235,777.

Reference Benchmark & Comparison Table: IPv4 Dotted-Decimal, 32-Bit Binary & Hexadecimal Reference Benchmark & Comparison Table

Standard Tier / ModePrimary Definition / InputConverted / Secondary ValueKey Technical MetricPractical Engineering / Planning Rule
127.0.0.1 (Loopback — RFC 1122)01111111.00000000.00000000.000000010x7F0000012,130,706,433Localhost internal interface
10.0.0.1 (RFC 1918 Class A Private)00001010.00000000.00000000.000000010x0A000001167,772,161Enterprise VPC / internal LANs
172.16.0.1 (RFC 1918 Block Start)10101100.00010000.00000000.000000010xAC1000012,886,729,729Docker & cloud bridge networks
192.168.1.1 (RFC 1918 Home/SOHO)11000000.10101000.00000001.000000010xC0A801013,232,235,777Default residential router gateway
255.255.255.0 (/24 Subnet Mask)11111111.11111111.11111111.000000000xFFFFFF004,294,967,04024 network bits + 8 host bits

Frequently Asked Questions

What official standard governs this IPv4 Dotted-Decimal, 32-Bit Binary & Hexadecimal calculator?

This tool follows IETF RFC 791 (Internet Protocol v4), RFC 4632 (CIDR), and IEEE 802.3 network byte order (big-endian) standards, applying the exact formula 32-Bit Integer = (Octet_1 × 2^24) + (Octet_2 × 2^16) + (Octet_3 × 2^8) + Octet_4; each octet (0–255) maps to an 8-bit binary byte and a 2-digit hexadecimal value directly in client-side JavaScript.

Why do exact conversion constants and boundary rules matter?

Using truncated constants or ignoring leap-year, DST, or binary-vs-decimal rules introduces cumulative errors in storage sizing, network routing, and international scheduling.

Does this tool send any entered data, tokens, or dates to an external server?

No. Every conversion and inspection runs 100% locally inside your browser tab with zero server-side processing or logging.

How can I verify my result against the benchmark table?

Match your input range to the closest row in the 5-tier reference table above and compare against the Worked Example step-by-step walkthrough.

Editorial Methodology & Disclaimer

Editorial Methodology & Disclaimer: All calculator outputs and reference tables on Utility Stack are educational planning estimates based on published mathematical standards. They are not professional financial, legal, tax, or medical advice.