All / Developer

URL encode and decode

Encode a component, or a whole string, and decode percent-escapes.

Encoding a full URL will also escape : and /. Use component mode for a query value.

Encode one value, or a whole string, and decode percent-escapes. Component mode is the right choice for a query value. Encoding a full URL also escapes the colon and the slashes.

  1. 1Paste the text.
  2. 2Choose encode component, encode everything, or decode.
  3. 3Copy the result.

Rate this tool

Questions

What does component mode do?
It uses encodeURIComponent, which is what query values need.
Why did decode fail?
A % sign was not followed by two hex digits.
Nothing is uploaded. Closing the tab drops the file.
It is a string function.

Related