>_
%20

URL Encode / Decode

Percent-encode or decode URLs and query parameters, and break any URL into its parts and query string — in your browser.

Runs locally — your input never leaves this page.

URL parser

Enter a full URL (with https://) to see its parts.

How to use

  1. Paste text or a URL and choose Encode or Decode.
  2. “Component” mode (encodeURIComponent) escapes everything except letters, digits and -_.!~*'() — use it for individual query values.
  3. “Full URL” mode (encodeURI) keeps URL structure characters like / ? & = intact.
  4. The URL parser below shows the protocol, host, path, hash and every query parameter in a table.

FAQ

What is the difference between encodeURI and encodeURIComponent?

encodeURI is meant for a whole URL and leaves reserved characters such as /, ? and & alone. encodeURIComponent encodes those too, which is what you want for a single parameter value.

Why does a space become %20 here but + elsewhere?

%20 is the standard percent encoding. + for spaces comes from HTML form encoding (application/x-www-form-urlencoded). Enable “Space as +” if you need that format.

Report a bug or suggest a feature →