Skip to content
Rankora
Free · runs in your browser

URL Encoder / Decoder

Encode text so it can sit inside a URL, or decode a URL full of %20 and %C3%A9. The tool flags double encoding and invalid UTF-8.

Privacy and cost

This tool runs in your browser. What you type or paste is not sent to our servers and it costs nothing to use.

How it works

  1. Pick Encode or Decode and paste your text or URL.
  2. When encoding, choose the mode: component (one value), full URL (keeps : / ? & = #) or form (space becomes +).
  3. Copy the result; the analysis shows the number of %XX sequences, decoding layers and any double encoding.

Example

"café crème & thé" in component mode becomes caf%C3%A9%20cr%C3%A8me%20%26%20th%C3%A9. Conversely, https://example.com/caf%25C3%25A9 is double-encoded: two decoding passes give https://example.com/café.

What the result means

Percent-encoding replaces every disallowed byte with %XX, in UTF-8: é becomes %C3%A9. A %25 followed by two hex digits means a "%" was itself encoded, so the URL was encoded twice and will not point at the intended page.

Common problems this tool helps with

  • A double-encoded URL (%2520) often returns a 404 or an empty page.
  • Encoding a whole URL in component mode destroys the / ? & = and breaks the link.
  • An unencoded parameter value containing & or # cuts the query in the wrong place.
  • A stray % or an invalid UTF-8 sequence makes decoding fail.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps the characters that structure a URL (: / ? & = #). encodeURIComponent encodes them too, so it is meant for a single value or path segment.

Should a space be %20 or +?

%20 is valid anywhere in a URL. The + only means a space in a query string or form data (application/x-www-form-urlencoded).

Is my text sent to a server?

No. Everything runs in your browser.