%25 is the URL-encoded percent sign (%).

In a URL, %25 stands for the percent 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%
NamePercent sign
UnicodeU+0025
UTF-8 bytes25 (1 byte)
Percent-encoded%25
Lowercase form%25 — identical meaning
Double-encoded%2525
HTML form encoding%25
RFC 3986 classNot allowed in URLs

What it means in a URL

The percent sign introduces every escape sequence, so a literal percent in data must itself be encoded as %25. If a string is encoded twice, every % becomes %25 — that is where %2520 comes from.

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

Double-encoding: encoding a value that was already encoded turns %20 into %2520. Decode once more, then find the layer adding the second pass.

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)%25encoded
JavaScript encodeURI(s)%25encoded
JavaScript URLSearchParams%25encoded
Python urllib.parse.quote(s)%25encoded
Python quote(s, safe="")%25encoded
Python urllib.parse.quote_plus(s)%25encoded
PHP rawurlencode($s)%25encoded
PHP urlencode($s)%25encoded
Java URLEncoder.encode(s, UTF_8)%25encoded
Go url.QueryEscape(s)%25encoded
Go url.PathEscape(s)%25encoded
Ruby URI.encode_www_form_component(s)%25encoded
Ruby ERB::Util.url_encode(s)%25encoded
C# / .NET Uri.EscapeDataString(s)%25encoded

Decoding it

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

← %24 Dollar sign  ·  Full URL encoding table  ·  %26 Ampersand →

Common questions.

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

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

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.