Jsonic's URL Encode tool applies percent-encoding to strings, converting special characters like spaces (%20), ampersands (%26), and slashes (%2F) so they can be safely used in URL query parameters or form data. The Decode button reverses the operation. This tool uses encodeURIComponent semantics, suitable for individual parameter values.
How to URL encode or decode a string
- Select Encode or Decode mode.
- Paste your text into the left panel.
- Click Encode or Decode.
- Use Swap to reverse the operation.
- Click Copy to copy the result.
FAQ
What characters are encoded?
All characters except letters, digits, and - _ . ~ are percent-encoded. For example, spaces become %20 and & becomes %26.
What is URL encoding used for?
URL encoding (percent-encoding) ensures special characters in URLs are transmitted correctly — used in query strings, form data, and API parameters.
What is the difference between encodeURI and encodeURIComponent?
This tool uses encodeURIComponent, which encodes all special characters including /, ?, and &. Use it for individual query parameter values, not full URLs.
Is my data uploaded anywhere?
No. Encoding and decoding run entirely in your browser.