Decode + and % Sequences Together

Decode strings that mix + (form space) and %HH sequences. The usual case for query strings from HTML forms.

Part of the free URL Decoder. Runs in your browser — nothing is uploaded.

Decode + and % Sequences Together

Real query strings often mix both conventions: + for spaces from a form and %C3%A9 for UTF-8 bytes. Replace pluses, then percent-decode, to reconstruct the original text.

Worked example: Mixed form encoding

Encoded

q=caf%C3%A9+in+Pune

Decoded

q=café in Pune

Practical tip

Order matters: plus-to-space first, then decodeURIComponent. Doing it the other way can turn a decoded + into a space you did not want.

How to use this URL Decoder

  1. 1Use the live tool above — it runs entirely in your browser and never uploads your data.
  2. 2Paste the sample from the worked example, or use your own input.
  3. 3Copy the result, then adapt the same steps in your editor, script, or pipeline.

Decode + and % Sequences Together FAQs

Should I always treat + as a space?

Only when the source is form encoding or a server that follows that convention. Otherwise + is a plus.

How does URLSearchParams decode this?

new URL(url).searchParams.get(key) applies the form-decoding rules for you.