Parse any URL into its components, or encode and decode strings for safe use in URLs.
%20.encodeURI encodes a complete URL but leaves structural characters like : / ? # & = intact. encodeURIComponent encodes a single component (like a query parameter value) and also encodes those structural characters, making it safe to embed inside a URL.? character, separated by & symbols. Example: ?name=John&age=30 has two parameters. They are used to pass data to web servers without needing a form submission.# character, e.g., #section-2. It is processed by the browser only — it is never sent to the server. It is typically used to scroll to a specific section of a page or for client-side routing in single-page apps.Break any URL into its component parts: protocol, hostname, port, path, query string parameters (displayed as key-value pairs), and fragment. Also encodes and decodes URL components and builds URLs from parts you supply. Useful for debugging web requests, understanding redirect targets, and working with API query strings.