DNS Checker.eu

IP to Decimal

Convert an IPv4 or IPv6 address to its decimal number, and back again, instantly in your browser, with hexadecimal, binary and octal forms shown alongside.

IP address to number

Type an IPv4 or IPv6 address to see its numeric representations. Everything is computed locally in your browser.

Number to IP address

Paste a decimal value to convert it back. Values up to 2^32 map to IPv4; larger values (up to 2^128, handled with BigInt) map to IPv6.

About IP to Decimal

An IP address is really just a number in disguise. The familiar dotted form 192.168.10.1 is a human-friendly way of writing a single 32-bit integer, and every IPv4 address maps to exactly one number between 0 and 4,294,967,295. IPv6 works the same way on a larger scale: each address is one 128-bit integer. This tool performs that translation both directions. Give it a dotted or colon-separated address and it returns the decimal value; give it a plain integer and it reconstructs the address, mapping values up to 2^32 to IPv4 and larger values up to 2^128 to IPv6.

For an IPv4 address the tool shows four representations at once: the decimal integer, the hexadecimal form (a padded 0x value), the full 32-bit binary string, and the octal form. Those alternate bases are exactly what you reach for when reading firewall logs, crafting a packet, or spotting that 0x7F000001 and 2130706433 are both just 127.0.0.1. For IPv6 it returns the 128-bit decimal value, the padded hexadecimal, and the fully expanded address so you can see every zero group that the compressed :: notation hides.

The reverse direction is just as useful. Systems and databases frequently store addresses as plain integers because a number sorts and indexes far more efficiently than a string, and shortened numeric links sometimes encode a host as a single decimal. Paste that integer and the tool rebuilds the address, giving both the compressed and expanded IPv6 forms and, where the value fits in 32 bits, the IPv4 equivalent. IPv6-range values are handled with arbitrary-precision arithmetic (BigInt), so the full 128-bit space converts exactly without rounding.

Everything happens locally. This is a client-side tool: the conversion runs entirely in your browser using your device's own processor, and no address you type is ever sent to a server or logged. That makes it safe for internal, private or sensitive addresses from your own network, and it means the tool keeps working with no network round-trip and no dependency on any third party.

How to use it

  1. 1To convert an address to a number, type an IPv4 address (such as 192.168.10.1) or an IPv6 address (such as 2001:db8::1) into the address field.
  2. 2Read the results below, where the decimal value is shown together with the hexadecimal, binary and octal (IPv4) or expanded (IPv6) representations.
  3. 3To convert the other way, paste a plain non-negative integer into the decimal field.
  4. 4Read the reconstructed address: values up to 2^32 also produce an IPv4 form, and every value returns the compressed and expanded IPv6 forms.
  5. 5Copy whichever representation you need directly from the result.

Common use cases

  • -Storing IP addresses as integers in a database or spreadsheet, where numeric columns sort and index more efficiently than text.
  • -Reading firewall rules, packet captures or logs that render addresses in hexadecimal, octal or raw decimal.
  • -Teaching or learning how dotted IPv4 and colon-grouped IPv6 notation map onto a single underlying binary number.
  • -Decoding a shortened or obfuscated numeric link that encodes a host as one decimal value.
  • -Sanity-checking address arithmetic, such as confirming the size of a subnet range by subtracting two decimal endpoints.

Frequently asked questions

How do I convert an IP address to a decimal number?
Split an IPv4 address into its four octets and combine them as (first x 16,777,216) + (second x 65,536) + (third x 256) + fourth, which yields the 32-bit integer. This tool does it instantly for both IPv4 and IPv6 (as a 128-bit integer) and shows the result in your browser.
What is the decimal value of 192.168.0.1?
192.168.0.1 equals 3,232,235,521 in decimal. Each octet is weighted by a power of 256: 192x16,777,216 + 168x65,536 + 0x256 + 1. Enter any address into the tool to get its exact value.
Can I convert a decimal number back into an IP address?
Yes. Paste a plain non-negative integer and the tool reconstructs the address: values up to 2^32 produce an IPv4 address, and values up to 2^128 produce an IPv6 address in both compressed and expanded form.
Does IPv6 conversion lose precision?
No. IPv6 addresses are 128-bit numbers, and the tool uses arbitrary-precision (BigInt) arithmetic, so the full range converts exactly with no rounding, unlike calculators limited to 64-bit floating point.
Is my IP address sent to a server when I convert it?
No. This is a client-side tool that runs entirely in your browser. The address you type is never uploaded, stored or logged, so it is safe to convert private and internal addresses.