IP address converter

Type an IPv4 or IPv6 address in any common form to see it as binary, hexadecimal, a decimal integer and more. IPv6 addresses are shown in both short and full form.

Examples: 3232235786 · 0xC0A8010A · 11000000.10101000.00000001.00001010 · 2001:0db8:0000:0000:0000:ff00:0042:8329

How to use the IP address converter

  1. Type or paste an address. Dotted IPv4, a plain integer, hex starting with 0x, dotted binary and IPv6 are all understood.
  2. Read the same address in every other form.
  3. Click any value to copy it.

How an IPv4 address becomes a number

An IPv4 address is a 32-bit number. The dotted form splits it into four bytes so people can read it. To get the integer, multiply each part by a power of 256:

192.168.1.10
= 192 × 256³ + 168 × 256² + 1 × 256 + 10
= 3,232,235,786

Databases often store addresses this way because integers are small and quick to compare and sort.

Decimal, binary and hex for each byte

DecimalBinaryHex
00000000000
10000010100A
127011111117F
1281000000080
16810101000A8
19211000000C0
25511111111FF

Short and full IPv6 addresses

An IPv6 address is 128 bits, written as eight groups of four hex digits. Two rules shorten it: leading zeros in a group can be dropped, and one run of all-zero groups can be replaced with ::. So 2001:0db8:0000:0000:0000:ff00:0042:8329 becomes 2001:db8::ff00:42:8329.

An IPv4 address can be carried inside IPv6 as an IPv4-mapped address, ::ffff:192.168.1.10, which dual-stack software uses to handle both versions with one socket.

For masks and host ranges, use the subnet calculator. For general number bases, see the binary, hex and decimal converter.

Private by design

This tool runs entirely in your web browser. Nothing you type or paste is sent to a server, logged or stored, so it is safe to use with internal addresses, configuration files and other work data. There is no sign-up and it keeps working offline once the page has loaded.

Frequently asked questions

How do I convert an IP address to binary?

Convert each of the four numbers to 8 binary digits. 192.168.1.10 becomes 11000000.10101000.00000001.00001010. This tool does it as you type.

What is the decimal value of an IP address?

The whole 32-bit address as one number. 192.168.1.10 is 3232235786.

How do I expand a shortened IPv6 address?

Paste it in. The full form shows all eight groups with four digits each.

Can I convert an integer back to an IP address?

Yes. Type the integer, such as 3232235786, and the dotted address is shown.