Small Tools
Web utility

URL Parser

Break an absolute URL into its protocol, host, path, and query fields.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…

How to use URL Parser

  1. Paste an absolute URL that starts with a scheme such as https://.
  2. Select Parse.
  3. Read each component, and paste the query into Query String Parser if you need its parameters.

Example

Input / settings:

https://example.com:8443/docs/tools?tag=web&tag=dev#examples

Output:

Protocol: https:
Hostname: example.com
Port: 8443
Pathname: /docs/tools
Query: tag=web&tag=dev
Fragment: #examples

The query is shown without its ?, while the fragment keeps its #.

When to use

Overview

URL Parser splits an absolute URL into protocol, hostname, port, path, query and fragment with the browser's own URL parser, the same algorithm browsers use for links. The result is normalized, so it can differ from what you typed: the host is lowercased, default ports are dropped, dot segments are resolved and unsafe characters are percent-encoded. The tool reads the text only and never requests the address.

Supported input

absolute URL

Output details

URL components

Limitations

Common mistakes

Practical tips

Privacy and security

This tool runs entirely in your browser. Your input is never uploaded to our servers. Parsing runs locally and the address is never requested, so pasting a suspicious link does not visit it. Reading the real hostname helps you spot look-alike addresses, but parsing cannot tell you whether a site is trustworthy.

References

Frequently asked questions

Why is the port empty?

The port is shown only when it is not the default for the scheme. https://example.com:443/ and http://example.com:80/ both give an empty port.

Why does the hostname differ from what I pasted?

The parser lowercases the host and converts non-ASCII names to their ASCII form, so Example.COM becomes example.com.

Can I paste a relative URL?

No. Without a scheme the tool cannot tell which site the path belongs to, so it asks for an absolute URL.

Learn more

Related tools