URL Encoder & Decoder

Percent-encode text for safe use in a URL, or decode an encoded URL back to plain text.

Last updated

Encoded or decoded text will appear here.
Copied

How to URL-encode or decode text

  1. Paste the text or URL.
  2. Choose Component for a single value such as a query parameter, or Full URL for a whole address.
  3. Click Encode or Decode, then Copy result.

Component vs. full URI encoding

encodeURIComponent escapes every character that isn't valid in a single URL segment — including & ? = / : — which is what you want when encoding a query parameter value or a piece of a path. encodeURI assumes you're encoding an entire URL already and leaves structural characters like : / ? & = untouched, only escaping spaces and unsafe characters.

All processing happens locally using the browser's built-in encoding functions — nothing is sent to a server.

Questions about URL encoding

What is URL encoding?

Replacing characters that aren’t allowed in web addresses with % and their code, such as a space with %20 and & with %26. It’s also called percent-encoding.

Should I choose Component or Full URL?

Component for a piece that goes inside a URL, like a search term, because it escapes & ? = and /. Full URL for an entire address, which keeps those characters working.

Why is a space sometimes %20 and sometimes +?

%20 is the standard encoding. A + for spaces comes from HTML form submissions and only means a space in query strings.

How do I read an encoded link?

Paste it and click Decode to turn %20, %3A and the rest back into normal characters.

☕ Support toolcrate