Codxing

URL Encoder

Percent-encoding both ways, plus a breakdown of the URL parts.

Loading tool…

About URL Encoder

URL Encoder handles percent-encoding in both directions, with a choice between encoding a whole URL or a single component. It also breaks a valid URL into its parts — protocol, host, path and each query parameter — which is often the quickest way to see why a link is malformed.

How to use it

  1. Choose encode or decode, and component or whole URL.
  2. Paste your text.
  3. Read the result and, for full URLs, the parsed breakdown underneath.

Questions

What is the difference between the two modes?

Component mode escapes / ? & = # as well, which is what you want for a single query value. Whole-URL mode leaves those structural characters alone so the URL still works.

Why is a space sometimes %20 and sometimes +?

%20 is correct percent-encoding. The + form comes from HTML form submission and is only valid in a query string, never in a path.

What does "invalid percent-escape" mean?

A % in the input is not followed by two valid hex digits — usually a literal percent sign that should itself have been encoded as %25.

URL Encoder is free and runs entirely in your browser. No account, no upload, no watermark, no limit on use.

More in Encode