IP Address Converter

IPv4 ⇄ decimal, hex & binary; expand or compress any IPv6.

IPv4 ⇄ decimal, hex & binary; expand or compress any IPv6. Free and 100% private — runs entirely in your browser, nothing is ever uploaded.

About IP Address Converter

IP Address Converter is a free, browser-based tool that converts an IPv4 address between its dotted-quad, decimal (uint32) integer, hexadecimal, binary and octal forms, and converts IPv6 addresses between their expanded and compressed (the :: short form) representations while also showing the full 128-bit integer. Use it when you need to translate an IP for a config file, database column, firewall rule, or script, or to sanity-check how an address maps to a number. Everything runs entirely in your browser, so the addresses you type are never uploaded to any server.

How to use IP Address Converter

  1. Open the IP Address Converter and pick the IPv4 or IPv6 tab using the toggle at the top.
  2. For IPv4, type a dotted-quad like 192.168.0.1, a bare decimal integer like 3232235521, or a 0x-hex value like 0xC0A80001 into the input box.
  3. Read the results instantly below: dotted-quad, decimal (uint32), padded hex, per-octet binary, and per-octet octal, each on its own row.
  4. To go the other way, paste an integer or hex value and the tool reconstructs the dotted-quad address for you automatically.
  5. For IPv6, switch to the IPv6 tab and enter a compressed address like 2001:db8::1 or a full one to see the expanded form, the shortest compressed form, the 128-bit integer, and the hex.
  6. Click the copy button on any row to grab that exact representation for your config, script, or database.

Frequently asked questions

How do I convert an IP address to a decimal number?
Switch to the IPv4 tab and type the dotted-quad address (for example 192.168.0.1). The tool shows the decimal uint32 value (3232235521) on its own row, along with the hex, binary and octal forms. To reverse it, paste the decimal integer and it rebuilds the dotted-quad address.
Can it expand or compress IPv6 addresses?
Yes. On the IPv6 tab, enter either a compressed address using the :: short form (like 2001:db8::1) or a full one. The tool displays the fully expanded address, the shortest compressed form, the 128-bit integer, and the hexadecimal value at the same time.
What input formats does the IPv4 converter accept?
It accepts a dotted-quad (192.168.0.1), a bare decimal integer in the 0 to 4294967295 range, or a 0x-prefixed hexadecimal value (0xC0A80001). If the input contains a dot it is read as an address; otherwise it is treated as a 32-bit integer and converted back to a dotted-quad.
Why does the binary output have dots in it?
The binary and octal outputs are shown per octet and joined with dots so they line up with the four parts of the original dotted-quad address. Each of the four groups is an 8-bit binary value, which makes it easy to see how each octet maps to its bits.
Is my IP address sent to a server?
No. The IP Address Converter runs 100% in your browser. The addresses and integers you enter are converted locally with JavaScript and never uploaded or logged anywhere, which makes it safe for internal addresses and private network data.