Parse URL Components Online
A URL is a structured string composed of distinct parts — scheme, authority, path, query string, and fragment — each with its own syntax rules and meaning. When building URL handling code, debugging redirects, or analyzing links from web scrapes, being able to decompose a URL into its constituent parts quickly is invaluable. devtoolkit.sh's URL Parser takes any URL and breaks it down into labeled components: protocol, hostname, port, pathname, search string, and hash fragment. The Query Params Parser goes further and splits the query string into individual key-value pairs displayed as a clean JSON object, decoding all percent-encoded characters in the process. The URL Decode tool handles any remaining encoded segments. Together, these tools let you fully inspect a URL's structure — useful when debugging OAuth redirect URIs, verifying that deep links encode the correct parameters, or understanding why a particular link is routing to an unexpected location.
Break down a URL into its individual components using the browser URL API.
Parse a query string into a key-value table with decoded values.
Decode percent-encoded URL strings back to readable text.
FAQ
- What are the main components of a URL?
- A URL consists of: scheme (https), authority (hostname and optional port), path (the resource path), query string (key=value parameters after ?), and fragment (anchor after #). Each component has specific encoding rules.
- How do I extract all query parameters from a URL?
- Paste the full URL into the Query Params Parser. It automatically locates the query string portion and returns all parameters as a JSON object with decoded keys and values.
- What is the URL fragment and how is it different from a query parameter?
- The fragment (the part after #) identifies a section within the page and is never sent to the server. Query parameters (after ?) are sent with every request. Fragments are processed entirely by the browser.