URL Encoder / Decoder
Percent-encode URLs for safe transmission, or decode encoded URLs back to readable text.
Results are for general guidance only — not professional advice. Learn more.
How to use this tool
Choose Encode to convert text into URL-safe format using encodeURIComponent, or Decode to convert a percent-encoded string back to plain text. Output updates live as you type.
This tool is useful for encoding query string parameter values, API request parameters, or any text that will be embedded in a URL.
Thanks for helping us improve this tool. 🙏
Frequently asked questions
What is URL encoding?
URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a format that can be safely transmitted. Each unsafe character is replaced by a percent sign followed by its two-digit hexadecimal code. For example, a space becomes %20 and an ampersand becomes %26.
When should I URL encode?
URL encode values when passing them as query string parameters, form data, or any part of a URL that contains special characters like spaces, &, =, #, or non-ASCII characters. This prevents the characters from being misinterpreted as URL structure.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL and preserves characters that have special meaning in URLs (like /, ?, #, &). encodeURIComponent encodes a component of a URL (like a query parameter value) and encodes all special characters including / and &. Use encodeURIComponent when encoding individual parameter values.