IP to Integer Converter
Convert an IPv4 address to its 32-bit integer and back.
IPs as plain numbers
An IPv4 address is really just a 32-bit number wearing dotted decimal notation. Converting to the raw integer makes addresses easy to store in a single column and compare with simple maths.
The address 192.168.1.1 is the integer 3,232,235,777. This converter goes both ways, so you can turn a stored integer back into the familiar dotted form just as easily.
Two-way and private
The conversion runs in your browser, so nothing you enter is uploaded.
Frequently Asked Questions
Why convert an IP to an integer?
Databases and range checks often store IPv4 addresses as a single 32-bit number, which is compact and easy to compare.
How is it calculated?
Each octet is weighted by its position: the first times 16,777,216, then 65,536, then 256, then the last.
Does it go both ways?
Yes. Enter a dotted IP for the integer, or an integer for the dotted IP.
Browse the full set of free, private, in-browser tools.