Skip to main content
ToolsHub

IP Address Converter

Enter any IPv4 address to instantly see its decimal (32-bit integer), binary (dotted), and hexadecimal representations.

Updated

Files never leave your browser

All conversions happen in your browser

No conversion yet

Enter an IPv4 address or decimal value and press Convert to see the result.

How to use IP Address Converter

The IP to Decimal converter translates an IPv4 address between its familiar dotted-quad form and the single 32-bit integer that computers actually use internally, and back again. Storing IP addresses as integers makes database range queries fast and is how many geolocation and access-control systems represent them, so developers regularly need to move between the two notations. This tool also shows the binary and hexadecimal forms, making it a handy reference when you are debugging packet captures, writing firewall rules, or building software that handles addresses.

  1. Enter an IPv4 address in dotted form, or a 32-bit integer.
  2. Click Convert to translate between the two representations.
  3. Read the decimal, binary and hexadecimal equivalents.
  4. Copy whichever form your database or application expects.
  5. Reverse the process any time by entering the other notation.

Your data never leaves your device — 100% private processing.

How the conversion works

An IPv4 address is four 8-bit numbers, or octets, each ranging from 0 to 255. To form the single integer, each octet is weighted by its position: the first is multiplied by 256³, the second by 256², the third by 256, and the last added as-is. So 192.168.1.1 becomes 192×16777216 + 168×65536 + 1×256 + 1 = 3,232,235,777. The reverse simply peels the octets back out with division and remainder. Because the maths is exact, the round trip never loses information.

Octet position weights
OctetMultiplierExample (192.168.1.1)
1st16,777,216192 → 3,221,225,472
2nd65,536168 → 11,010,048
3rd2561 → 256
4th11 → 1

Why integer storage is useful

Representing addresses as integers lets databases compare and range-scan them efficiently, which is why IP-based geolocation tables store start and end of each block as integers and find a match with a single BETWEEN query. Integer form is also compact and avoids string-parsing overhead in high-throughput systems. When you import such a dataset or read a binary log, you will frequently meet addresses as bare numbers, and this converter turns them back into human-readable dotted form instantly.

Worked examples

Dotted-quad to integer

Inputs: 192.168.1.1

Result: 3,232,235,777 (binary 11000000.10101000.00000001.00000001)

Integer back to IP

Inputs: 3232235777

Result: 192.168.1.1 · hex C0.A8.01.01

Binary representation

Inputs: 10.0.0.1

Result: 00001010.00000000.00000000.00000001 = 167,772,161

Glossary

Octet
One of the four 8-bit numbers (0–255) that make up an IPv4 address.
Dotted-quad
The standard human-readable IPv4 form, such as 192.168.1.1.
32-bit integer
The single numeric value an IPv4 address represents internally.
Hexadecimal
Base-16 notation often used to display addresses compactly.
Endianness
The byte order in which a multi-byte value such as an IP integer is stored.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Network & DNS

Explore all Network & DNS.