← All tools
Web · Free tool

URL Parser

Break a URL into protocol, host, port, path, query string, fragment and other browser-parsed components.

URL input

URL components

Protocol
—
Hostname
—
Port
—
Path
—
Query
—
Fragment
—
Origin
—

Understand any URL quickly

This tool uses the browser's URL parser to separate the main URL components, including the protocol, hostname, port, path, query string and fragment.

Related tools

Use the Query String Parser to inspect individual parameters or the URL Encoder & Decoder when you need percent encoding.

Local processing

The URL is parsed in your browser and is not sent to KRIYANO.

How to use this tool effectively

Break a full URL into protocol, hostname, port, path, query string, fragment and origin. Seeing the components separately makes it easier to debug routing, redirects, API requests and tracking links.

Common uses

  • Check whether a copied URL uses HTTP or HTTPS and which host it targets.
  • Separate the path from query parameters while debugging an endpoint.
  • Inspect explicit ports and fragments in development URLs.
  • Understand the origin used by browser security rules.

Example: parse a URL

Input
https://api.example.com:8443/v1/users?page=2#results
Output
Protocol: https:
Host: api.example.com
Port: 8443
Path: /v1/users
Query: ?page=2
Fragment: #results

Parsing separates syntax that otherwise appears in one string, making routing and request details easier to inspect.

Common mistakes to avoid

  • A hostname is not the same as an origin; origin also includes scheme and, when relevant, port.
  • Fragments are handled by the browser and are normally not sent to the server in HTTP requests.
  • Relative URLs need a base URL before they can be resolved into all components.
Privacy

The browser parses the URL locally. KRIYANO does not request or visit the URL you enter.

Frequently asked questions

Does this tool open or fetch the URL?

No. It only parses the string in your browser, so the destination is not contacted by the tool.

What is a URL origin?

An origin is the combination of scheme, hostname and port. Browsers use origins for many security boundaries such as same-origin checks.

What is the difference between query and fragment?

The query follows ? and is normally sent in the HTTP request. The fragment follows # and is generally interpreted client-side by the browser.