BuildUtilities

URL Parser – Free Online Tool

Parse any URL into its components: protocol, host, path, query, and fragment.

✦ FreeNo SignupInstantEncodingURL Encoding Guide
protocol

https:

host

example.com:8080

hostname

example.com

port

8080

pathname

/path/to/page

search

?key=value&foo=bar

hash

#section

origin

https://example.com:8080

Example

Input

https://example.com:8080/path?key=value#section

Output

Protocol: https | Host: example.com | Port: 8080 | Path: /path | Query: key=value | Hash: section

The URL is decomposed into its constituent parts for inspection.

How to Use URL Parser

  1. 1

    Enter URL

    Paste a complete URL.

  2. 2

    View Components

    See the URL broken down into protocol, host, port, path, query, and hash.

  3. 3

    Copy Parts

    Copy individual URL components.

Common Use Cases

  • Debugging API endpoint URLs
  • Extracting query parameters from URLs
  • Validating URL structures

Embed This Tool

Add this tool to your website or blog with a simple iframe embed.

<div style="max-width:480px"><iframe src="https://buildutilities.com/embed/url-parser?ref=embed" width="480" height="360" frameborder="0" style="border-radius:8px;border:1px solid #2a2e3a;width:100%"></iframe><p style="font:11px sans-serif;color:#888;margin:4px 0 0;text-align:right">Powered by <a href="https://buildutilities.com/url-parser?ref=embed" target="_blank" rel="noopener">BuildUtilities</a></p></div>

Share

Share a link to this tool. Results can be passed via URL parameters.

https://buildutilities.com/share/url-parser

More Encoding Tools

Encode, decode, hash, and convert strings between formats.

View all Encoding tools
Tip Jar