IP & Domain Tools

IP Address to Binary, Hex and Decimal Converter

Convert any IPv4 address into binary, hex and decimal.

Your numbers

Your results

Binary
Binary
—
Hexadecimal
—
32-bit decimal integer
—
Address class
—
Address type
—

IP Address to Binary, Hex and Decimal Converter by TheCalcTools

How the IP Address to Binary, Hex and Decimal Converter works

Enter the four octets.

Each octet is converted to 8 bits. The 32-bit decimal value is o1×256³ + o2×256² + o3×256 + o4.

Class and private-range checks follow RFC 1918 and RFC 6598.

The formula

Decimal = o1·16,777,216 + o2·65,536 + o3·256 + o4

Worked example

Using the default values shown in the calculator:

Octet 1192
Octet 2168
Octet 31
Octet 410
  1. 192.168.1.10 in binary is 11000000 10101000 00000001 00001010 (octets separated by spaces).
  2. In hex it is 0xC0A8010A and as an integer 3232235786. It is a class C address: Private (RFC 1918).

Result:

Binary11000000 10101000 00000001 00001010
Hexadecimal0xC0A8010A
32-bit decimal integer3232235786
Address classC
Address typePrivate (RFC 1918)

Frequently asked questions

Why convert an IP to decimal?

Some databases and firewalls store IPv4 addresses as a single 32-bit integer so ranges can be compared numerically.

Are address classes still used?

Not for routing, since CIDR replaced them, but the terms are still used when talking about private ranges.

Sources and further reading

More in IP & Domain Tools · All calculators

This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.