Ecommet

URL Encoder and Decoder

Percent-encode text for URLs and decode encoded URLs, with a breakdown of the URL and its query parameters.

Loading the tool…

How to use it

Choose Encode or Decode. Encode a value for one query parameter, or a whole URL to keep its slashes and question marks. Paste a full URL to see its parts.

Questions

What is the difference between encoding a value and a whole URL?

Encoding a value (encodeURIComponent) escapes every reserved character, including / ? & and =, which is what you want for one parameter. Encoding a whole URL (encodeURI) leaves those characters alone.

Should spaces be %20 or +?

In a URL path use %20. In form data and many query strings, + also means a space; tick the option when you need that.

Have a project in mind?

Tell me what you need, even in a few lines, and I’ll come back with questions or a quote.