IP Address to Integer Converter Online

Convert an IPv4 or IPv6 address to its decimal, hex and binary form, and back again, right in your browser.

The IP Address to Integer Converter runs entirely in your browser. Addresses and numbers you type are never uploaded or sent to ArrayKit.

Open the CIDR Calculator

About IP Address to Integer Converter

IP Address to Integer Converter turns any IPv4 or IPv6 address into its decimal, hexadecimal and binary equivalents, and converts a plain number back into a readable IP address. It auto-detects the address family from the input — dotted-quad IPv4 or colon-separated IPv6 — so you never have to pick a mode manually when converting an address. Switch direction to type a decimal or 0x-prefixed hex integer and get back the shortest valid IPv4 or IPv6 form, with the correct '::' compression applied automatically for IPv6. It is handy for reading raw IP values out of database columns, firewall logs, or binary protocol dumps, and for building bitmask, subnet, or access-control logic that expects a numeric address. Built for backend engineers, network admins, and anyone debugging packet captures. Everything runs locally in your browser — no address is uploaded.

Features

How to use the IP Address to Integer Converter

  1. Keep the IP → Integer tab selected
  2. Type an IPv4 address like 192.168.1.1 or an IPv6 address like 2001:db8::1
  3. Read the Decimal, Hex, and Binary values for the address
  4. Switch to Integer → IP and type a decimal or 0x hex number to get the address back

Example

Input

192.168.1.1

Output

Decimal: 3232235777
Hex: 0xC0A80101

Each IPv4 octet is packed into a 32-bit unsigned integer, then shown as hex and binary too.

Common errors & troubleshooting

Frequently asked questions

What does the IP Address to Integer Converter calculate for IPv4?
It packs the four octets into a single unsigned 32-bit integer — the same value databases and routing tables often store — and also shows it as hexadecimal and binary.
Does the IP Address to Integer Converter support IPv6?
Yes. IPv6 addresses are converted to and from a 128-bit decimal, hex, and binary value, with correct '::' zero-compression when formatting the address.
How does the tool know whether my address is IPv4 or IPv6?
It checks for a colon in the input. An address with colons, like 2001:db8::1, is treated as IPv6; a dotted address, like 192.168.1.1, is treated as IPv4.
Can I convert an integer back into an IP address?
Yes. Switch to Integer → IP and enter a decimal or 0x-prefixed hex number. Values up to 4294967295 become an IPv4 address; larger values become IPv6.
Does the IP to Integer converter upload the addresses I type?
No. Every conversion happens locally in your browser using standard JavaScript math — the address or number you enter never leaves your device.
Why does the binary value have so many digits?
IPv4 binary output is always 32 bits and IPv6 binary output is always 128 bits, zero-padded, so you can see exactly how the address maps into its raw bit pattern.

Related tools

All ArrayKit tools