IP ↔ Decimal Converter
Convert an IPv4 address to its decimal (long integer) value, or convert a decimal value back to a dotted-quad IPv4 address. Free and private, right in your browser.
IPv4 address to decimal
Decimal to IPv4 address
Turns a dotted-decimal IPv4 address into its single 32-bit integer equivalent, and back again, handy for reading IP-range databases, decoding integer-encoded addresses from logs or APIs, or double-checking a subnet calculation by hand.
How to use it
- Type an IPv4 address (e.g. 192.168.1.1) or a decimal integer
- The tool converts it instantly in the other direction
- Copy the result for your script, database, or config file
Frequently asked questions
- How does the conversion actually work?
- Each of the four octets is treated as an 8-bit number, so the IP is really just base-256. The formula is (A × 256³) + (B × 256²) + (C × 256) + D, for example 192.168.1.1 becomes 3232235777.
- Why would I need an IP as a decimal number?
- It comes up when working with IP range databases, firewall rules, or APIs (like GeoIP lookups) that store addresses as integers for fast range comparisons instead of storing four separate octet fields.
- Does this work for IPv6 addresses?
- No, this converts IPv4 dotted-decimal addresses (like 10.0.0.1) to and from a single 32-bit integer. IPv6 uses 128-bit addresses and a different notation, so it isn't supported here.
- 1
Nothing is uploaded
The file never leaves your device. There is no server to send it to, so there is nothing to leak, log, or subpoena.
- 2
No signup, no limits
No account, no email, no daily cap, no watermark, and no paid tier waiting behind the third file.
- 3
Works offline
Load the page once and it keeps working with the network off, because all the work was always happening locally.