%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 | $ |
|---|---|
| Name | Dollar sign |
| Unicode | U+0024 |
| UTF-8 bytes | 24 (1 byte) |
| Percent-encoded | %24 |
| Lowercase form | %24 — identical meaning |
| Double-encoded | %2524 |
| HTML form encoding | %24 |
| RFC 3986 class | Reserved — 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 appears | What to do |
|---|---|
| Path segment | Allowed raw (encoding is also fine) |
| Query value | Allowed raw (encoding is also fine) |
| Fragment | Allowed raw |
| Form body | Encode |
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).
| Function | Output | |
|---|---|---|
| JavaScript encodeURIComponent(s) | %24 | encoded |
| JavaScript encodeURI(s) | $ | kept |
| JavaScript URLSearchParams | %24 | encoded |
| Python urllib.parse.quote(s) | %24 | encoded |
| Python quote(s, safe="") | %24 | encoded |
| Python urllib.parse.quote_plus(s) | %24 | encoded |
| PHP rawurlencode($s) | %24 | encoded |
| PHP urlencode($s) | %24 | encoded |
| Java URLEncoder.encode(s, UTF_8) | %24 | encoded |
| Go url.QueryEscape(s) | %24 | encoded |
| Go url.PathEscape(s) | $ | kept |
| Ruby URI.encode_www_form_component(s) | %24 | encoded |
| Ruby ERB::Util.url_encode(s) | %24 | encoded |
| C# / .NET Uri.EscapeDataString(s) | %24 | encoded |
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.