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.
| Type | Private (RFC 1918) | |
|---|---|---|
| Dotted decimal | 192.168.1.10 | |
| Integer | 3232235786 | |
| Hex | 0xC0A8010A | |
| Binary | 11000000.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
- Paste an IP address in any supported form.
- Read the other formats.
- 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 ::.
Related tools
- IPv4 ValidatorValidate IPv4 address format and structure.
- IPv6 ValidatorValidate IPv6 address format and structure.
- Subnet CalculatorCalculate subnet masks, network ranges, and host counts.
- DNS LookupLook up DNS records for domain names.
- WHOIS LookupLook up domain registration information.
- Certificate ViewerDecode SSL/TLS certificates: paste PEM or open a .crt file to see the subject, issuer, expiry date, SANs and…
- MAC Address Vendor LookupIn Reference
- Port Number LookupIn Reference