URL Encode / Decode

Percent-encode URLs & params

FreeNo sign-upNothing uploaded

Field guide

About the URL Encode / Decode

URLs can only contain certain characters, so spaces and symbols must be percent-encoded (a space becomes %20). Encode text for use in links and query strings, decode messy URLs back into readable text, and inspect each part of a URL including its query parameters.

  1. Paste a URL or some text.
  2. Press Encode or Decode.
  3. Use the URL breakdown to see the host, path and each query parameter.
Questions

Frequently asked

What is URL encoding?

Also called percent-encoding, it replaces unsafe characters with % followed by two hex digits. For example, a space is %20 and & is %26.

What is the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ), so it is right for single parameter values. encodeURI keeps characters like / ? & that structure a full URL.

Why do I see + instead of spaces?

HTML forms encode spaces as +. Tick “Treat + as space” when decoding form data.

Is what I type sent to a server?

No. The tool runs entirely in your browser and there's no server behind it, so what you type never leaves your device and nothing is stored. You can check: it keeps working if you go offline after the page has loaded.