%7D is the URL-encoded right curly brace (}).
In a URL, %7D stands for the right curly brace (}). Here is when to encode it, what it does in each part of a URL, and what every major language outputs.
Quick facts
| Character | } |
|---|---|
| Name | Right curly brace |
| Unicode | U+007D |
| UTF-8 bytes | 7D (1 byte) |
| Percent-encoded | %7D |
| Lowercase form | %7d — identical meaning |
| Double-encoded | %257D |
| HTML form encoding | %7D |
| RFC 3986 class | Not allowed in URLs |
What it means in a URL
Not allowed raw; encoded as %7D, the pair to {.
RFC 3986 class: Not allowed in URLs. It is outside the characters RFC 3986 permits, so it must always be percent-encoded.
When to encode it
| Where it appears | What to do |
|---|---|
| Path segment | Encode |
| Query value | Encode |
| Fragment | Encode |
| Form body | Encode |
The mistake to watch for
JSON in a query parameter that is only partly encoded, so the closing brace arrives raw and a strict server rejects the request.
What each language produces
Every function in this table encodes it. Output for the single character, UTF-8 input, tested against the real runtimes (see the encoding comparator for your own strings).
| Function | Output | |
|---|---|---|
| JavaScript encodeURIComponent(s) | %7D | encoded |
| JavaScript encodeURI(s) | %7D | encoded |
| JavaScript URLSearchParams | %7D | encoded |
| Python urllib.parse.quote(s) | %7D | encoded |
| Python quote(s, safe="") | %7D | encoded |
| Python urllib.parse.quote_plus(s) | %7D | encoded |
| PHP rawurlencode($s) | %7D | encoded |
| PHP urlencode($s) | %7D | encoded |
| Java URLEncoder.encode(s, UTF_8) | %7D | encoded |
| Go url.QueryEscape(s) | %7D | encoded |
| Go url.PathEscape(s) | %7D | encoded |
| Ruby URI.encode_www_form_component(s) | %7D | encoded |
| Ruby ERB::Util.url_encode(s) | %7D | encoded |
| C# / .NET Uri.EscapeDataString(s) | %7D | encoded |
Decoding it
decodeURIComponent('%7D') returns the right curly brace (}). Python: urllib.parse.unquote('%7D'); PHP: rawurldecode('%7D'). Paste any string into the URL decoder to decode it in your browser.
← %7C Vertical bar (pipe) · Full URL encoding table · %7E Tilde →
Common questions.
%7D is the percent-encoded form of the right curly brace (}), whose byte value is 0x7D. Decoding the URL turns it back into the character.
Yes. Hex digits in percent-encoding are case-insensitive, so %7d and %7D mean the same thing. RFC 3986 recommends uppercase, and mixing cases can make caches and analytics count one URL as two.
Use your language’s encoder on the value: encodeURIComponent in JavaScript gives %7D, Python’s quote(s, safe="") gives %7D, PHP’s rawurlencode gives %7D.
More from the toolkit.
About this page. Written and maintained by Sri Murugan Systems, the developer of urlencodedecode.com. Character classes follow RFC 3986 §2; language outputs were generated by running each function in its real runtime.