What it does
The same IPv6 address can be written several ways. A normalizer reduces it to the canonical text form so two addresses can be compared as strings, and rejects inputs that only look valid. This is the formatting step that prevents duplicate entries in logs, ACLs and configuration.
How it works
IPv6 has rules for shortening. Leading zeros in each 16-bit group are removed, and one run of zero groups is replaced by ::. The double colon may appear only once. Lowercase hex is the canonical form; uppercase is accepted on input but normalised.
RFC 5952 defines the preferred representation. It forbids shortening a single zero group when a longer run exists, and it specifies lowercase, no leading zeros and at most one ::. Following it means two tools produce the same string for the same address.
IPv4 addresses have a simpler canonical form: four decimal octets with no leading zeros. 192.168.001.001 is ambiguous and rejected by strict parsers. Some systems historically accepted octal or hex octets, which is a security footgun rather than a feature.
Zone identifiers, such as fe80::1%en0, are scoped to a local interface. They are valid in some APIs but not in DNS or URLs. A normalizer should either strip the zone or reject the address for public use, not silently keep it.
Validation is part of normalisation. A string with too many groups, an embedded IPv4 part in the wrong position, or an invalid character should be rejected rather than coerced. Coercion is how bad configuration survives review.
When to use it
- Deduplicate addresses from logs written by different libraries.
- Compare an ACL entry with a value from a configuration file.
- Produce a canonical address for a database unique constraint.
- Validate user input before storing an allowlist entry.
Glossary
- Canonical form
- The single preferred text representation defined by RFC 5952 for IPv6.
- Compression
- Replacing one run of zero groups with :: in an IPv6 address.
- Hextet
- One 16-bit group of an IPv6 address, written as four hex digits.
- Zone ID
- A suffix such as %en0 that scopes a link-local address to an interface.
- Leading zeros
- Zeros at the start of an octet or hextet, removed in canonical form.
Frequently asked questions
Are 2001:db8::1 and 2001:0db8:0:0:0:0:0:1 the same address?+
Yes. They differ only in representation. The canonical form is 2001:db8::1.
Can an IPv6 address contain :: twice?+
No. The double colon stands for one run of zeros; two occurrences would make the address ambiguous and are rejected.
Should I keep the zone ID?+
Only for link-local addresses used on a specific interface. Strip it for storage, DNS and URLs, where it is not meaningful.
Why reject 010.0.0.1?+
Leading zeros invite octal interpretation in some parsers, so the same text can mean different addresses. Strict validation rejects it.
Does normalisation change the address?+
No. It changes the text only. If the numeric value changes, the normalizer is wrong.
API & MCP
No API endpoint
This tool runs entirely in your browser. It is not available over the REST API or MCP.
Shareable result
https://100www.dev/tools/ip-normalizer?ip=2001%3A0db8%3A0000%3A0000%3A0000%3Aff00%3A0042%3A8329

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


