We use cookies to understand how the site is used and to display ads. Analytics and advertising only run after you accept. You can change your choice anytime via the footer link or your browser settings. Privacy policy

Skip to content
>_devvkit

URL Encoder/Decoder

Encode and decode URLs, query strings, and components. Parse URLs into parts.

Result

encodeURIComponent escapes all reserved characters and is correct for query parameter values. encodeURIkeeps URL structure (: / ? &) intact and is correct for whole URLs. All processing happens in your browser.

//Share this tool

Encode and decode URLs, URI components, and query strings. Parse any URL into its parts (protocol, host, path, parameters) and copy individual segments.

[x]Features
  • -Full URL encoding with encodeURI semantics
  • -Component encoding with encodeURIComponent semantics
  • -Decoding with automatic %-sequence handling
  • -URL parser breaking URLs into protocol, host, path, query, hash
  • -Query parameter table with per-parameter copy
  • -All processing stays in your browser
>Use Cases
  • >Escaping user input for safe inclusion in URLs
  • >Debugging malformed query strings in API requests
  • >Building OAuth and redirect URLs correctly
  • >Understanding how percent-encoding affects routing

Frequently Asked Questions

>What is the difference between URL and component encoding??
encodeURI keeps URL structure characters like /, ?, and & intact, while encodeURIComponent escapes everything so a value can be safely placed inside a query parameter.
>Why does my decoded output contain %20??
%20 is the encoded form of a space. It appears when the original string was encoded with a scheme that does not convert spaces to + (like encodeURIComponent does for query strings).