%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}
NameRight curly brace
UnicodeU+007D
UTF-8 bytes7D (1 byte)
Percent-encoded%7D
Lowercase form%7d — identical meaning
Double-encoded%257D
HTML form encoding%7D
RFC 3986 classNot 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 appearsWhat to do
Path segmentEncode
Query valueEncode
FragmentEncode
Form bodyEncode

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).

FunctionOutput
JavaScript encodeURIComponent(s)%7Dencoded
JavaScript encodeURI(s)%7Dencoded
JavaScript URLSearchParams%7Dencoded
Python urllib.parse.quote(s)%7Dencoded
Python quote(s, safe="")%7Dencoded
Python urllib.parse.quote_plus(s)%7Dencoded
PHP rawurlencode($s)%7Dencoded
PHP urlencode($s)%7Dencoded
Java URLEncoder.encode(s, UTF_8)%7Dencoded
Go url.QueryEscape(s)%7Dencoded
Go url.PathEscape(s)%7Dencoded
Ruby URI.encode_www_form_component(s)%7Dencoded
Ruby ERB::Util.url_encode(s)%7Dencoded
C# / .NET Uri.EscapeDataString(s)%7Dencoded

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.