IPv6 Tools: Compress, Expand, Prefix
Software · 1 inputs · Free
IPv6 Tools: Compress, Expand, Prefix
Parameters
What is this tool?
IPv6 Tools: Compress, Expand, Prefix helps developers with encoding, encryption and text processing. Compresses an IPv6 address according to RFC 5952 and shows its fully expanded form, its address type (link-local, unique local, multicast, documentation, 6to4, Teredo, global unicast…) and its ip6.arpa reverse DNS name. Add a prefix length such as /64 and it works out the network address, the first and last address of the block and the exact number of addresses, with no rounding. Enter an IPv4 address to get its IPv4-mapped IPv6 and 6to4 equivalents.
📘 Common mistakes · Worked exampleCompresses an IPv6 address according to RFC 5952 and shows its fully expanded form, its address type (link-local, unique local, multicast, documentation, 6to4, Teredo, global unicast…) and its ip6.arpa reverse DNS name. Add a prefix length such as /64 and it works out the network address, the first and last address of the block and the exact number of addresses, with no rounding. Enter an IPv4 address to get its IPv4-mapped IPv6 and 6to4 equivalents.
The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.
Last reviewed: · Methodology and sources
How is it calculated?
Compresses an IPv6 address according to RFC 5952 and shows its fully expanded form, its address type (link-local, unique local, multicast, documentation, 6to4, Teredo, global unicast…) and its ip6.arpa reverse DNS name. Add a prefix length such as /64 and it works out the network address, the first and last address of the block and the exact number of addresses, with no rounding. Enter an IPv4 address to get its IPv4-mapped IPv6 and 6to4 equivalents.
Inputs
| Value | Unit | Example |
|---|---|---|
| IPv6 address, address with prefix, or IPv4 | — | 2001:db8::ff00:42:8329/64 |
What is this tool?
IPv6 Tools: Compress, Expand, Prefix helps developers with encoding, encryption and text processing. Compresses an IPv6 address according to RFC 5952 and shows its fully expanded form, its address type (link-local, unique local, multicast, documentation, 6to4, Teredo, global unicast…) and its ip6.arpa reverse DNS name. Add a prefix length such as /64 and it works out the network address, the first and last address of the block and the exact number of addresses, with no rounding. Enter an IPv4 address to get its IPv4-mapped IPv6 and 6to4 equivalents.
Common mistakes
- Using :: twice in one address. It would be impossible to tell how many zero groups each one stands for, so such a spelling is invalid and the tool rejects it.
- Shortening a single zero group to ::. The address 2001:db8:0:1:1:1:1:1 stays as it is; RFC 5952 allows :: only for two or more consecutive zero groups.
- Dropping trailing zeros. Only leading zeros in a group may be removed: the group ff00 cannot be written as ff, because ff means 00ff, which is a different address.
- Comparing addresses as text. 2001:DB8::1 and 2001:0db8:0:0:0:0:0:1 are the same address with different spellings; convert both to canonical form before comparing.
- Writing a port without brackets. In 2001:db8::1:8080 the 8080 is read as the last group of the address; to add a port, put the address in square brackets: [2001:db8::1]:8080.
- Carving a /64 into small subnets the way you would in IPv4. Stateless address autoconfiguration expects a 64-bit interface identifier; if you need more networks, ask your provider for a shorter prefix such as a /56 or /48.
- Taking the zone identifier for part of the address. In fe80::1%eth0 the %eth0 only tells that machine which interface to use; the address itself is fe80::1, and the tool drops the zone identifier.
📘 How to Shorten an IPv6 Address: RFC 5952, Prefix Maths and ip6.arpa →
Sources
- RFC 5952 — A Recommendation for IPv6 Address Text Representation ↗
- RFC 4291 — IP Version 6 Addressing Architecture ↗
- RFC 3596 — DNS Extensions to Support IP Version 6 (ip6.arpa) ↗
- RFC 3056 — Connection of IPv6 Domains via IPv4 Clouds (6to4) ↗
Key terms
Frequently Asked Questions
+IPv6 Tools: Compress, Expand, Prefix — how is it calculated?
Compresses an IPv6 address according to RFC 5952 and shows its fully expanded form, its address type (link-local, unique local, multicast, documentation, 6to4, Teredo, global unicast…) and its ip6.arpa reverse DNS name. Add a prefix length such as /64 and it works out the network address, the first and last address of the block and the exact number of addresses, with no rounding. Enter an IPv4 address to get its IPv4-mapped IPv6 and 6to4 equivalents.
+Which values are required?
IPv6 address, address with prefix, or IPv4.
+Is my data stored?
No. All calculations run in your browser; the values you enter are never sent to or stored on a server. If you press “Save”, the calculation stays only in your own browser and you can delete it at any time.
+Is it free?
Yes, all tools are free and require no sign-up.
Similar tools
Popular Tools
Free Calculators in One Place
Tax, finance, health, math and more — 500+ tools, all in one place.