URL Parser
Try URL Parser
Loading calculator. If this message stays visible, enable JavaScript and reload.
Your result
The URL parser splits a complete HTTP or HTTPS address into its protocol, host, port, path, query and fragment. Paste the address, then run the tool to read its components beside the full serialized URL. You can use the fields to see whether two links lead to different routes or carry different settings for the same route.
The form reads the address without visiting the destination. Start with a complete link that includes its scheme. If you have a route such as /events, first identify the intended domain. Relative paths require a base address before they can identify a web destination.
Inspecting the components of a web address
What does the URL parser show?
The URL parser returns the full serialized address and six labelled fields. Protocol is the scheme and includes a final colon. Host is the hostname without the port. Port shows an explicit non-default port where present. Path starts at the first slash after the host and port. Query and Fragment show the suffixes identified by ? and # respectively when those suffixes have content.
For a quick comparison, inspect the host and path first. Two addresses that share those components can still differ in their scheme, port or suffixes. A changed query could select a different sort order or carry a campaign label. A changed fragment could point to another section on the page. The site decides how to interpret the components, which a string inspection alone cannot establish.
The detail rows make useful notes for a support request. Record the field that differs and where each address came from. For example, one link might come from a product listing and another from a message that was sent to customers. Keep both original strings available because the displayed components have already passed through browser parsing and serialization. That processing can hide some cosmetic differences in the raw copy.
How do I inspect a link without making a request to it?
- Copy the complete address, including
https://orhttp://. If a link has a short piece of display text, use the copy-link command to get its underlying address. - Paste the address into the form and select Calculate / Run.
- Check the serialized URL and the six fields. Capture the particular components needed for the comparison.
- Use a separate check on a trusted destination when you need to verify reachability, redirect behavior or page content.
On a small screen, the address field may show only part of a long link. Check the parsed field labels, then copy the whole result into a plain-text note if you need to inspect it without visual wrapping. Compare the exact hostname, including any subdomain. The structured display can help you read it, while your knowledge of the destination and its sender determines whether you should visit it.
Use a harmless example when asking someone else to reproduce a parsing problem. Replace any personal or account identifiers with fictional values before sharing the address. You can preserve the scheme, delimiters and relative position of the fields using an example domain. When the exact domain is relevant, consult the site's own documentation or work in the appropriate private review channel.
How do I read the fields in a worked example?
Enter https://example.com:8443/catalog/books?sort=price&view=grid#reviews. The result contains the same full URL and separates the following parts. The query and fragment details include their punctuation.
| Field | Returned value | What the value identifies |
|---|---|---|
| Protocol | https: | The scheme. |
| Host | example.com | The hostname. |
| Port | 8443 | The explicit non-default port. |
| Path | /catalog/books | The path within the site. |
| Query | ?sort=price&view=grid | The query string containing two name and value pairs. |
| Fragment | #reviews | The final component, which may identify a section. |
The example is an address string for inspecting the field boundaries. A real site on that pattern could choose to ignore sort, recognise view or use the fragment in a way that the parser cannot determine. When documenting the behavior of a product, test those choices against the requirements for that specific site. The component list only tells you what instructions the link carries as text.
If you are checking a campaign link, the path might be the first value you compare. If you are checking a developer's configuration, the port may be the detail that matters. Use the same sample to teach both readers how to identify their field. The compact labelled result is easier to scan than instructions that ask someone to count separators from the end of the address.
Why does the serialized address sometimes change?
The engine passes the original value to the platform's URL constructor and returns its serialized address. For example, HTTPS://EXAMPLE.COM:443 becomes https://example.com/. The scheme and host appear lowercase, the root path gains a slash and the default HTTPS port is omitted from the full URL. Because the parsed port is empty, the tool labels it default.
Other transformations can affect the path or non-ASCII portions. Recognised dot segments can be resolved. For example, an address ending in /a/../b? gives the path /b. It can retain the trailing question mark in the full result while leaving the query field blank. If you are comparing raw inputs character for character, keep the original copy before running the parser.
A normalized host does not tell you that a directory name will be case insensitive. Host and path use their own parsing and application conventions. Keep the fields separate when investigating a discrepancy. In particular, compare the exact route produced by the publishing system with the route you expected to send. The WHATWG URL Standard describes the constructor and its component accessors.
Be explicit about whether normalisation is part of your comparison. A quality check for exact values in an export should start with the original cell text. A quality check for the components that a browser will use can start with the parsed values. If a spreadsheet shows an uppercase host and the parser shows a lowercase host, record both facts. The hostname may resolve the same way, while an exact-format export test could still require the original case. Treat the parsed and recorded representations as separate evidence for those tasks.
How can I tell a query value from a fragment?
An unescaped hash is the start of the fragment after the path or query. A percent-encoded hash is part of the component it appears in. For example, https://example.com/items?q=a%23b#summary returns ?q=a%23b for Query and #summary for Fragment. The encoded hash stays inside the value for q.
The parser reports the full query string. If your next task is to read a percent-encoded value, identify that value first. The URL decoder can help inspect a component in an appropriate format. Decoding the whole address before parsing could turn a percent escape into a structural delimiter. Keep a copy of the original query when checking where punctuation belongs.
HTML source adds another possibility. In markup, an ampersand in an attribute may be represented by &. The version copied as the link address often contains the actual ampersand separating parameter pairs. The HTML decoder can help read the character reference in a short example. Apply the relevant decoding at the correct layer before interpreting the address string.
A question mark can be evidence even when there is no query value. Compare an address that ends with a bare question mark with one that has a parameter after that mark. In the first case the query detail is empty. In the second case it contains the question mark and the parameter text. When diagnosing an editor that appends punctuation, take a screenshot of the full serialized result or save it as plain text. Showing only the detail line can hide the delimiter you are investigating.
How can I compare a base link with a campaign link?
Run the two addresses separately. Confirm the scheme, host, port and path that together identify the intended destination. Check the original query and fragment so you know which parameters and navigation choices were already present. Then inspect the campaign link for the specific labels you meant to add.
Some destinations use query parameters for more than attribution. The query may identify a product variant, preferred language, display mode or another part of the actual navigation. Do not remove every parameter just to create a comparison copy. Use the clean address supplied by the site owner, or confirm which parameters are required for the page to behave as expected.
The UTM builder adds source, medium and campaign tags to an HTTP or HTTPS address. The UTM parser can extract selected labels from the tagged link. Use the component view here to check the full query and fragment around those tags. After a campaign editor rewrites links for tracking, inspect the actual address used in a test email as well.
Will a valid parse tell me the page is ready to share?
A valid parse shows the address was accepted by the platform and passed the tool's HTTP and HTTPS restriction. A syntactically valid address can still lead to a page that is unpublished, moved, inaccessible or intended for a different audience. The parser does not perform a network request or check whether the site has registered the route.
For a planned change, save the expected path before saving the content. The SEO slug generator can help choose a candidate segment for a title. The final link may include a parent route, language prefix, date or duplicate-handling suffix supplied by the publishing system. Compare the displayed path with the planned route after previewing the result.
Check the final output in its actual distribution channel. A print draft might contain a simple address, while a newsletter template may put display text on a tagged link. Copy the address from the preview and inspect it again. Compare what an ordinary reader will open with the destination you approved. That check concerns the finished link rather than just the value that was originally in a spreadsheet or document.
What can I do when an address is rejected?
Isolate the address from its surrounding markup or punctuation. A complete HTML tag and the address inside its attribute are different inputs. A Markdown link may also include a description and parentheses. Start with the URL alone and check that it includes an HTTP or HTTPS scheme. A complete mailto: address is useable in other software but fails this tool's supported-scheme check.
Start with a clear public sample. Add the relevant path segment, then add a query and fragment when they matter to your case. This helps distinguish a missing scheme from an address that uses unsupported data. If you started with a relative path, determine the intended base URL and form the complete address using the site's documented route. Do not guess at a target domain for a real link.
When the problem comes from copying, identify the editor or site that changed the value. Test a second copy of the address from the original link rather than manually correcting a series of symbols whose meaning is unclear. The entire exercise works best when you can trace which representation came from the sender and which was produced by the parser.
If the source is an error report, ask the reporter which interaction produced the link. The copy command on a link, a browser address bar and a document source view can provide different text. Write down that interaction with the exact expected host and path. An address bar might show a destination after a redirect, while the original link points to a tracking or navigation service. These are separate addresses. Comparing the component reports can show where they differ, and a controlled test of the original interaction can explain how the browser moved between them.
If you only need a shape example, replace the real details with a fictional path that preserves the relevant query and fragment boundaries. A small reproducible string tells a reviewer where to look and avoids the ambiguity of a screenshot cropped before the field that changed.
URL parser FAQs
Can I parse a link with no query or fragment?
Yes. The tool still reports its scheme, hostname, port and path. The Query and Fragment rows can remain blank. Use the full serialized URL when exact punctuation at the end of an address matters.
Why does Port say default when I typed 443?
HTTPS uses port 443 by default. The platform removes an explicitly supplied default port from its serialized address, so the parsed port is empty and the tool displays default.
Can the parser follow a short link?
It shows the address you pasted, including the host and path of a shortening service. Finding the target requires a separate network request that follows the service's redirect.
What happens when the same parameter occurs twice?
The overall query string can show both occurrences. The tool does not decide which value a server or campaign platform uses. Review that system's rules before editing a duplicated parameter.
Does an encoded hash split the address?
A percent-encoded hash stays within its component. An unescaped hash introduces the fragment. Check the exact source string if a copied value changes those characters.
Is the host field a description of the site owner?
It is the parsed hostname. A hostname helps identify the address but says nothing by itself about who controls the site. Use a trusted source to confirm ownership or the intended public destination.