Developer Tools

URL Parser

Live

Break a URL into protocol, host, path, query parameters, and related components.

About URL Parser

Break a URL into protocol, host, path, query parameters, and related components. Enter url in a purpose-built developer workspace with explicit units and relevant controls. The browser URL parser normalizes the address and exposes its standard components without making a network request. The result panel reports normalized url, protocol, hostname, port, pathname with supporting context. Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data. Processing stays in your browser and entered values are not sent to UtilityPages.

Set up URL Parser

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

This workspace updates as you edit.

Enter the url used by this tool.

URL Parser results

Enter the values above, then parse url to see the result.

URL Parser method

The browser URL parser normalizes the address and exposes its standard components without making a network request.

How it works

The browser URL parser normalizes the address and exposes its standard components without making a network request. Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data.

Examples

URL Parser example

Example input
{
    "url": "https://user:[email protected]:8443/docs/page?q=tools&lang=en#results"
}
Expected result
{
    "normalized_url": "https://user:[email protected]:8443/docs/page?q=tools&lang=en#results",
    "protocol": "https",
    "hostname": "example.com",
    "port": "8443",
    "pathname": "/docs/page",
    "query_parameters": [
        {
            "key": "q",
            "value": "tools"
        },
        {
            "key": "lang",
            "value": "en"
        }
    ],
    "hash": "#results"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the URL Parser work?

The browser URL parser normalizes the address and exposes its standard components without making a network request.

What should I enter in the URL Parser?

Enter url. Keep units consistent with the labels and use values from the same scenario.

What does the URL Parser return?

The result includes normalized url, protocol, hostname, port, pathname. Supporting values are included to make the headline result easier to check.

How exact is the URL Parser?

Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data.