Developer

URL parser

Parse a URL and extract components like protocol, host, path, query parameters, and fragment.

Enter URL and Base URL (optional) to calculate Resolved URL, Origin, Protocol, Hostname, Port, Pathname, Search, Hash, and Query params (JSON). Results update instantly as you type. Try an example preset to sanity-check the tool.

Inputs

Absolute or relative URLs are supported.
Used only when your URL is relative (for example: /path).
Examples
About this tool
  • Inputs: URL, Base URL (optional)
  • Outputs: Resolved URL, Origin, Protocol, Hostname, Port, Pathname, Search, Hash, Query params (JSON)
References
  • WHATWG URL Standard
Share & embed
Share link
Embed
Need help or found an issue?
Report an issue Suggest a tool