What is URL Parser?
URL Parser — A URL Parser is a free tool that breaks down any URL into its individual components: protocol, hostname, port, path, query parameters, and fragment.
Loading your tools...
Break down any URL into its individual components — protocol, hostname, port, pathname, query string parameters, and hash fragment — following the WHATWG URL Standard. Decode percent-encoded query values, inspect UTM campaign tags, debug API endpoints and OAuth callback URLs, and validate redirect chains.
URL Parser: Paste any URL to instantly see it broken down into protocol, host, port, pathname, search parameters, and hash fragment. Each query parameter is displayed as a key-value pair. Useful for debugging redirects and API endpoints.
Loading Tool...
URL Parser — A URL Parser is a free tool that breaks down any URL into its individual components: protocol, hostname, port, path, query parameters, and fragment.
Paste any full URL (https://example.com/path?key=value#section) or relative URL (/path?query=data) into the parser input field.
Review the parsed URL components: protocol/scheme, hostname, port, pathname, origin, search string, and hash fragment displayed in a structured breakdown.
Inspect each query parameter as a decoded key-value pair in the parameter table — percent-encoded values are automatically decoded to readable text.
Verify UTM tags, API parameters, redirect URLs, or OAuth state values are correctly structured before deployment or campaign launch.
Copy individual components or the full parsed breakdown for use in documentation, bug reports, or team communication.
Debugging broken links, 301/302 redirect chains, and malformed URL structures in web applications
Auditing UTM campaign tracking parameters (utm_source, utm_medium, utm_campaign) for Google Analytics and marketing attribution accuracy
Inspecting OAuth 2.0 callback URLs, authorization code parameters, and state values during authentication flow debugging
Validating API endpoint URL structures, query string formats, and encoded parameter values before production deployment
SEO auditing of canonical URLs, hreflang URLs, and sitemap link structures for crawl consistency
A URL has up to 9 components in the standard pattern:
scheme://username:password@host:port/path?query#fragment
______/ ______/ ______/ __/ __/ __/ ___/ ______/
| | | | | | | |
https user pass host port path query fragmentEach component:
Google's Urchin Tracking Module (UTM) is the universal standard for marketing attribution. The five UTM parameters:
| Parameter | Purpose | Example values |
|---|---|---|
utm_source *required | Where the traffic came from (referrer) | google, facebook, newsletter, partner_name |
utm_medium | Marketing medium / channel type | cpc, email, social, organic, banner |
utm_campaign | Specific campaign name | summer_sale, product_launch, q4_promo |
utm_content | A/B test variant or specific ad creative | banner_top, button_red, variant_a |
utm_term | Paid keyword (mostly for Google Ads) | running+shoes, blue+widget |
Best practice: lowercase consistently (utm tags are case-sensitive!), no spaces (use + or _), keep concise. Audit your UTM strategy quarterly — inconsistent naming destroys Google Analytics reports.
?name=alice?tag=red&tag=blue — server may treat as array?tags[]=red&tags[]=blue?user[name]=alice&user[age]=30?tags=red,blue,green — common in REST APIs?filter={"status":"active"} (after URL-encoding)?active=true or shorthand ?active?key= — usually means "reset to default"The hash (#) is special — it's the only URL part that never goes to the server. The browser keeps it client-side. Common uses:
#section-3 — scroll to element with that ID#/users/123 — old client-side routing (pre-history API)#settings — track active tab without round-trip to server#access_token=xyz) so they never reach server logs%2520 in your URL = space was encoded twiceutm_source entries — analytics tracks only one? with no params is technically valid but indicates a bugww.example.com vs www.example.com/page vs /page/ — SEO-relevant duplicatesExample.com works but creates inconsistency?key= may indicate a templating bug# before ? in URL — fragment must come lastCheck scheme (`https`), hostname spelling, path casing, duplicated parameters, and unwanted fragments. Small URL errors can impact crawling, analytics attribution, and user trust.
If values contain encoded symbols (for example `%2F` or `%20`), verify the decoded output and re-encode only the exact parameter value when rebuilding URLs.
Break down a URL into scheme, host, path, query parameters, and hash.
| Scheme | https |
| Host | example.com |
| Hostname | example.com |
| Pathname | /search |
| Search | ?q=url+parser&lang=en&page=1 |
| Hash | #results |
| Origin | https://example.com |
| Key | Value |
|---|---|
| q | url parser |
| lang | en |
| page | 1 |