URL Parser

Break a URL into its component parts.

ABOUT THIS TOOL

What this tool does

A URL is made of several parts — protocol, host, path, query and fragment. This tool splits a URL into those pieces so you can inspect, debug or extract exactly what you need.

USE CASES

When to use it

  • You want to isolate the domain or path from a long URL.
  • You are debugging query parameters.
  • You need to inspect the fragments of a URL.
  • You are checking how a URL is structured.
UNDERSTAND IT

How to understand this tool

INPUT
URLhttps://example.com:8080/path/page?q=hello&lang=en#section
OUTPUT
Protocol  https:
Host  example.com:8080
Hostname  example.com
Port  8080
Path  /path/page
Query  ?q=hello&lang=en
Hash  #section

Query parameters: q = hello, lang = en

A URL splits into scheme, host, port, path, query and fragment. The fragment after # is handled by the browser and never sent to the server, which is why analytics cannot see it. Query parameters sit after the ? and are separated by &, so a value containing & has to be encoded or it splits the parameter in two.

What it will not do

  • It needs a full address including https://; a bare domain is rejected.
  • It cannot follow redirects or check whether the URL works.
FAQ

Questions people ask

What is a query string?

The part after a question mark that carries parameters, like ?id=123&sort=asc.

What is a fragment?

The part after a # that points to a specific section of the page.

GOOD TO KNOW

One thing worth knowing

Treat generated tags as a starting point — review the final wording to match your actual page.