Skip to main content

URL Parser

Free URL parser: split a web address into protocol, host, path, query and fragment, and rebuild it after editing. Runs in your browser.

URL to parse

Stays in your browser

URL parts

  • Protocolhttps:
  • Hostnameapi.example.com
  • Port8443
  • Path/users/list
  • Hash / fragment#results
Query parameters
page2
activetrue

Build a URL

Built URL

  • URLhttps://example.com/docs?q=dev%20tools&lang=en#top

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to Query String Parser.

Online URL Parser and Builder

Break any complete URL into readable parts and inspect decoded query parameters. Parsing happens in your browser — nothing is sent anywhere. This URL parser splits any web address into its parts and decodes the query string. It helps developers troubleshoot redirect links, API endpoints, callback URLs, and encoded query parameters.

What this tool does and who uses it

A URL parser separates a web address into its protocol, host, port, path, query string, and fragment. Two concrete uses: a developer debugging why a redirect lands on the wrong page by inspecting its exact path and fragment, and someone reviewing a long tracking or callback URL who needs to see each query parameter individually instead of squinting at one long encoded line.

Worked example

Parsing https://api.example.com:8443/users/list?page=2&active=true#results shows Protocol https:, Hostname api.example.com, Port 8443, Path /users/list, and Hash/fragment #results, plus a query table with page → 2 and active → true. Note the "Hostname" row shows the hostname on its own; the port is a separate row, not combined into it. In the builder, typing q=dev tools in the query field gives ?q=dev%20tools.

Common mistakes and edge cases

  • A URL without a scheme, like example.com/path, is rejected — paste the complete address including https://.
  • The builder\'s query field is one text box of name=value&name=value pairs. Spaces and symbols you type are percent-encoded for you, and a literal + is kept as typed.
  • The "Hostname" row shows the domain or IP address only; the port is in its own "Port" row rather than being combined into one field.

Frequently asked questions

Does URL parsing change my input?
No. The URL is parsed locally with the browser URL API, and nothing is transmitted or saved.
What is the difference between a host and a hostname?
The hostname is just the domain or IP address, while the host also includes an explicit port when one is present. This tool shows the hostname in its "Hostname" row and the port in a separate "Port" row.
Are query parameter values decoded?
Yes, in the parsed results table — it shows decoded key and value text. The URL builder below does the opposite: you type plain text in its query field and it is encoded for you.
Will the URL builder encode spaces and symbols I type into the query field?
Yes. Each name and value in the query field is percent-encoded, so q=dev tools&lang=en becomes q=dev%20tools&lang=en. Text that is already encoded is not encoded twice, and the path and fragment are encoded the same way.
How do I break a URL into parts?
Paste the whole address including https://. The parser splits it into protocol, host, port, path, query parameters and fragment (the part after #), and decodes the query values so you can read them. Edit any field in the builder and the full URL is rebuilt with the right encoding, which is handy for fixing a redirect or a callback address.

Related tools

More Formatters & Parsers

View all Formatters & Parsers tools →