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.

Files never leave your browser

All conversions happen in your browser

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.

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

Frequently Asked Questions

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.

Why use IP Address Converter?

  • Real-time DNS lookups using live resolver queries
  • Supports IPv4 and IPv6 addresses
  • No software to install — runs entirely in the browser
  • Results include TTL values and record priority

Common use cases

  • Verify DNS propagation after updating nameservers
  • Check MX records when troubleshooting email delivery
  • Look up SPF/DKIM/DMARC records for email security audits
  • Test whether a SSL certificate is valid and up to date
  • Find the IP address behind a domain name

Related Network & DNS

Explore all Network & DNS.