🧰 FreeTools

URL Parser

Parse and analyze URL components: protocol, hostname, path, query parameters, hash, and port.

hrefhttps://user:pass@example.com:8080/path/to/page?q=hello&lang=en#section
protocolhttps:
hostnameexample.com
port8080
pathname/path/to/page
search?q=hello&lang=en
hash#section
usernameuser
password***
originhttps://example.com:8080
params
q=hellolang=en

Frequently Asked Questions

What parts of a URL are parsed?

Protocol, hostname, port, pathname, search/query parameters (parsed into key-value pairs), and hash fragment.

Share:

Related Tools