%url-decoder.net

%23 in a URL

The percent-encoded hash sign (#).

Short answer

%23 is the percent-encoded hash sign (#). A # starts the fragment, which browsers never send to the server, so a hash inside a value must be written %23 or everything after it is lost to the server.

Character
#
Percent-encoded
%23
Byte value
0x23 = 35
RFC 3986 class
gen-delim
UTF-8 bytes
1

Where you will see it

  • Hex colours in parameters: color=%23ff8800.
  • Hashtags and issue references in searches: q=%23python.
  • Names that contain a hash: C%23.

What goes wrong

  • An unencoded # silently truncates the request: the server receives only the part before it. This is a common cause of 'my parameter is cut off'.
  • The fragment is client-side only. JavaScript reads it from location.hash, and it is not included in the HTTP request line or logged by servers.

Decoded examples

EncodedDecodes toWhat it isOpen in the decoder
color=%23ff8800color=#ff8800A hex colour value.Open in decoder
q=C%23%20tutorialq=C# tutorialA search for C# tutorial.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%23
JavaScriptencodeURIkept
JavaScriptURLSearchParams%23
JavaScriptescape (deprecated)%23
Pythonquote (default safe='/')%23
Pythonquote (safe='')%23
Pythonquote_plus%23
C#Uri.EscapeDataString%23
C#WebUtility.UrlEncode%23
C#HttpUtility.UrlEncode%23

Questions

Why is part of my URL missing on the server?

Everything after an unencoded # is the fragment, and browsers do not send it to the server. If the # was meant to be data, encode it as %23.

Is the part after # sent to the server?

No. The fragment stays in the browser. It is used for in-page links and by client-side code, which is also why this site stores shared tool state there.

Decode or encode your own text

Paste anything containing %23. 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