IP to Binary Converter

Convert an IPv4 address to binary, hex and decimal.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

IPv4 to binary, hex and decimal

Enter any IPv4 address and see it as binary (per octet and as one 32-bit string), hexadecimal, and the decimal 32-bit integer that the address represents internally. This is useful for studying subnetting, debugging firewall rules, and understanding how masks line up bit by bit.

How it works

An IPv4 address is four octets, each 0–255. The converter writes each octet as an 8-bit binary number and concatenates them into a 32-bit string, also showing the two-digit hex form per octet. The single decimal integer is computed as:

octet1 × 16,777,216 + octet2 × 65,536 + octet3 × 256 + octet4

(that is, octet1 × 2²⁴ + octet2 × 2¹⁶ + octet3 × 2⁸ + octet4).

Example

For 192.168.1.10:

FormatValue
Per octet binary11000000.10101000.00000001.00001010
32-bit binary11000000101010000000000100001010
HexadecimalC0A8010A
Decimal integer3,232,235,786

Everything runs in your browser; nothing is uploaded.

Ad placeholder (rectangle)