Skip to main content
Back to tools

URL Parser

Break down a URL into protocol, host, path, query params, and hash

About URL Parser

URL Parser lets you break down a url into protocol, host, path, query params, and hash.

Category: API.

Frequently asked questions

What parts of a URL are parsed?

Protocol (scheme), host, port, pathname, query string (as key-value pairs), and fragment (#hash). Each part is extracted and displayed separately.

What is the difference between pathname and href?

href is the full URL string. pathname is just the path segment — everything after the host and port and before the query string (e.g., /api/users).

What is a URL fragment?

The part after # (e.g., #section-2). The fragment is never sent to the server — it's handled entirely by the browser, used for in-page navigation and client-side routing.

Related tools