Home › Converters › URL Encode / Decode

URL Encode / Decode

URLs can only contain a limited set of characters, so spaces, symbols and non-English text have to be percent-encoded — a space becomes %20, for example. Use “component” mode for query values and form data, or “full URL” mode when encoding an entire address while keeping its structure intact.

How to use

  1. Paste the text or URL into the first box.
  2. Choose component mode for a single value (such as a search term) or full-URL mode for a whole address.
  3. Copy the converted result.

Frequently asked questions

What is the difference between component and full-URL encoding?

Component encoding (encodeURIComponent) also escapes characters like / ? & and =, which is right for a single value inside a URL. Full-URL encoding (encodeURI) leaves those structural characters alone so the address still works.

Why is a space sometimes “+” instead of %20?

In form submissions (application/x-www-form-urlencoded), a space is written as “+”. The decode button in component mode understands both forms.

Which characters never need encoding?

Letters, digits and a small set of symbols (such as - _ . ~) are “unreserved” and can appear in a URL as they are.