All / Developer

URL Encode

Encode text as a URL query value, or decode percent-escapes back into text.

Encode prepares a query value. Decode turns percent-escapes back into text.

  1. 1Paste the text.
  2. 2Press Encode or Decode.
  3. 3Copy the result.

About this tool

Prepare a string for a query value, or turn percent-escapes back into text. Paste the string, press Encode or Decode, and copy the result.

  • It doesn't fetch the URL
  • It doesn't change a path on a server
  • Use it before you drop a title or a query into a link

Questions

Which encoding is used?
encodeURIComponent, which escapes everything a query value needs, including & and =.
Why did decode fail?
A % sign was not followed by two hex digits.
Does it encode a whole URL?
It treats the text as one value. Paste a full address and the colon and slashes are escaped too, so encode only the part that goes in a parameter.

Ratings

No ratings yet. The average shows after 3 ratings.

Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.

Related tools