DevTools

URL Encoder/Decoder

Percent-encode or decode URLs and query components.

Plain text

0 chars

Encoded

About URL Encoder/Decoder

Encode text for safe use in a URL, or decode a percent-encoded value back to plain text. Pick the mode that matches what you are working with — a whole URL, or one value inside it.

Component or full URL?

Encoding a component escapes everything that is not a plain character, including / ? : & and =, which is what you want for a single query value. Encoding a full URL leaves those structural characters intact so the address still works. Using the wrong one is the usual cause of a link that breaks at the first ampersand.

Frequently asked questions

Why is a space sometimes %20 and sometimes +?
Percent-encoding uses %20. The + convention comes from HTML form submission, where it is valid inside a query string only. This tool produces %20, which is safe everywhere.
What does “URI malformed” mean?
The input contains a % that is not followed by two hexadecimal digits — usually a literal percent sign that was never encoded, or text that was decoded once already.

Related tools