Break down any URL into its constituent parts. See the protocol, hostname, port, path, query parameters, and hash fragment, all parsed and displayed in an easy-to-understand format with color-coded segments.
Valid URL
https
user
pass
example.com
8080
/path/to/page
?name=John&age=30&tags=a,b
#section1
https://example.com:8080
Hello%20World!%20%40%23%24%25%5E%26*()
Hello World! @#$%^&*()
Paste or type any URL into the input field and see it instantly parsed into all its components. The tool displays: protocol/scheme (http, https, ftp, etc.), username and password (if present in the URL), hostname, port number, pathname, search/query string, and hash/fragment. Query parameters are parsed into a key-value table where you can see each parameter individually. The visual URL diagram shows which part of the URL corresponds to which component using color-coded highlighting. Use the copy buttons to copy any individual component. You can also modify components and see the reconstructed URL update in real-time.
URL parsing is essential for web developers debugging routing issues and query parameter handling, back-end engineers validating incoming URLs in API endpoints, SEO specialists analyzing and auditing URL structures for optimization, security researchers examining suspicious or obfuscated URLs, marketing professionals breaking down tracking URLs with UTM parameters, DevOps engineers configuring reverse proxies and URL rewrite rules, QA testers verifying that URL generation in applications is correct, and data analysts parsing referral URLs in analytics data. The tool is also educational for web development students learning about URL structure and the HTTP specification.
URL parsing follows the WHATWG URL Standard (used by all modern browsers) implemented via the URL constructor in JavaScript. A URL has the structure: scheme://userinfo@host:port/path?query#fragment. The scheme (protocol) identifies the protocol - common schemes include http, https, ftp, mailto, tel, and data. The authority component includes optional userinfo (username:password@), the host (domain name or IP address), and optional port. The path identifies the resource within the host. The query string starts with '?' and contains key=value pairs separated by '&'. The fragment (hash) starts with '#' and identifies a section within the resource. Query parameter values are URL-decoded automatically to show the actual values rather than percent-encoded strings.
A URL consists of: scheme (https://), authority (user:pass@hostname:port), path (/path/to/page), query (?key=value&key2=value2), and fragment (#section). Not all parts are required - a minimal URL needs just a scheme and host (e.g., https://example.com).
URL encoding (percent encoding) replaces unsafe characters with '%' followed by two hex digits. For example, spaces become %20, '&' becomes %26, and '=' becomes %3D. This ensures special characters in URLs don't interfere with the URL structure. This tool automatically decodes these for readability.
Query parameters are key-value pairs appended to a URL after a '?' character, separated by '&'. For example, in '?page=2&sort=name&order=asc', there are three parameters: page=2, sort=name, and order=asc. They're commonly used for search filters, pagination, tracking (UTM parameters), and API requests.
Transform, format, generate, and encode data instantly. Private, fast, and always free.
Browse All Tools