Skip to content
Tools

URL Parser

Break a URL into scheme, host, path, query and fragment.

Local

What this tool does

This tool breaks a URL into its parts: scheme, host, port, path, query parameters and fragment, plus any user and password. It uses the browser's own URL parser, so it matches how a browser reads the URL.

Why parse a URL

URLs pack a lot into one string, and the rules for encoding and structure are easy to get wrong by hand. Seeing the parts laid out helps you confirm a query parameter is where you think it is, spot an encoding problem, or pull out a value for a test.

Common use cases

  • Reading the query parameters of a captured request.
  • Checking the host and path of a redirect.
  • Confirming a value is encoded correctly in a link.

Frequently asked questions

Does it fetch the URL?
No. It only parses the text with the browser's URL parser. It never makes a request.
Why does it need the scheme?
A URL without a scheme such as https:// is ambiguous, so the parser needs the full absolute URL.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.