Free IP Address to Integer Converter
Convert between an IPv4 address and its 32-bit integer form, instantly and entirely in your browser.
IP address → Integer
Integer → IP address
How to convert an IP address to an integer
-
1
Convert an IP to an integer
Type a dotted-decimal IPv4 address on the left to get its decimal and hexadecimal integer form instantly.
-
2
Convert an integer to an IP
Type a whole number from 0 to 4294967295 on the right to get the matching IPv4 address.
-
3
Copy the result
Click "Copy" next to either output to grab the converted value.
Example use cases
Storing IPs efficiently in a database
Many schemas store IPv4 addresses as a single 32-bit integer column instead of a string, for faster range queries and less storage.
Checking IP range membership
Convert start/end IPs to integers to quickly check whether an address falls within a numeric range, e.g. for allow-lists or geo-IP lookups.
Debugging firewall or router configs
Some low-level tools and configs represent addresses as decimal or hex integers rather than dotted notation — convert between the two to read them.
Frequently asked questions
How is an IPv4 address converted to an integer?
Each of the four octets is treated as an 8-bit number, and they're combined into a single 32-bit unsigned integer: (octet1 × 16777216) + (octet2 × 65536) + (octet3 × 256) + octet4.
What range of integers is valid?
Since a 32-bit unsigned integer covers every possible IPv4 address, valid input is any whole number from 0 (0.0.0.0) to 4294967295 (255.255.255.255).
Does this support IPv6?
No, this tool only handles IPv4 addresses (four dot-separated octets). IPv6 uses 128-bit addresses and a different conversion.
What is the hexadecimal value used for?
The same integer shown as hex (e.g. 0xC0A80101) is handy when a firewall rule, router config, or low-level network tool expects the address in hex rather than decimal.
Is my data uploaded anywhere?
No. Every conversion happens locally in your browser using JavaScript — nothing you enter is sent to a server.