Skip to content

IP Address Converter

Convert IPv4 addresses between dotted, integer, hex and binary, and expand or compress IPv6.

IPv4 as dotted, integer, hex (0x…) or 32-bit binary — or any IPv6 address.

Result

IPv4 (dotted decimal)

192.168.1.10

Integer
3232235786
Hexadecimal
0xC0A8010A
Binary
11000000.10101000.00000001.00001010
IPv4-mapped IPv6
::ffff:192.168.1.10

Runs in your browser — nothing you enter is sent to a server.

How the IP Address Converter works

An IPv4 address is a 32-bit number usually written as four bytes in decimal. Enter it in any form — dotted, a plain integer, hexadecimal or 32 binary digits — to see all the others and its IPv4-mapped IPv6 form. For IPv6, the converter shows both the full 8-group form and the shortest standard form (RFC 5952).

Formulas

IPv4 as an integer

a × 256³ + b × 256² + c × 256 + d

IPv6 compression

drop leading zeros; replace the longest run of two or more zero groups with ::

Examples

192.168.1.10

= 3,232,235,786 = 0xC0A8010A = 11000000.10101000.00000001.00001010.

2001:db8:0:0:0:0:2:1

Compresses to 2001:db8::2:1.

Frequently asked questions

Why convert an IP to an integer?

Databases and firewalls often store addresses as numbers so ranges can be compared quickly.

Can :: appear twice?

No — it would be ambiguous how many zero groups each stood for.

What is an IPv4-mapped IPv6 address?

A way to write an IPv4 address inside IPv6: ::ffff: followed by the IPv4 address.

Number Base Converter

Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, of any size.

Converters

MAC Address Formatter

Reformat a MAC address with colons, hyphens or Cisco dots, and see whether it's multicast or locally administered.

Network Tools

User Agent Parser

Read the browser, version, operating system and device type from a user-agent string.

Network Tools