← All text tools

IPv6 Address Expander and Compressor

Expand a shortened IPv6 address to its full eight group form and compress it to the shortest legal form and the RFC 5952 canonical form.

  • Free
  • No sign-up
  • Works on any device

About IPv6 Address Expander and Compressor

IPv6 addresses can be written in many ways, which makes them hard to compare in logs and configuration files. This tool turns any valid address into its full form with eight groups of four digits, into the shortest legal form, and into the canonical form recommended by RFC 5952. The rule is that only one run of zero groups may become a double colon, so 2001:db8:0:0:1:0:0:1 has two equal runs and the first one is shortened, giving 2001:db8::1:0:0:1. Paste several addresses to convert a whole list.

How to use IPv6 Address Expander and Compressor

  1. Paste one IPv6 address per line, in any style.
  2. Read the full, shortest and canonical forms in the table.
  3. Copy the form that your documentation or tool expects.

Why use this tool?

Also known as

Frequently asked questions

What is the difference between the shortest and the canonical form?

The shortest form may use a double colon for a single zero group. RFC 5952 says to use it only for two or more groups, so the canonical text is sometimes one character longer.

Does it accept addresses with an IPv4 ending?

Yes. An address such as ::ffff:192.0.2.1 is read correctly and the last 32 bits are shown as two hex groups in the output.

Why was my address reported as not valid?

Common causes are more than one double colon, a group with more than four hex digits, a character that is not a hex digit, or too many or too few groups.

Is IPv6 Address Expander and Compressor free?

Yes. IPv6 Address Expander and Compressor on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools