Tools / URL encoder

URL encoder / decoder

Encode or decode URL text locally. Choose component mode for a query value or path segment; choose full URL mode to preserve URL separators.

More free checks

Run a full security scan or speed test on your site, or try a related tool.

Related free tools

See all free tools →

When to use each mode

How to use it

  1. Choose URL component when you are encoding a single value, such as a search term or a redirect target that goes inside a query string.
  2. Choose Full URL when you have a complete address with spaces or non-English characters and want it to stay a working link.
  3. Paste the text and press Encode or Decode, then copy the result.

Examples

Frequently asked questions

What is the difference between the two modes?

Component mode (JavaScript’s encodeURIComponent) also encodes the characters that give a URL its structure, such as / ? & = #. Full URL mode (encodeURI) leaves those alone. Encoding a whole URL in component mode turns it into one long value, which is what you want only when that URL is itself a parameter.

Why is a space encoded as %20 and not +?

%20 is the standard percent-encoding of a space and is valid anywhere in a URL. The + form comes from HTML form submissions and means a space only inside a query string.

Why does decoding show an error?

The input contains a % that is not followed by two hexadecimal digits, or a byte sequence that is not valid UTF-8. Check for a literal percent sign that should have been encoded as %25.

Is my input sent anywhere?

No. Encoding and decoding run in your browser, so tokens or personal data in a URL are not sent to Qcramai.