URL Encode / Decode
Encode and decode URLs, query parameters and text snippets directly in your browser. The tool shows both encodeURI and encodeURIComponent output, making it easy to choose the right format for full URLs, path segments and parameter values.
How to Use
Paste a URL or text
Enter a full URL, query string or text containing reserved characters.
Encode or decode
Encode shows both full-URL and component-safe output. Decode converts percent-encoded text back to readable form.
Copy or export
Copy a specific result, inspect URL components and export the processed value when needed.
Common Use Cases
Query parameters
Safely encode values that contain spaces, ampersands or non-ASCII characters before adding them to a query string, so search terms and filters survive the round trip.
API debugging
Decode percent-encoded URLs copied from logs, browser dev tools or webhooks to read the original parameters, tokens and redirect targets.
Sharing links
Encode UTM tags, multilingual slugs and emoji so the link stays valid when pasted into chat apps, emails or QR codes.
Form and OAuth flows
Build correctly escaped redirect_uri and state values for OAuth and webhook callbacks without breaking the URL structure.
FAQ
When should I use encodeURIComponent?
Use encodeURIComponent for query parameter values and path fragments because it encodes reserved URL separators such as &, = and ?. Use encodeURI for a complete URL when you want those separators preserved.
Why do spaces sometimes become + instead of %20?
The + form comes from the application/x-www-form-urlencoded format used by HTML form submissions, while %20 is the standard percent-encoding used in URL paths and query strings. This tool shows the standard %20 output.
Is data sent to a server?
No. Encoding, decoding and URL analysis run entirely in your browser, so the URLs and text you paste never leave your device.