URI Template Builder (RFC 6570)
Paste a URI Template and the variable values and generate the expanded URI. Supports level 1-4 (path, query, fragment).
—
RFC 6570 URI Templates: the eight operators
A URI Template describes a family of addresses with markers in braces, and RFC 6570 defines exactly how each marker expands. It is what the GitHub API returns in its link fields, and what lets a client assemble the right URL without concatenating strings. The page expands the template with the values you supply, applying each operator's encoding rules.
The difference that matters most is between the plain marker and the plus operator. The plain one encodes reserved characters, so a slash inside the value becomes its percent-encoded form and does not separate path segments. The plus one preserves reserved characters, which suits a variable holding a whole path. Confusing the two is the source of broken URLs or, worse, path traversal when the value comes from a user.
The other six operators add punctuation automatically: dot for a label, slash for a path segment, semicolon for a path parameter, question mark to open the query, ampersand to continue it, and hash for a fragment. Each knows which separator to use between values and whether to write the variable name — and that is exactly what saves assembling the URL by hand.
Frequently asked questions
What do the modifiers do?
What happens to a variable with no value?
Can you go the other way?
Related Tools
Git Commit Template Generator
Commit message template in Conventional Commits style (feat/fix/docs/...), with scope, breaking change and issue reference.
HTTP Request Builder
Build an HTTP request (URL, method, headers, body) and generate snippets in cURL, fetch, axios, Python requests and Go net/http. Everything in your browser.
Data URI Parser
Break a data: URI into mediatype, parameters, base64 flag and payload. Shows decoded byte size of the content.
IPv6 Shortener / Expander
Expand an IPv6 to its full form, or shorten using :: notation.
Discord Embed Builder
Build Discord embeds (title, description, color, fields, footer, thumbnail) and export the JSON ready for webhook. Includes preview. Everything in your browser.
Authorization Header Parser
Identify the scheme (Basic, Bearer, Digest) of an Authorization header and extract the payload, decoding Basic from base64.