Compress, expand and analyse IPv6 addresses and prefixes
IP Address Converter
Switch an IP address between every format databases, logs and code use.
Loading tool…
How to use ip address converter
Type an address in any format: dotted, integer, 0x hex, binary or IPv6.
Read every other format, with the address type.
Copy the form you need.
What this tool does
- Reads dotted decimal, plain integers, 0x hex, 0b or dotted binary, dotted hex and IPv6.
- Writes integer, hex, dotted hex, dotted octal, binary, IPv4-mapped IPv6, the 6to4 prefix and reverse DNS.
- Handles IPv6 integers up to 2^128 exactly.
- Labels private, loopback, documentation and other special ranges.
How the result is verified
Conversions use exact BigInt arithmetic, and the integer form can be pasted back in to give the same address.
Frequently asked questions
Why store an IP as an integer?
Integers sort and compare correctly and make range checks a simple between query, which text addresses do not.
What is an IPv4-mapped IPv6 address?
An IPv4 address written inside IPv6 as ::ffff:a.b.c.d. Dual-stack servers show IPv4 clients this way.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Network, broadcast, host range and masks for any IPv4 CIDR
The smallest set of CIDR blocks that covers an address range
Divide an IPv4 or IPv6 network into equal smaller subnets