URL Origin Comparator
Compare two HTTP URLs using the browser same-origin tuple.
Compare the three fields that define an origin
For HTTP resources, same origin means the scheme, hostname, and effective port are equal. This comparator parses both absolute URLs with the browser URL implementation, lowercases hostnames, and treats omitted HTTP port 80 or HTTPS port 443 as their explicit equivalents before comparing the three-part origin keys. Paths, queries, and fragments are intentionally excluded.
The default URLs are same origin even though one host uses uppercase letters, one explicitly writes port 443, and the paths differ. Both normalize to https://example.com. Changing the second scheme to HTTP or its port to 8443 would make the result different origin, even if every path segment matched.
Paths and default ports do not change origin
Same-origin status influences browser script access but does not by itself predict CORS permission, cookie sending, site identity, or server trust. Subdomains are different hostnames, and non-HTTP schemes have other origin behavior, so this tool limits comparison to HTTP and HTTPS. Parsing runs locally in your browser and contacts neither URL. Use the result to debug browser boundaries, then inspect CORS and credentials separately.
Frequently Asked Questions
Do different paths create different origins?
No. Origin comparison ignores path, query, and fragment and uses only scheme, hostname, and effective port.
Is omitted HTTPS port 443 equal to explicit port 443?
Yes. The comparator normalizes default HTTP and HTTPS ports before testing equality.
Does same origin guarantee a request will succeed?
No. Network availability, server authorization, content policy, and other controls still apply.
Browse the full set of free, private, in-browser tools.