By Debmedia Technologies LLP · Kolkata, India · Updated
What Is IP to Decimal Conversion?
IP to decimal conversion turns an IP address into a single whole number. An IPv4 address is really a 32-bit number. The familiar dotted form such as 192.168.1.1 is just a friendly way to write it, and the same address as one number is 3,232,235,777.
Programmers, database administrators and network engineers use the number form to store, sort and compare addresses, and to test whether an address falls inside a range. This tool converts in both directions.
How to Use This IP to Decimal Converter
- Type or paste one or more values, one per line. You can mix IPv4 addresses, IPv6 addresses and plain numbers.
- Press Convert.
- Read the decimal, hexadecimal and binary forms in the table.
- If you entered a number, the last column shows the IP address it stands for.
The Formula for IPv4
Each octet is multiplied by a power of 256 and the results are added:
| Octet | Multiplier | For 192.168.1.1 |
|---|---|---|
| First (192) | 16,777,216 | 3,221,225,472 |
| Second (168) | 65,536 | 11,010,048 |
| Third (1) | 256 | 256 |
| Fourth (1) | 1 | 1 |
| Total | 3,232,235,777 |
The 32-bit address format comes from RFC 791, the Internet Protocol specification.
IPv6 Addresses Are Much Larger
An IPv6 address is a 128-bit number, so its decimal form can have up to 39 digits. The tool uses exact big-integer maths, so nothing is rounded or lost. The hexadecimal form is easier to read, and the binary column shows the full eight-group form for IPv6.
Why Convert an IP to a Number?
- Fast database lookups. A numeric column makes range queries on IP blocks much faster than text.
- Geolocation and blocklists. Many data files store ranges as start and end numbers.
- Obfuscated links. Some web addresses use the decimal form of an IP, and converting it back shows the real host.
- Learning. It makes binary, hexadecimal and subnetting easier to understand.
Related Conversions
To see how an IPv4 address looks in IPv6, use the IPv4 to IPv6 converter. To work out the size and limits of a network, try the subnet calculator. For long IPv6 addresses, the IPv6 expander shows every group in full. Everything on this page runs in your browser, so the addresses you enter are never uploaded.
A Quick Example
Take 10.0.0.1. The first octet 10 times 16,777,216 is 167,772,160, and adding 0, 0 and 1 gives 167,772,161. To go back, divide by 16,777,216 for the first octet, then repeat with the remainder. The tool does exactly this and shows the hexadecimal result as well, which is 0x0A000001. Seeing both forms side by side is a good way to learn how addresses really work.
Frequently Asked Questions
Disclaimer: results come from live requests and can change as records and servers change. We cannot guarantee that every answer matches what every visitor sees.