URL Parser
Breaks a URL into its parts with the browser’s own parser, so the answer matches what a browser would do.
Loading the tool…
How to use this tool
- Paste one URL for the full breakdown, or several for a comparison table.
- Select Parse.
- Check the Origin row when you are chasing a CORS or same-origin problem — that is the exact string the browser compares.
- Compare the Normalised row with what you pasted. Any difference is the parser telling you your URL was not quite what you thought.
What url parser does
URLs are parsed here by the same WHATWG parser your browser uses, not by a regular expression. That matters because the two disagree in exactly the cases that cause trouble — a host with a trailing dot, an empty port, a path with encoded slashes. If this page says a URL resolves somewhere, a browser will resolve it the same way.
Paste one URL and you get the full breakdown, including the origin that same-origin checks and CORS actually compare, and the normalised form after the parser has finished with it. Paste several and you get a comparison table instead. Credentials embedded in a URL are called out, because they travel in plain text and end up in server logs and browser history.