Skip to content

API

URL & Query String Parser

Parse URLs, inspect their components and edit query parameters.

Loading tool…

About this tool

What is URL & Query String Parser?

Separate a URL's query parameters from its path and fragment before editing links or debugging request inputs. Repeated parameters are worth inspecting individually because APIs disagree on how to interpret them. Decoding makes values readable; it does not validate a destination or establish that an application accepts those parameters.

A worked example

Keep repeated parameters and distinguish the fragment

Example input

https://example.com/search?q=red+blue&tag=a&tag=b#top

Expected result

q = "red blue"
tag = "a", "b"
fragment = "#top"

Parse the full URL. Form-style query decoding turns the plus into a space, while both tag values remain available. The fragment identifies a client-side location and is separate from the HTTP query. The output above summarizes those fields rather than replacing the URL with a new serialization.

Common mistakes and limits

  • A literal plus in a form-style query value should be encoded as %2B. Otherwise it may become a space when decoded.
  • Duplicate keys can be meaningful. Do not silently discard them when comparing a parsed URL with an API's requirements.

Features

What you can do

  • Parse complete URLs or standalone query strings.
  • Inspect protocol, origin, hostname, port, path and fragment.
  • Display and preserve repeated query parameters.
  • Add, edit, duplicate, sort and remove parameters.
  • Copy individual URL components.
  • Rebuild percent-encoded URLs locally in the browser.

Frequently asked questions

Questions about URL & Query String Parser

What is a query string?

A query string is the portion of a URL after the question mark. It contains key-value parameters commonly separated by ampersands.

Can a query parameter appear more than once?

Yes. URLs may contain repeated keys such as tag=javascript&tag=typescript. This tool preserves every occurrence separately.

What is the difference between host and hostname?

The hostname contains the domain or IP address. The host includes both the hostname and an explicit port when one is present.

Are parameter values automatically decoded?

Yes. The browser URL and URLSearchParams APIs decode percent-encoded names and values when parsing them.

Is the URL uploaded?

No. Parsing, editing and rebuilding take place entirely inside your browser.

Related tools