URL encode and decode Encode a component, or a whole string, and decode percent-escapes. Details Encode one value, or a whole string, and decode percent-escapes. Component mode is the right choice for a query value. Encoding a full URL also escapes the colon and the slashes. Category: Developer Page: /tools/url-encoder Text: /tools/url-encoder.txt Limits Encoding a full URL will also escape : and /. Use component mode for a query value. Steps 1. Paste the text. 2. Choose encode component, encode everything, or decode. 3. Copy the result. Questions What does component mode do? It uses encodeURIComponent, which is what query values need. Why did decode fail? A % sign was not followed by two hex digits. Nothing is uploaded. Closing the tab drops the file. It is a string function.