Task path / input to outcome
How to encode and decode URLs
- 01
Pick the right mode
Choose Encode component or Decode component for one value such as a query parameter, or Encode URI and Decode URI for a complete address. The four modes sit in the tab bar and the field labels change to match, so the expected input is always clear before you paste.
- 02
Paste the value
Use the URL component field for a single value or the Complete URI field for a whole address. The result updates live as you type, and Load sample shows both a reserved-character example and a Unicode one so you can compare the two outputs quickly.
- 03
Check the output rules
Encode component applies encodeURIComponent: structural delimiters such as /, ?, &, and = become percent escapes, while letters, digits, and marks such as !, ~, *, apostrophes, and parentheses survive. Encode URI applies encodeURI, leaving URL structure such as :, /, ?, #, and = in place. Neither mode validates a complete URL; non-ASCII text becomes UTF-8 percent escapes and spaces become %20.
- 04
Swap to round-trip
Swap moves the output into the input with the reverse mode selected. Encode a parameter, swap, and decode again: if the restored text matches the original, the value survives transport exactly as written and is safe to embed in the real URL.
- 05
Repair double-encoded values
A value encoded twice shows literal %25 sequences — %25 is the escape for the percent sign itself. Decode once to undo the second layer; if the result still contains escapes, decode again with the matching mode until plain text or a clean address appears.
- 06
Copy or download
Copy result takes the output to the clipboard for a ticket or a config file, and Download .txt saves it as toolars-url-value.txt. Clear empties both panes when you are done.