Somewhere in every URL parser on Earth sits a line of code that asks an odd question before it does anything else: does the host begin with a square bracket? The answer decides which grammar the parser is reading. That line exists because of RFC 2732, a short document published in December 1999 that reserved [ and ] inside the generic URI syntax so a literal IPv6 address could stand exactly where a hostname stands. It is the smallest standard most engineers have never read, and it holds up the entire IPv6 web.
The collision it solved is older than IPv6 and simpler than it looks. A URL host is a name, and a name may contain dots and hyphens but never a colon, because the colon is where the port begins. An IPv6 address is made of almost nothing but colons. Put one where a hostname goes and the parser has no way to tell where the address ends and the port starts — http://2001:db8::1:8080/ is not a host and a port, it is a shrug.
The short version
- RFC 2732, December 1999, defines “the format for literal IPv6 Addresses in URL’s” and updates the generic URI syntax so that “[” and “]” may appear in a URI for this one reserved purpose.
- The rule is a single sentence — “To use a literal IPv6 address in a URL, the literal address should be enclosed in ‘[’ and ‘]’ characters” — and the document records that the format was already running in the IPv6 builds of Internet Explorer, Mozilla and Lynx.
- The consequence is permanent: the host component gained a second grammar,
IPv6reference = "[" IPv6address "]", so every parser must decide from the first character whether it is reading a name or an address.
A host is a name, and names cannot hold colons
By the late 1990s the URL had settled into a shape everyone could recite: scheme, colon, slashes, host, optional port, path. The host slot was written for names — example.com, www.example.org, a label, a dot, a label. Colons were spent elsewhere, on the scheme separator and on the port, which is why example.com:8080 reads unambiguously: everything after the last colon is a number.
IPv6 broke that arithmetic by using the colon as its own separator. A full address carries eight groups of hexadecimal digits; the compressed form uses :: to swallow runs of zeros. Drop one into the host slot and the last-colon rule points at the wrong place: the parser sees a port number that is actually the tail of an address, or an address that is actually a port.
The obvious fix — invent a new port separator — would have invalidated every URL ever printed, bookmarked or pasted into an email. The chosen fix was cheaper and stranger: take the two characters a host had never been allowed to use, and give them a meaning.
What RFC 2732 actually did
The document is short enough to read over coffee, and its title still carries the apostrophe of its era: “Format for Literal IPv6 Addresses in URL’s.” Its authors were Bob Hinden, co-author of the IPv6 specifications themselves; Brian Carpenter, then chairing the IETF; and Larry Masinter, a co-author of the URI syntax the document was patching. Three people who knew precisely which layer they were bending.
The mechanism is one production added to the host grammar:
host = hostname | IPv6reference
IPv6reference = "[" IPv6address "]"
That is the whole trick. A host is now either a name or a bracketed address, and the first character tells you which. The document also amends RFC 2396 so that [ and ] — previously excluded from URIs — become legal, but only for this purpose. Two characters, one reserved meaning, no new separator, no broken links.
The browsers shipped it first
Here is the part that makes RFC 2732 unusual as standards history: it did not tell the world what to build. It wrote down what had already been built. The document records that the bracketed form was already implemented in the IPv6 builds of Internet Explorer, Mozilla and Lynx — browsers that had shipped the convention while the specification was still catching up.
That order matters. The convention was not adopted because a document blessed it; the document exists because the convention worked. Publication is not adoption, and here adoption came first and the paperwork followed — the healthiest sequence a syntax rule can have, and the rarest.
The permanent branch: what the bracket cost every parser
Every implementation that splits a URL now runs two modes. If the host begins with [, the ordinary delimiters inside it are ordinary characters again: colons belong to the address, dots may appear in an embedded IPv4 tail, and the port can only be found after the closing bracket. If it does not, the old rules apply and the last colon wins.
The branch is not decorative. It has to be checked before the split, not after, because a parser that splits first has already destroyed the evidence. Unbalanced brackets have to be rejected rather than guessed at. Userinfo makes it worse: http://user:pass@[2001:db8::1]:8080/ contains five colons, one @, and exactly one correct reading.
The cost surfaces in places nobody thinks of as URL parsers. curl treats [ and ] as glob range characters, so fetching an IPv6 literal requires -g to switch the globbing off. Log processors, cache-key builders, crawlers, link filters, regexes buried in config files and the routing tables of CDNs all inherit the same fork. None of them asked for it. All of them got it.
That is what a reserved character does. It buys a syntax and it sells a permanent branch in everybody’s code.
Reserved early, used late
The document arrived in December 1999, years before IPv6 addresses reached most networks, and it says so plainly by pointing at browsers that had already shipped the format. Reserving syntax ahead of the addresses meant the first real deployments did not have to invent a convention and then argue with everyone who had invented a different one.
The bill is the mirror image of the benefit: a rule with almost no users for a decade, and universal obligations afterwards. For years the bracket was a curiosity in a specification; then it was a compatibility requirement; now it is a fact of the web, and the only people who notice it are the ones who have to parse it.
The bracket outlived its own grammar
RFC 2732 did not survive. RFC 3986, the 2005 rewrite that obsoleted both it and RFC 2396, threw out most of the old syntax — and kept the bracket. It even widened the door: the new grammar reads IP-literal = "[" ( IPv6address / IPvFuture ) "]", where IPvFuture is a placeholder for address families that do not exist yet. The reserved space was extended to cover inventions nobody had made.
The bracket then had to be reopened once more. RFC 6874, in 2013, needed to put zone identifiers inside link-local literals — the %eth0 that tells a host which interface to use — and the percent sign had to be escaped as %25 so that http://[fe80::1%25eth0]/ would survive a trip through a URI. A syntax built to avoid breaking old links spent fourteen years learning how not to break itself.
Why the bracket survives every redesign
Later documents rewrote the generic syntax, moved parameters out of the path, added schemes and retired others. The bracket stayed, because by then it had become something more useful than clean grammar: a promise that any address can appear anywhere a name can appear.
That promise is the point. It is what lets a browser, a proxy, a certificate checker and a log pipeline treat an IPv6 literal as an ordinary host with an unusual spelling. Anything that parses URLs today — routers, cache keys, crawlers, link filters, the address bar you typed into this morning — inherits the promise whether or not it ever sees an IPv6 literal in its lifetime.
Why a four-page RFC still decides what a host is
RFC 2732 adds a non-terminal, two characters and a paragraph of examples. It also decides what “host” means in every URL written since, which is a strange amount of authority for a few pages.
That is the real work of syntax standards: not the visible feature, but the reserved space that lets a future feature exist without breaking the parsers already in the field. The bracket was never the feature. It was the room the feature would need. The rent is still due, and it is paid one parser at a time, by people who will never know they are quoting a document from 1999.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






