An IPv4 address is really a 32-bit number displayed as four octets. This tool converts an IP address into that single integer and converts an integer back into a readable IP — instantly and locally.
How to use it
- Type an IP address to see its integer, or type an integer to see the IP.
- The conversion is instant.
- Copy whichever form you need.
About IP ↔ Integer Converter
Databases and APIs often store IP addresses as integers because comparing and indexing a single number is faster and more compact than handling four octets. To work with that data — querying a range, debugging a stored value — you need to convert between the human-readable dotted form and the integer. Doing the bit math by hand is tedious. This converter handles both directions accurately and runs entirely in your browser.
FAQ
Why store an IP as an integer?
It is compact and makes range queries and sorting fast. Many databases store IPv4 as a 32-bit unsigned integer.
What is the integer for 255.255.255.255?
It is 4294967295, the largest 32-bit unsigned value.
Why convert an IP address to an integer?
Storing IPv4 addresses as 32-bit integers makes range comparisons and database lookups faster and more compact than string matching. It is common in geolocation databases and access-control lists.