Practical Guide

URL Parser โ€” Usage Guide and Technical Principles

Break down an absolute URL or a relative reference with a base URL. Inspect components and repeated query parameters, then copy fields or JSON locally.

Open tool

Overview

Break down an absolute URL or a relative reference with a base URL. Inspect components and repeated query parameters, then copy fields or JSON locally. The browser URL API parses the text locally. This tool does not test whether a site exists or whether a URL is safe.

Key concepts

WHATWG URL API

A base URL must itself be absolute; relative input is resolved against it.

URLSearchParams

Repeated query keys remain separate rows. URLSearchParams displays decoded keys and values; copying a pair encodes it again.

Invalid URL

The browser URL API parses the text locally. This tool does not test whether a site exists or whether a URL is safe.

Features

Parsed Result

Review the normalized URL, its components, and every query parameter in order.

Base URL for relative input

A base URL must itself be absolute; relative input is resolved against it.

Query Parameters

Repeated query keys remain separate rows. URLSearchParams displays decoded keys and values; copying a pair encodes it again.

Copy JSON

Copy a field, a query pair, the full URL, or structured JSON.

Use cases

Parsed Result

Review the normalized URL, its components, and every query parameter in order.

Query Parameters

Repeated query keys remain separate rows. URLSearchParams displays decoded keys and values; copying a pair encodes it again.

Base URL for relative input

A base URL must itself be absolute; relative input is resolved against it.

Frequently Asked Questions

What are the components of a URL?

Review the normalized URL, its components, and every query parameter in order.

What types of URLs can the URL Parser handle?

A base URL must itself be absolute; relative input is resolved against it.

Why does my URL parsing fail?

Enter a valid absolute URL, or provide a valid absolute base URL for relative input.

How are special characters handled in URLs?

Repeated query keys remain separate rows. URLSearchParams displays decoded keys and values; copying a pair encodes it again.

How to extract all query parameters from a URL?

Repeated query keys remain separate rows. URLSearchParams displays decoded keys and values; copying a pair encodes it again. Copy a field, a query pair, the full URL, or structured JSON.

Related documentation

  • WHATWG URL Standard

    A base URL must itself be absolute; relative input is resolved against it.

  • MDN: URL

    Review the normalized URL, its components, and every query parameter in order.

  • MDN: URLSearchParams

    Repeated query keys remain separate rows. URLSearchParams displays decoded keys and values; copying a pair encodes it again.

URL Parser

Open the tool to try these features.

Open tool