← All Tools

URI Template Expander

Expand a URI template per RFC 6570 (Level 1–4) with your own variables. Works fully in your browser — paste a template, fill in values, copy the expanded URI.

Template

Variables

Detected from the template. For lists use comma-separated (e.g. a,b,c); for key-value pairs use k1=v1,k2=v2.

Expanded URI

Operator Reference

OpExpansionExample
{var}Simple string (percent-encoded){foo}hello%20world
{+var}Reserved expansion (keeps /?:#){+path}/foo/bar
{#var}Fragment, prefixed with #{#frag}#section
{.var}Label, prefixed with .{.ext}.json
{/var}Path segment, prefixed with /{/a,b}/a/b
{;var}Path-style (;name=value){;x,y};x=1;y=2
{?var}Query, prefixed with ?{?q,p}?q=a&p=1
{&var}Query continuation (&){&n}&n=1

Modifiers: {var:3} truncates to 3 characters. {var*} explodes lists/maps into separate keys.