IP to Decimal Converter
Free online IP to Decimal Converter. No sign-up needed, and it runs in your browser.
Convert an IP address to a decimal number, hex or binary — and a number back to an IP. IPv4 and IPv6, one or many at once.
About IP to Decimal Converter
Turns IP addresses into the plain numbers behind them and back again: a 32-bit integer for IPv4 or a 128-bit integer for IPv6, plus hex, and for a single IPv4 address binary and dotted octal too. Paste a whole list to convert it in one go. Developers and admins use it for database columns, IP range checks, firewall rules and decoding numbers found in logs.
How to use IP to Decimal Converter
- Type or paste IP addresses or numbers in the box, one per line; commas and semicolons also separate them.
- Choose what Numbers become: IPv4 if small enough, else IPv6, or Always IPv6 for 128-bit values.
- Read the decimal and hex forms as you type; a single IPv4 address also shows binary and dotted octal.
- Click Copy results to copy the table for a spreadsheet, script or database query.
How your data is handled
Everything is converted in your browser on your device. The addresses and numbers you paste aren't sent to any server and aren't stored.
Limits and accuracy
- IPv4 parts with leading zeros, such as 010, are read as decimal 10, though some older systems treat them as octal.
- Shortened IPv4 forms such as 10.1 aren't accepted; write all four parts.
- With several lines the table shows decimal and hex only; enter one address to see binary and octal.
Questions and answers
How is an IPv4 address turned into a number?
Each of the four parts is one byte, so the first is multiplied by 16,777,216, the second by 65,536 and the third by 256, then the fourth is added. For example, 192.168.1.10 becomes 3232235786.
Can I convert a number back to an IP address?
Yes. Type a decimal number, hex starting with 0x or binary starting with 0b, and it shows the IP address. Numbers up to 4,294,967,295 become IPv4 unless you choose Always IPv6.
Why store IP addresses as numbers?
Numbers sort correctly and make range checks simple: an address is inside a range when its number falls between the start and the end. That's why many databases, geolocation files and firewall tools store IPs as integers.