IP to decimal converter for IPv4 and IPv6 addresses

Convert an IP address to a single decimal number, with its hexadecimal and binary forms, or convert a decimal number back to an IP address. IPv4 and IPv6 are supported, and everything runs in your browser.

  • Free
  • No sign-up
  • Runs in your browser

Loading the tool…

Runs in your browser — nothing you enter is sent to our servers.

How to use IP to Decimal Converter

  1. Open the tab "IP to decimal" and type an IPv4 address such as 192.168.1.1, or an IPv6 address such as ::1.
  2. Read the decimal value and the hexadecimal and binary forms. IPv4 gives a 32-bit number and IPv6 a 128-bit number.
  3. Open the tab "Decimal to IP" to go the other way. A number up to 4,294,967,295 becomes an IPv4 address, a larger one becomes IPv6.
  4. Tick "Always return IPv6" if you want an IPv6 result even for a small number.

Features

  • IPv4 to 32-bit decimal, hexadecimal and binary
  • IPv6 to 128-bit decimal, hexadecimal and binary
  • Decimal to IPv4 when the number is at most 4,294,967,295, otherwise IPv6
  • Option to always return IPv6
  • Rejects short and octal or hexadecimal IPv4 forms such as 127.1 or 0x7f.0.0.1 and explains why
  • Shows the formula for IPv4
  • Runs entirely in your browser. Nothing is sent to a server

Examples

InputResult
192.168.1.1Decimal 3232235777, hex 0xC0A80101.
8.8.8.8Decimal 134744072.
10.0.0.1Decimal 167772161, hex 0x0A000001.
4294967295255.255.255.255
4294967296::1:0:0 — This number is larger than the highest IPv4 value, so it is read as IPv6.
::1Decimal 1.

Limitations

  • IPv4 input must be in the standard four-part dotted-decimal form. Short forms such as 127.1 and octal or hexadecimal forms such as 0x7f.0.0.1 are rejected.
  • A decimal number is read as IPv4 if it is at most 4,294,967,295, unless "Always return IPv6" is ticked.
  • The converter changes the notation of an address. It does not check whether the address is in use, reachable or assigned.
  • Negative numbers, decimals and numbers above the 128-bit maximum are not valid.

Learn more

An IPv4 address is really a 32-bit number. The familiar dotted form splits it into four bytes, each written in decimal. To get the single decimal value, treat the four parts as digits in base 256: a × 256³ + b × 256² + c × 256 + d. For 192.168.1.1 that is 192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1, which gives 3,232,235,777.

Programs and databases often store addresses as integers because they are compact and easy to sort and to compare against ranges. Hexadecimal is the same number in base 16, and it makes the four bytes easy to see: C0 A8 01 01 is 192, 168, 1 and 1.

IPv6 addresses have 128 bits, so their decimal form is very large. The same idea applies, with the address read as one long number.

Be careful with unusual spellings. Some systems accept forms such as 127.1, 0177.0.0.1 or 0x7f.0.0.1 for the same address, which has been used to slip past simple filters. This tool accepts only the standard four-part form so that the result is never ambiguous.

Frequently asked questions

How do I convert an IP address to decimal?

Multiply each part by a power of 256 and add the results. For a.b.c.d the value is a × 256³ + b × 256² + c × 256 + d.

What is 192.168.1.1 in decimal?

It is 3232235777, which is 0xC0A80101 in hexadecimal.

How do I convert a decimal number back to an IP address?

Use the tab "Decimal to IP". Numbers up to 4,294,967,295 give an IPv4 address and larger numbers give IPv6.

Why is 127.1 rejected?

Some software accepts short, octal or hexadecimal forms and reads 127.1 as 127.0.0.1. Those forms are also used to disguise addresses, so this tool accepts only the standard form.

Is my input sent anywhere?

No. The conversion runs in your browser.

Sources

Last reviewed: October 1, 2026