For Developers
Encode query parameters before appending them to API requests. Prevent broken URLs caused by spaces, special characters, or non-ASCII input.
Paste any URL or string and instantly encode it for safe transport, or decode percent-encoded URLs back to plain text. Supports both encodeURI and encodeURIComponent. No signup, no ads, runs entirely in your browser.
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world%26lang%3Den%26filter%3Dcaf%C3%A987 characters · encodeURIComponentEncode query parameters before appending them to API requests. Prevent broken URLs caused by spaces, special characters, or non-ASCII input.
Decode percent-encoded URLs from logs and error reports to quickly understand what values were passed to an endpoint.
Encode international characters and spaces in URLs to ensure links work correctly across all browsers and platforms.
All encoding happens in your browser using native JavaScript. Your URLs never touch any server. Works completely offline.
Encodes all characters except letters, digits, and - _ . ! ~ * ' ( ). Use for individual query string values.
hello world → hello%20worldPreserves URL structure — does not encode / ? & = # : @. Use for complete URLs where structure must be kept.
https://x.com/a b → https://x.com/a%20bThe most common characters that need encoding when used inside query string values.
space→%20 · &→%26 · =→%3D · +→%2BNon-ASCII characters like accented letters and CJK characters are encoded as UTF-8 byte sequences.
café → caf%C3%A9 · 日本 → %E6%97%A5%E6%9C%ACAlways encode user-provided values in query strings. A raw & or = will break parameter parsing.
?q=rock&roll → ?q=rock%26rollWhen embedding a full URL as a parameter value, use encodeURIComponent to encode the entire inner URL.
?redirect=https%3A%2F%2Fexample.comURL encoding (percent-encoding) converts characters that are not allowed in a URL into a format that can be transmitted. For example, spaces become %20 and & becomes %26.
encodeURIComponent encodes all special characters including /, ?, &, and =. encodeURI preserves full URL structure and only encodes characters that are truly invalid in a URL.
No. All encoding and decoding runs locally in your browser using built-in JavaScript functions. Your data never leaves your device.
Use URL encoding when passing user input as query string parameters, building API requests, or embedding URLs inside other URLs to prevent parsing issues.
Yes. Paste the full query string or URL and the tool will decode the entire string at once, including all encoded characters.