IP Address Converter

Runs in your browser

Convert an IP address between decimal, integer, binary, hexadecimal and (for IPv6) expanded/compressed forms. All conversions happen locally.

Enter dotted-decimal (e.g. 8.8.8.8) or an integer (e.g. 134744072).

How to read the results

Each representation encodes the same address. The integer form is convenient for databases and range math; binary helps visualize subnet boundaries; hex is common in low-level tooling. IPv6 shows both the fully expanded and RFC 5952 compressed forms.

Common errors

  • An octet above 255, wrong number of dots, or unsupported characters are rejected with a specific message.
  • An integer outside the 32-bit range (0–4294967295) for IPv4, or the 128-bit range for IPv6, is rejected.
  • IPv6 with more than one :: or too many groups is rejected.

All conversions run in your browser using BigInt for safe large-number math. Learn about our data sources →

Frequently asked questions

What integer does an IPv4 address map to?
The 32-bit unsigned value of the four octets. For example 192.168.1.1 is 3232235777.
Can I convert an IPv6 address to a number?
Yes. IPv6 is a 128-bit value, shown here as a decimal BigInt and hexadecimal.
Is octal supported?
Octal is shown for IPv4 as an optional representation. Be careful: some systems interpret octal octets differently, which is why our validator rejects leading zeros in normal input.