IP to Integer Converter
Convert an IP address (e.g. 192.168.0.1) to a 32-bit integer (long), or an integer to an IP address. The hexadecimal value is shown too, and all calculations happen inside your browser.
Enter an IP or integer to see the result.
0
32-bit integer
-IP address
-Hexadecimal
How to use
- Enter an IP address or a 32-bit integer.
- The integer, IP address, and hexadecimal are calculated automatically.
- Use it for database storage or log processing.
Frequently asked questions
Why convert an IP to an integer?
Storing an IP as a 32-bit integer (long) saves database space and speeds up range comparison and sorting. It is often used in log analysis and IP filtering.
What is the integer range?
An IPv4 integer ranges from 0 to 4294967295 (2 to the 32nd power − 1). Values outside this range are not converted.
Are the values I enter sent to a server?
No. All calculations happen only inside your browser, and the values you enter are never sent to or stored on any server.