ETEvoraTools
IP & Network Tools

IPv6 Expander

IPv6 Expander replaces a single :: abbreviation with enough zero groups to produce eight groups, then pads each group to four hexadecimal characters. It is useful for inspecting already valid addresses. It does not perform full IPv6 validation, so expansion output must not be mistaken for proof that an input was legal.

Runs locally — files stay on your device
Quick answer

How does 2001:db8::1 expand?

It expands to 2001:0db8:0000:0000:0000:0000:0000:0001.

Expanded IPv6 displays all eight 16-bit groups

A conventional IPv6 address contains 128 bits written as eight hexadecimal groups. Expansion restores groups omitted by :: and restores leading zeroes within each group.

How it works

The text is split around ::, the existing left and right groups are counted, zero groups fill the gap to eight, and every group is padded to four characters.

Key concepts

Expansion is reversible notation

A valid compact and expanded address represent the same 128 bits.

Double colon determines the missing count

Existing groups on both sides determine how many zero groups are inserted.

When to use it

  • Inspect group boundaries.
  • Compare an address with systems requiring fixed-width notation.
  • Teach how zero compression works.

When not to use it

  • Do not use expansion as an input validator.
  • Do not expect embedded dotted IPv4 handling.
  • Do not include brackets, ports, prefix lengths, or interface zones.

Worked examples

Documentation prefix

Input
2001:db8::1
Expected output
2001:0db8:0000:0000:0000:0000:0000:0001

Five missing zero groups are restored.

Unspecified address

Input
::
Expected output
0000:0000:0000:0000:0000:0000:0000:0000

All eight groups are zero.

Loopback

Input
::1
Expected output
0000:0000:0000:0000:0000:0000:0000:0001

The final group remains one.

Common mistakes

Including URL brackets

Brackets belong to URL host syntax, not the address itself. Correction: Enter only the IPv6 address.

Expecting malformed input rejection

The implementation formats rather than fully validates. Correction: Use a strict parser first.

Treating textual equality as address equality

Several valid spellings can represent the same bits. Correction: Normalize with a canonical parser.

Best practices

  • Strip surrounding URL syntax.
  • Validate before expansion.
  • Use binary or canonical forms for comparisons.

Related operations and differences

IPv6 Compressor

Choose IPv6 Compressor when you need to compress zero groups in an IPv6 address.; use IPv6 Expander specifically for ipv6 expand.

HTTP Header Formatter

Choose HTTP Header Formatter when you need to normalize spacing in pasted HTTP headers.; use IPv6 Expander specifically for ipv6 expand.

CIDR to Range

Choose CIDR to Range when you need to calculate an IPv4 network and broadcast address.; use IPv6 Expander specifically for ipv6 expand.

cURL Command Builder

Choose cURL Command Builder when you need to build a basic cURL command from manual fields.; use IPv6 Expander specifically for ipv6 expand.

DMARC Record Generator

Choose DMARC Record Generator when you need to generate a basic DMARC policy record.; use IPv6 Expander specifically for ipv6 expand.

Fetch Request Builder

Choose Fetch Request Builder when you need to build a browser fetch request snippet.; use IPv6 Expander specifically for ipv6 expand.

Limitations and privacy

  • No full validation.
  • No embedded IPv4, zone identifier, prefix, or port processing.
  • Inputs with multiple :: markers are not reliably rejected.

The entered network data is processed locally in this browser.

Frequently asked questions

How many groups are in expanded IPv6?

Eight.

How wide is each group?

Four hexadecimal characters.

Does expansion alter the address value?

No, for valid input.

Does this prove the input is valid?

No.

References