What is URL Parsing?
URL parsing breaks a URL into its components: protocol (https), hostname (example.com), port, pathname (/path), query parameters (?key=value), and fragment (#section). Understanding URL structure is essential for routing, API development, and debugging network requests. This tool parses any URL and displays each component separately.
Common use cases
- Inspecting and debugging complex API endpoint URLs
- Extracting query parameters from analytics or tracking URLs
- Understanding URL structure for web scraping
- Validating URLs before making HTTP requests
- Parsing deep links and redirect URLs
How to use
- 1Paste a full URL, including https://, into the input.
- 2Read or edit the parts: protocol, host, port, path, each query parameter and the fragment.
- 3Copy the rebuilt URL, or click Use as input to keep working from your edited version.
Frequently asked questions
What are the parts of a URL?
A URL has up to 8 parts: scheme (https), username, password, hostname (example.com), port (443), path (/page), query (?key=val), and fragment (#section). Most URLs only use scheme, hostname, path, and query.
What is the fragment/hash in a URL?
The fragment (after #) identifies a section within a page. It is NOT sent to the server — it's handled entirely by the browser. Single-page apps often use fragments for client-side routing.