Encode and decode URLs — plus parse any URL into its components
URL Breakdown — Parse any URL
FREQUENTLY ASKED QUESTIONS
What is URL encoding?
URL encoding replaces special characters with % followed by their hex value. Spaces become %20, & becomes %26. This ensures URLs work in all browsers and contexts.
encodeURI vs encodeURIComponent?
encodeURI encodes a full URL and leaves characters like /, ?, &, = intact. encodeURIComponent encodes everything including those characters — use it for individual parameter values.
Why are spaces sometimes + in URLs?
In HTML form submissions (application/x-www-form-urlencoded), spaces are encoded as +. In modern URL encoding (RFC 3986), spaces are %20. This tool handles both.
What is a URL hash?
The hash (#) portion of a URL is a fragment identifier. It tells the browser to scroll to a specific element on the page. It is never sent to the server — only used by the browser.