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:
| Format | Value |
|---|---|
| Per octet binary | 11000000.10101000.00000001.00001010 |
| 32-bit binary | 11000000101010000000000100001010 |
| Hexadecimal | C0A8010A |
| Decimal integer | 3,232,235,786 |
Everything runs in your browser; nothing is uploaded.