Conversion
IPv4 converter — decimal, hexadecimal and binary
Convert IPv4 to decimal, hexadecimal or binary and back again. Understand how the same address is stored as an unsigned 32-bit number.
New to this tool? Start here.
Click an example below the form. Look at the result, then change one value to compare what happens.
- DEC / HEX / BIN
- Three ways to write the same number: decimal, hexadecimal and binary. Converting an address does not change its meaning.
- 0x / 0b
- The 0x prefix means hexadecimal and 0b means binary. This distinguishes them from an ordinary decimal number.
01 / Input
Start with your data
Your data is processed in the browser. Sharing a result is your choice.
02 / Your result
A result you can understand.
Fill in the form or choose an example. You will see the values and how they were calculated.
02 / Your result
Step by step
How did we get here?
How to use it
An IPv4 address is an unsigned 32-bit number. Decimal, hexadecimal and binary notation represent the same value.
A little network lab
An IP address as one number
Conversion helps when analysing logs and data stored numerically. Use documentation address 192.0.2.1 and follow the weight of each octet.
The four octets have weights 256³, 256², 256 and 1. The address is an unsigned 32-bit number.
Calculate 192 × 16777216 + 0 × 65536 + 2 × 256 + 1. The result is 3221225985.
In hexadecimal each octet uses two digits: C0, 00, 02, 01. Together they give 0xC0000201; the address itself has not changed.
Your turn
What does 4294967295 represent?
Show answer and explanation
255.255.255.255: all 32 bits are one. It is a valid numeric conversion, but not an address to assign to an ordinary host.
Official documents
Standards & sources
Sources checked:
The date refers to checking the listed documents and registries, not endorsement by their authors. Calculation assumptions and limits appear with the result. How we prepare the material.