Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

This free tool allows you to convert any IP address to Decimal format, providing quick and accurate IP to Decimal conversions for networking purposes. This tool is built and maintained by TestMu AI (formerly LambdaTest).
IP to Decimal converts an IPv4 or IPv6 address into its decimal number representation. This is useful for databases, low-level networking, and comparing or sorting IP ranges without dotted or colon formats.
Decimal IPs make it easy to compare ranges, store values in databases, and perform numeric operations. Network tools and security scripts often rely on decimal formats for sorting, filtering, and range checks.
For the steps either side of this one, see Decimal to IP, Binary to IP, and Hex to IP. Track the test runs that consume these values in TestMu AI Test Manager.
An IPv4 address is four 8-bit octets written in dotted-quad notation. Converting it to a decimal integer means treating those four octets as a single 32-bit number, where each octet is weighted by its position:
decimal = (octet1 × 2563) + (octet2 × 2562) + (octet3 × 256) + octet4
Take 192.168.1.1 as a worked example. That expands to (192 × 16,777,216) + (168 × 65,536) + (1 × 256) + 1, which totals 3,232,235,777. Because every octet holds a value from 0 to 255, the full IPv4 space maps onto the integer range 0 through 4,294,967,295.
Most conversion errors come from input that looks valid but is not, or from storing the result in a column that cannot hold it. These are the cases worth checking before you trust a converted value:
It turns IPv4 or IPv6 addresses into their integer representation. This is helpful for IP range math, ACL comparisons, database storage, and networking scripts.
Yes. Compressed IPv6 (with ::) and embedded IPv4 are parsed into the correct 128-bit integer value.
You can use our Decimal to IP tool to reverse the conversion for both IPv4 and IPv6 integers.
No. The conversion runs locally in your browser; TestMu AI does not log your IP data.
Yes. Paste multiple lines and the tool will output each IP on its own line in decimal form, ready to copy or download.
255.255.255.255 converts to 4,294,967,295, which is the highest value a 32-bit unsigned integer can hold. The lowest is 0.0.0.0, which converts to 0.
For IPv4, a 4-byte unsigned integer column such as MySQL INT UNSIGNED is enough and is the most storage-efficient option. A signed INT overflows above 2,147,483,647, so addresses starting at 128 and higher would wrap to negative numbers.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance