VantlyAll tools
All text tools

URL encode and decode

Percent-encode text so it survives being put in a URL, or decode one you have been handed.

For a single parameter value. This encodes & = ? and / as well, which is what you want inside a query string.

0 characters

Result

0 characters

Questions

Which of the two encode options do I want?
If you are encoding one value to drop into a query string, use the first. If you have a whole URL with slashes and question marks that should stay as they are, use the second. Using the wrong one is the commonest reason a link breaks.
Why did decoding fail?
A stray percent sign that is not followed by two hex digits is invalid, and the browser refuses rather than guessing. Usually it means the text was encoded twice, or truncated.