URL Encode / Decode
Free online URL encoder and decoder tool. Percent-encode special characters in strings to make them safe for use in URLs and query parameters. Decode URL-encoded strings (%XX sequences) back to readable text. Supports both encodeURIComponent (for query parameter values) and encodeURI (for full URLs). Handles Thai characters, spaces, special symbols, and Unicode. Swap input and output with one click. Commonly used by web developers working with APIs, query strings, and HTTP requests.
encodeURIComponent — encodes everything except letters, digits, and - _ . ~ · Best for query parameter values
how to use
- 1.Enter your string or URL in the input field
- 2.Click Encode to percent-encode special characters
- 3.Click Decode to convert %XX sequences back to text
- 4.Choose encodeURIComponent for query values or encodeURI for full URLs
frequently asked
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL, preserving characters like / and ?. encodeURIComponent encodes everything except letters, digits, and - _ . ~.
Why do spaces become %20?
Spaces are not allowed in URLs. %20 is the percent-encoded representation of a space character (ASCII code 32).