IP to Integer Converter
Choose a conversion, then enter an IP address or decimal digits. When converting an integer to an address, choose IPv4 or IPv6 first.
Results
When to convert an IP address to an integer
Use the decimal form when sorting addresses numerically or passing them to a system that stores IPs as integers. The converter reads the 32 IPv4 bits or 128 IPv6 bits as one unsigned number and preserves every digit.
For example, 192.0.2.1 converts to 3221225985. Choose Integer to IPv4 and enter that number to get the original address back.
Frequently asked questions
Why do I need to choose an IP version when converting back?
The same number can represent either address type. For example, 1 becomes 0.0.0.1 as IPv4 or ::1 as IPv6.
What integers can I enter?
Use decimal digits without signs or separators. IPv4 accepts 0 through 4294967295. IPv6 accepts 0 through 340282366920938463463374607431768211455.
For location and network details in your application, see the IPWho geolocation API.