URL Parser & Query Inspector

Parse absolute or relative URLs into structured components and inspect repeated query parameters locally.

Runs locally in your browser. No account required.

Practical usage guide

What this tool does

URL Parser turns an absolute URL, or a relative reference combined with a base URL, into a structured JSON view using the browser URL API. It exposes normalized components such as the resolved href, origin, protocol, credentials, host, port, pathname, query parameters, and fragment without sending a request to the destination.

Parsing answers how the browser interprets URL syntax; it does not prove that a server exists or that a link is trustworthy. Relative paths are resolved against the selected base URL, repeated query keys are represented as arrays instead of silently overwriting earlier values, and the indentation option controls only the readability of the JSON result.

Quick start

Paste an absolute or relative URL

An absolute value such as https://example.com/path can be parsed directly. For ../assets/file.json or ?page=2, provide the intended absolute base URL so resolution matches the page or application you are debugging.

Choose the output detail and query order

Enable Include Empty URL Components when you want unused fields such as username, password, port, search, or hash shown as empty strings. Empty query values are always preserved; Sort Query provides stable key order for review.

Review the normalized result

Compare href, origin, hostname, pathname, search, hash, and the query object. Choose the JSON indentation that is easiest to read or copy into an issue, test, or documentation note.

Remove secrets before sharing

URLs can contain username and password fields or sensitive query values. Redact credentials, tokens, signed parameters, email addresses, and private identifiers before copying the output elsewhere.

Common use cases

Debug redirects and callback URLs

Separate an OAuth callback, payment return URL, or nested redirect into components and verify which query values and fragment data the browser will expose.

Resolve relative application links

Combine a relative asset, route, or API reference with a known base URL to see the absolute URL produced after dot-segment and path resolution, without contacting the host.

Audit query parameter structure

Inspect empty parameters, repeated filters, campaign tags, pagination values, and encoded redirect targets without collapsing duplicate keys into one value.

Prepare stable URL fixtures

Use sorted query output and consistent indentation when documenting parser behavior or creating readable expected values for browser and API tests.

Limitations and important notes

Parsing performs no network request

The tool does not resolve DNS, follow redirects, check TLS, test availability, fetch metadata, or confirm that a route exists. It only applies URL parsing rules in the browser.

The URL API may normalize spelling

The resolved href can differ from the original text because the platform may normalize hostnames, default ports, escaped characters, path segments, and relative references. Keep the raw input for byte-for-byte or forensic comparison.

Relative references depend on the base URL

A relative path has no single absolute meaning. A missing, invalid, or unintended base can produce a valid result that points to the wrong origin or directory.

User information and query values may be sensitive

A URL can embed a username, password, access token, signed query, or personal identifier. Local parsing avoids an upload, but clipboard history, screenshots, logs, and shared output can still expose those values.

Input length is limited

The parser accepts up to 16,384 input characters per run. Extremely long signed URLs, nested redirect parameters, or bulk URL lists should be handled with purpose-built code instead of this single-URL workspace.

Examples

Inspect an API URL

Split a URL and preserve repeated query parameters as an array.

Frequently asked questions

Does parsing a URL open it or send a request?

No. The browser URL API only parses and normalizes the text locally; ToolFable does not navigate to the address or fetch it.

How are repeated query parameters represented?

The first value is a string. When a key appears more than once, its values are returned as an array in their parsed order.

Why can the output differ from the exact input text?

The standards-based URL API normalizes details such as the default path, host casing, internationalized domains, and percent encoding.

Related tools