Developer Tools
URL Encode / Decode
URL encode and decode strings (percent-encoding). Picks encodeURIComponent or encodeURI. Parses URLs.
Files processed in your browser
Your files never leave your device. No upload, no servers.
About URL Encode / Decode
URL Encode / Decode applies percent-encoding to a string so it survives being placed inside a URL — and reverses the operation. Switch between Encode and Decode with one click; choose between encodeURIComponent (safe for individual query parameter values) and encodeURI (safe for full URLs that already contain valid path and query separators). Paste a URL and the tool also breaks it down into its protocol, host, pathname, and parsed query parameters.
Encoding runs in your browser using the standard JavaScript URL primitives. Nothing is uploaded, logged, or stored, so it's safe for anything you'd be uncomfortable sending to a third-party server — debug strings from internal logs, customer-supplied search queries, deep links from production, or test URLs with sensitive parameters.
The encodeURIComponent option is what you want most of the time: it escapes everything that isn't safe inside a single value, including the URL separators (?, &, =, /, +, #). Use encodeURI when you have an entire URL that's already structured correctly and you only want to escape the characters that are unsafe to leave raw — like spaces or non-ASCII characters in the path.
Common uses include building a query string by hand, debugging why a URL parameter is being misinterpreted on the server, decoding tracking parameters from a marketing link to see what they actually contain, generating a clean URL after constructing it from user input, and inspecting redirect URLs from OAuth callbacks.