JA Technology Solutions
URL Encode/Decode
Percent-encode or decode URLs and query parameters. Component and full-URL modes.
URL Encode/Decode
Percent-encode or decode URLs and query parameter values. Component mode encodes all special characters for safe embedding in query strings; full-URL mode preserves the scheme, host, and path structure. Critical when debugging OAuth callbacks, webhook URLs, redirect chains, or any API that passes structured data through URL parameters. Handles spaces, ampersands, Unicode, and other characters that break URLs when left unencoded.
Learn more ↓
Loading interactive explorer...
Why URLs Need Encoding at All
URLs have a small set of characters that are reserved because they mean something structural: /, ?, #, &, =, :, and a handful of others. Any time a reserved character needs to appear as literal data — inside a query parameter value, a path segment, or an anchor — it has to be percent-encoded so the URL parser knows it is data and not structure. Spaces become %20, ampersands become %26, plus signs become %2B, and non-ASCII characters become multi-byte UTF-8 sequences. Forgetting to encode a single ampersand inside a query value silently chops the URL in half, which is how mystery bugs are born.
Component Mode vs. Full-URL Mode
JavaScript has two built-in encoding functions that confuse everyone: encodeURIComponent() and encodeURI(). This tool wraps both with plain-English names. Component mode (the safer default) encodes everything that is not alphanumeric or one of a few “safe” characters — the right choice when you are encoding a query parameter value, a path segment, or any data that needs to survive being stuffed into a URL. Full-URL mode preserves URL structure characters like / and ? so an already-well-formed URL does not get mangled — the right choice when you want to fix only the parts that need fixing without breaking the rest. Pick component mode if you are unsure.
URL Handling in APIs and Integrations
Integration bugs involving URL encoding show up constantly: signed URLs that break because the signature covers one encoding and the caller sends another, webhook payloads that silently drop data with literal ampersands, OAuth callbacks that fail because the state parameter was double-encoded, and REST APIs that confuse + (form-encoded space) with %20 (query-encoded space). I build API clients, webhook handlers, and integration layers that get URL handling right consistently. Learn about integration services, explore custom application development, or get in touch.
All tools run entirely in your browser. Your data never leaves your machine. Need help? Ask James.