Reconnecting… Connection lost. Reload Session expired. Reload

URL Parser

Paste any URL and see its scheme, host, port, path, query parameters and fragment broken out individually.

By Pankaj Kumar · DevToolsHub· Last updated Jun 2026
Input Section
URL
Output Section
Scheme

https

Host

example.com

Path

/search

Query

?q=hello+world&lang=en

Fragment

results

Query Parameters
Key Value
q hello+world
lang en

What is URL Parser?

URL parsing breaks a URL into its structural components: scheme (https), host (example.com), port, path (/tools/json), query parameters (?key=value), and fragment (#section). Understanding URL structure is essential for debugging API calls and building routing logic.

How to use

  1. Paste any URL into the input field.
  2. Click Parse.
  3. View each component — scheme, host, path, query parameters, and fragment — broken out separately.
  4. Copy any individual component.

Common use cases

Debugging API endpoint URLs, extracting query parameters from redirect URLs, understanding URL structure when building routing logic, inspecting OAuth callback URLs.

FAQ
Does the URL need a scheme?

Yes. The parser requires an absolute URL with a scheme like https:// or http://.

Are query parameters decoded?

Yes. Percent-encoded characters in query parameter keys and values are decoded in the parameters table.

What is the difference between a path and a query string?

The path (/users/123) identifies a resource. The query string (?sort=asc&page=2) passes optional parameters to the server. They are separated by a ? character.

What is a URL fragment?

The fragment (#section-name) comes after the # symbol. It is processed by the browser only and never sent to the server. It is used for in-page navigation.

Why do some URLs have a port number?

The port specifies which service on the server to connect to. HTTP defaults to port 80 and HTTPS to port 443, so they are usually omitted. Custom ports (like :3000 for local dev) must be specified.

What is the difference between a URL and a URI?

A URI (Uniform Resource Identifier) identifies a resource. A URL (Uniform Resource Locator) is a URI that also specifies how to access it (the scheme and location). All URLs are URIs.