URL Encode / Decode

Encode or decode URLs and query string parameters.

How to Use

  1. 1Paste your URL or text into the input field.
  2. 2Select Encode to percent-encode special characters, or Decode to convert them back.
  3. 3View the result in the output area.
  4. 4Copy the result to use in your code or browser.

Frequently Asked Questions

Why do URLs need to be encoded?

URLs can only contain a limited set of ASCII characters. Characters like spaces, ampersands, and non-ASCII letters must be percent-encoded so browsers and servers interpret the URL correctly.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URI but preserves characters like colons, slashes, and question marks. encodeURIComponent encodes everything except letters, digits, and a few special characters, and is meant for individual query-parameter values.

Can I encode non-English characters in a URL?

Yes. This tool fully supports UTF-8, so characters from any language are correctly percent-encoded and decoded.