%7B in a URL
The percent-encoded left curly bracket ({).
Short answer
%7B is the percent-encoded left curly bracket ({) and %7D the right one (}). Curly brackets are not allowed in URLs, so they are always encoded. They appear most often when JSON is passed in a query string and in URL templates such as /users/{id}.
- Character
- {
- Percent-encoded
- %7B
- Byte value
- 0x7B = 123
- RFC 3986 class
- unsafe
- UTF-8 bytes
- 1
Where you will see it
- JSON in query strings: filter=%7B%22status%22%3A%22open%22%7D.
- URL template placeholders that were never filled in: /users/%7Bid%7D.
- Output of every standard encoding function: none of them leave a curly bracket as it is.
What goes wrong
- A path such as /users/%7Bid%7D in your logs usually means a URL template placeholder (RFC 6570 syntax) was sent without being replaced by a value.
- Browsers percent-encode { and } in a path when they parse a URL, so a link written with literal brackets is sent as %7B and %7D.
- Unbalanced %7B and %7D after decoding is a quick sign that a JSON value was cut short, often by an unencoded & or # earlier in the value.
Decoded examples
| Encoded | Decodes to | What it is | Open in the decoder |
|---|---|---|---|
| filter=%7B%22status%22%3A%22open%22%7D | filter={"status":"open"} | A JSON object in a query parameter. | Open in decoder |
| /users/%7Bid%7D | /users/{id} | A URL template placeholder that was never filled in. | Open in decoder |
How each language encodes {
Outputs below come from running each function, not from documentation. “Kept” means the function leaves the character as it is. Compare every character across every function.
| Language | Function | Output for { |
|---|---|---|
| JavaScript | encodeURIComponent | %7B |
| JavaScript | encodeURI | %7B |
| JavaScript | URLSearchParams | %7B |
| JavaScript | escape (deprecated) | %7B |
| Python | quote (default safe='/') | %7B |
| Python | quote (safe='') | %7B |
| Python | quote_plus | %7B |
| C# | Uri.EscapeDataString | %7B |
| C# | WebUtility.UrlEncode | %7B |
| C# | HttpUtility.UrlEncode | %7b |
Questions
Why does my URL show %7Bid%7D?
It is a placeholder from a URL template, {id}, that was sent as-is instead of being replaced with a real value. Check the code that builds the URL from the template.
Can I put JSON in a URL?
Yes, if the whole JSON string is percent-encoded as one value. For anything large, send it in a request body instead, because servers limit how long a URL can be.
Decode or encode your own text
Paste anything containing %7B. It runs in your browser; nothing is uploaded.
Related characters
%22
double quote
%22 is the percent-encoded double quotation mark (").
%3A
colon
%3A is the percent-encoded colon (:).
%2C
comma
%2C is the percent-encoded comma (,).
All percent-encoded characters · Full percent-encoding table · What is URL encoding?
Behaviour checked against RFC 3986, the WHATWG URL Standard and MDN. Updated November 4, 2026
Tools
URL Encoder
Percent-encode a value, a full URL or form data, with strict RFC 3986 and +/%20 options.
URL Parser
Split a URL into scheme, host, port, path, query and fragment, with checks for common problems.
Query String Parser
Edit query parameters as a table, rebuild the string, or export it as JSON.
Base64 Encode/Decode
Convert text to Base64 and back, including the URL-safe Base64URL alphabet.
HTML Encode/Decode
Escape text to HTML entities and decode entities back to text.
JWT Decoder
Read a JSON Web Token's header and payload and check its expiry.