%url-decoder.net

%26 in a URL

The percent-encoded ampersand (&).

Short answer

%26 is the percent-encoded ampersand (&). In a query string, & separates one parameter from the next, so an ampersand that belongs to a value, such as Tom & Jerry, must be written as %26 or the value is cut short.

Character
&
Percent-encoded
%26
Byte value
0x26 = 38
RFC 3986 class
sub-delim
UTF-8 bytes
1

Where you will see it

  • Names containing ampersands in search terms: q=AT%26T.
  • A query string nested inside a value: next=%2Fsearch%3Fa%3D1%26b%3D2.
  • Output of encodeURIComponent; encodeURI leaves & alone.

What goes wrong

  • Using encodeURI on a parameter value leaves & untouched, so the server sees the value end at the ampersand. Use encodeURIComponent for values.
  • In HTML source, a literal ampersand is written &. That is an HTML entity, not percent-encoding: the HTML parser turns & into & before the browser reads the URL. Use the HTML encoder for entities.

Decoded examples

EncodedDecodes toWhat it isOpen in the decoder
q=AT%26Tq=AT&TA search for AT&T.Open in decoder
next=%2Fsearch%3Fa%3D1%26b%3D2next=/search?a=1&b=2A URL with its own query string, nested in a parameter.Open in decoder

How each language encodes &

Outputs below come from running each function, not from documentation. “Kept” means the function leaves the character as it is. Compare every character across every function.

LanguageFunctionOutput for &
JavaScriptencodeURIComponent%26
JavaScriptencodeURIkept
JavaScriptURLSearchParams%26
JavaScriptescape (deprecated)%26
Pythonquote (default safe='/')%26
Pythonquote (safe='')%26
Pythonquote_plus%26
C#Uri.EscapeDataString%26
C#WebUtility.UrlEncode%26
C#HttpUtility.UrlEncode%26

Questions

How do I put an ampersand in a URL parameter?

Encode it as %26. With JavaScript, encodeURIComponent('Tom & Jerry') returns Tom%20%26%20Jerry. Building the URL with URLSearchParams does it for you.

Is %26 the same as &?

No. %26 is percent-encoding for URLs. & is an HTML entity for the ampersand in HTML text and attributes. They solve different problems and are decoded by different parsers.

Decode or encode your own text

Paste anything containing %26. It runs in your browser; nothing is uploaded.

Related characters

All percent-encoded characters · Full percent-encoding table · What is URL encoding?

Behaviour checked against RFC 3986, the WHATWG URL Standard and MDN. Updated November 4, 2026