IP Formatter

Format and validate IP addresses.

Convert an IP address between formats. Paste an IPv4 address, an IPv6 address, an integer or a hex value, and see the address in dotted decimal, integer, hex, binary and dotted octal, its IPv4-mapped IPv6 form and its reverse-DNS (PTR) name. IPv6 addresses are shown compressed (RFC 5952) and fully expanded, with zone IDs kept. Useful for databases, firewall rules and log analysis.

TypePrivate (RFC 1918)
Dotted decimal192.168.1.10
Integer3232235786
Hex0xC0A8010A
Binary11000000.10101000.00000001.00001010
Octal (dotted)0300.0250.01.012
IPv4-mapped IPv6::ffff:192.168.1.10
IPv4-mapped IPv6 (hex)::ffff:c0a8:10a
Reverse DNS (PTR)10.1.168.192.in-addr.arpa

Common use cases

  • Convert an IP stored as an integer in a database
  • Expand or compress an IPv6 address
  • Get the PTR name for setting up reverse DNS

How to use

  1. Paste an IP address in any supported form.
  2. Read the other formats.
  3. Copy the one you need.

FAQ

Why store IPs as integers?

An IPv4 address fits in 32 bits, so integers save space and make range searches fast.

What is RFC 5952?

The standard way to write IPv6 compactly: lowercase, leading zeros dropped and the longest run of zero groups replaced with ::.