%24 is the URL-encoded dollar sign ($).

In a URL, %24 stands for the dollar sign ($). Here is when to encode it, what it does in each part of a URL, and what every major language outputs.

Quick facts

Character$
NameDollar sign
UnicodeU+0024
UTF-8 bytes24 (1 byte)
Percent-encoded%24
Lowercase form%24 — identical meaning
Double-encoded%2524
HTML form encoding%24
RFC 3986 classReserved — sub-delimiter

What it means in a URL

The dollar sign is a sub-delimiter, allowed raw in paths and queries. Most encoders still turn it into %24; JavaScript’s encodeURI and Go’s PathEscape keep it.

RFC 3986 class: Reserved — sub-delimiter. RFC 3986 allows it raw in paths and queries, but some schemes and servers give it meaning, so encoding it as data is the safe choice.

When to encode it

Where it appearsWhat to do
Path segmentAllowed raw (encoding is also fine)
Query valueAllowed raw (encoding is also fine)
FragmentAllowed raw
Form bodyEncode

The mistake to watch for

Shell or template interpolation: a URL built in a shell script or a template language may treat $name as a variable before it ever reaches the browser.

What each language produces

Left as-is by JavaScript encodeURI(s), Go url.PathEscape(s); every other function in the 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)%24encoded
JavaScript encodeURI(s)$kept
JavaScript URLSearchParams%24encoded
Python urllib.parse.quote(s)%24encoded
Python quote(s, safe="")%24encoded
Python urllib.parse.quote_plus(s)%24encoded
PHP rawurlencode($s)%24encoded
PHP urlencode($s)%24encoded
Java URLEncoder.encode(s, UTF_8)%24encoded
Go url.QueryEscape(s)%24encoded
Go url.PathEscape(s)$kept
Ruby URI.encode_www_form_component(s)%24encoded
Ruby ERB::Util.url_encode(s)%24encoded
C# / .NET Uri.EscapeDataString(s)%24encoded

Decoding it

decodeURIComponent('%24') returns the dollar sign ($). Python: urllib.parse.unquote('%24'); PHP: rawurldecode('%24'). Paste any string into the URL decoder to decode it in your browser.

← %23 Hash (number sign)  ·  Full URL encoding table  ·  %25 Percent sign →

Common questions.

%24 is the percent-encoded form of the dollar sign ($), whose byte value is 0x24. Decoding the URL turns it back into the character.

Yes. Hex digits in percent-encoding are case-insensitive, so %24 and %24 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 %24, Python’s quote(s, safe="") gives %24, PHP’s rawurlencode gives %24.

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.