Skip to content

URL Encode / Decode

Convert text to and from URL percent-encoding. Component mode escapes everything unsafe in a single query value or path segment; whole-URL mode keeps structural characters like : / ? & intact.

Text to encode
Encoded
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Ddriving%20licence%20%26%20tax

Component mode escapes everything that isn't safe in a single query value or path segment — including / ? : @ & = +. Whole URL mode leaves those structural characters alone so a complete link stays usable. All in your browser.

FAQ

Component or whole URL?
Use Component for a single value you're putting into a query string or path (it escapes / ? & = + @). Use Whole URL when you have a complete link and only want spaces and non-ASCII characters escaped.
Why did decoding fail?
A lone % that isn't followed by two hex digits is invalid percent-encoding. Encode the text first, or fix the stray %.

Related tools

Free to use, no sign-up. Calculations run in your browser — nothing you type is sent to a server. These tools are for general information only, not professional advice. See the full tool list.