Encode or decode URLs and query parameters in one click. Supports full URL and component encoding.
URL encoding (percent encoding) replaces special characters with a % sign followed by two hexadecimal digits. For example, a space becomes %20 and & becomes %26. This ensures URLs are transmitted correctly over the internet.
encodeURI encodes a complete URL and preserves characters like :, /, ?, &, = and #. encodeURIComponent encodes individual components (like query values) and also encodes those reserved characters. Use encodeURIComponent for query string values.
URLs can only contain a limited set of safe ASCII characters. Characters like spaces, Chinese characters, emojis or symbols like & and = must be encoded so they are not mistaken for URL structure delimiters.
The unreserved characters that do not need encoding are: A–Z, a–z, 0–9, hyphen (-), underscore (_), period (.) and tilde (~). All other characters should be percent-encoded in URL components.
Paste the encoded URL into this tool with the Decode tab selected and click Convert. %20 decodes to a space, %2F to a forward slash /, %26 to &, and so on.