Dev TooloraLocal dev tools

> Network

IPv6 Address Converter

Compress, expand and classify one IPv6 address, with its hex, integer, binary and PTR forms.

Runs locallyWorks offline
Back to results
Input

Source data

Input format
Choose explicitly: 32 hex digits and a decimal integer are not guessed from the digits.
Output

Result

Your result will appear here.

Tool guide

About this tool.

An IPv6 address is 128 bits, usually written as eight groups of four hexadecimal digits separated by colons. RFC 4291 allows several text forms of the same address: leading zeroes may be dropped, one run of zero groups may become ::, and the last 32 bits may be written as a dotted IPv4 address.

RFC 5952 picks one canonical form: lowercase, no leading zeroes, the longest run of two or more zero groups shortened to ::, the first run on a tie, and ::ffff:a.b.c.d for IPv4-mapped addresses.

This converter reads one address and lists the compressed and expanded forms, hex, decimal integer, binary, the ip6.arpa PTR name and the address type.

  • Normalize addresses from logs and configuration files before comparing them.
  • Build the ip6.arpa name for a reverse DNS record.
  • Recognize documentation, unique local, link-local, multicast, Teredo, 6to4 and NAT64 addresses, and read the IPv4 address they embed.
  • Turn a 128-bit integer or 32 hex digits from a database back into an address.

Paste one IPv6 address or apply a sample. Leave Input format on Address for colon notation, or choose 32 hex digits or Integer for a numeric value.

Run the conversion. Malformed input produces an error that names the problem rather than a partially parsed address.

Read the compressed form, the expanded form with all 32 digits, hex, integer, binary in 8 groups of 16 bits, the PTR name and the address type. Mapped, NAT64, 6to4 and Teredo addresses also show the IPv4 address they carry.

Copy or save ipv6-conversion.txt. Use IPv6 Subnet Calculator for prefixes and IPv6 ULA Generator for a new private prefix.

  • 2001:0db8:0000:0000:0000:ff00:0042:8329 → compressed 2001:db8::ff00:42:8329, type Documentation.
  • 2001:db8:0:0:1:0:0:1 → 2001:db8::1:0:0:1; the first of two equal zero runs becomes ::.
  • ::ffff:c000:0201 → ::ffff:192.0.2.1, IPv4-mapped, with IPv4 192.0.2.1.
  • [FE80::1%eth0] → fe80::1%eth0, Link-local, zone eth0.
  • 2001:0:4136:e378:8000:63bf:3fff:fdd2 → Teredo server 65.54.227.120, client 192.0.2.45, port 40000.
  • Integer 281473902969345 → ::ffff:192.0.2.1.

  • The raw input limit is 128 characters; outer whitespace is ignored.
  • Address input accepts any RFC 4291 text form in any case: full, ::-compressed or with a dotted IPv4 tail, optionally in brackets and with a %zone of 1 to 64 letters, digits, dots, underscores, tildes or hyphens.
  • Hex input needs exactly 32 hexadecimal digits with an optional 0x prefix. Integer input is a decimal integer from 0 through 2^128 - 1.
  • A /prefix, a port, a hostname or a URL is rejected. Use IPv6 Subnet Calculator for CIDR blocks.
  • The type names a special-purpose block; it does not prove the address is assigned, reachable or routed.
  • This is local arithmetic: no DNS lookup, ping, network scan or server request is performed.

FAQ

Questions about IPv6 Address Converter

Which zeros become :: in the compressed form?

RFC 5952 shortens the longest run of two or more zero groups. When two runs have the same length, the first one becomes ::, and a single zero group is always written as 0.

Can I paste an address with brackets or a %zone?

Yes. Wrap the address in brackets as in a URL, and add a zone such as %eth0 for link-local addresses. The zone is kept in the compressed and expanded forms but left out of the PTR name.

Does it accept CIDR notation?

No. Enter one address without a /prefix. Use IPv6 Subnet Calculator for network boundaries and prefix sizes.

How is the address type decided?

The type is the most specific match from the IANA special-purpose list: for example 2001:db8::/32 is Documentation, fc00::/7 Unique local, fe80::/10 Link-local and ff00::/8 Multicast with its scope.

Continue with

IPv6 ULA GeneratorGenerate a correctly grouped local fd00::/8 site prefix with a random 40-bit Global ID.IPv4 ConverterRead dotted decimal, integer, hex or binary IPv4 and compare all four representations.