URL Encode / Decode
Percent-encode URLs and query strings, or decode them.
Runs entirely in this tab. Nothing is uploaded.
Result
Frequently asked questions
What does 'component' mean?+
Component encoding also escapes / ? & and =, which is what you want for a single query parameter. Leave it off to encode a whole URL.
When do I actually need to encode a URL?+
Whenever a value going into a URL might contain a character that already has a meaning there — a space, or one of & ? # / = +. Encoding turns those into percent escapes so they are read as your data rather than as the structure of the URL.
Why is a space sometimes %20 and sometimes a plus sign?+
%20 is the correct percent-encoding for a space anywhere in a URL. The plus form is a quirk of HTML form submission and is only valid inside a query string. This tool emits %20, which is safe in both places.
What happens if I encode something twice?+
The percent signs themselves get encoded, so %20 becomes %2520 and the value breaks. If you are not sure what state a string is in, decode it once first and see whether it changes.
Tools that pair with URL Encode / Decode
- Base64 Encode / DecodeConvert text to Base64 and back, UTF-8 safe.
- JSON FormatterFormat, minify, validate and sort JSON keys.
- Hash GeneratorSHA-256, SHA-1, SHA-384 and SHA-512 digests.
- UUID GeneratorGenerate v4 UUIDs, one or fifty at a time.
- Timestamp ConverterUnix timestamps to dates and back, seconds or milliseconds.
- Case ConvertercamelCase, snake_case, Title Case and six more.