URL Query Parser

Parse URL query strings into ordered parameters, preserve repeated keys, edit values, and rebuild a normalized query or URL locally in your browser.

URL Query Parser

Inspect ordered query parameters, edit values and rebuild a normalized query without opening the URL.

URL or query string

Paste a full URL, relative URL, leading ? query or bare query string.

64 KiB maximum
Ctrl/Cmd + Enter to parse

No query parsed yet

Enter a URL or query string, then select Parse.

Steps

How to use

  1. Paste a full URL, relative URL or query string.
  2. Select Parse query to inspect decoded parameters in their original order.
  3. Edit, add, remove or reorder parameter rows as needed.
  4. Copy the normalized query, rebuilt URL or ordered JSON output.
Examples and use cases
  • Inspect repeated campaign parameters without collapsing them into one value.
  • Decode plus signs and percent-encoded characters in a copied query string.
  • Edit a relative URL while preserving its path and fragment.
  • Review empty keys, empty values and bare parameters before using a URL in code.
Privacy, limits and tool details

Key facts

Best use case
Inspecting, editing and rebuilding query parameters while preserving duplicate keys and order
Accepted input
Absolute URLs, relative URLs, leading-question-mark queries and raw query strings
Output
Normalized query string, rebuilt URL or relative reference, and ordered JSON entries
Duplicate handling
Repeated keys remain separate and in their original order
Decoding
Uses URLSearchParams form decoding, where + represents a space and %2B represents a literal plus sign
Rebuilding
Edits are encoded into a normalized representation rather than reproducing original bytes
Browser-safe limits
64 KiB input, 1,000 parameters, 4,096 characters per key and 32,768 per value
Privacy model
Parsing and rebuilding run locally in browser memory without requesting or uploading the URL
Main limitation
Bracket notation remains literal and is not converted into nested objects
Privacy

Privacy and processing

Processing method: Native URL and URLSearchParams semantics are used in the browser to validate supported URL input, decode ordered parameter pairs and serialize edited values without making a network request.

Privacy model: The URL, query string, parameter names and parameter values stay in browser memory. ToolMint does not request the URL, upload the input, save it to localStorage or send private values through analytics.

Limitations

Limitations

  • Rebuilt output is normalized and may use different percent-encoding or equals-sign syntax from the original input.
  • Bracket-style names such as user[name] remain literal keys and are not interpreted as nested objects.
  • The tool does not request the URL, test reachability or confirm how a server framework will interpret the parameters.
  • Malformed percent escapes are surfaced with a warning, but native decoding may retain undecodable characters in normalized output.
  • Input, parameter and output limits protect browser responsiveness for unusually large query strings.
Features

Benefits

Ordered inspection

Review every parameter as a separate row without collapsing duplicate keys.

Controlled editing

Add, remove and reorder parameters before rebuilding a normalized query.

Multiple useful outputs

Copy a query string, a rebuilt URL or an ordered JSON representation.

Private by design

Parsing happens locally and the destination URL is never requested.

Tips

Pro tips

  • Treat the original query panel as the source record and the rebuilt output as a normalized representation.
  • Keep repeated parameters separate when order matters to the receiving application.
  • Use %2B when a literal plus sign must survive form-style query decoding.
  • Remove secrets and personal data before sharing a query string or copied output.
Watch out

Common mistakes to avoid

  • Assuming a plus sign decodes to a literal plus instead of a space in form-style query parsing.
  • Converting repeated keys into an object and accidentally losing their order or extra values.
  • Treating the fragment after # as part of the query sent in an HTTP request.
  • Expecting normalized output to reproduce the original percent-encoded bytes exactly.

Sources

  • URL Standard - WHATWG (accessed 2026-09-04)
  • URL - MDN Web Docs (accessed 2026-09-04)
  • URLSearchParams - MDN Web Docs (accessed 2026-09-04)
  • Query - MDN Web Docs (accessed 2026-09-04)
Detailed URL Query Parser guide

What is the URL Query Parser?

ToolMint's URL Query Parser separates a URL query string into ordered name-value pairs. It accepts a full absolute URL, a relative reference, a query beginning with ?, or a raw query such as page=2&sort=newest. Repeated names remain separate instead of being collapsed into one object property.

The tool is useful when debugging API requests, reviewing campaign links, checking application state in a URL, or preparing query data for code. Parsing and editing happen in the current browser tab. ToolMint does not request the destination URL or upload its parameters.

How to parse query strings

  1. Paste a full URL or query string into the input area.
  2. Select Parse.
  3. Review the decoded key and value in each ordered parameter row.
  4. Edit, add, remove, or reorder rows when needed.
  5. Copy the normalized query, rebuilt URL, or ordered JSON output.

Use the original-query panel when you need to compare source text with normalized output. The URL Encoder / Decoder is more suitable when your task is encoding or decoding an individual text value rather than inspecting a complete parameter list.

Worked example: repeated keys, a plus sign and a fragment

Paste this fictional relative URL and select Parse:

/search?tag=seo&tag=technical&q=a%2Bb&flag#results

The four decoded rows remain in this order:

Row Key Decoded value
1 tag seo
2 tag technical
3 q a+b
4 flag Empty string

Both tag rows survive. The %2B in the third row becomes a literal plus, while the bare flag has an empty value. The normalized Rebuilt URL is:

/search?tag=seo&tag=technical&q=a%2Bb&flag=#results

Edit the third row's value to a+b report. The rebuilt result becomes:

/search?tag=seo&tag=technical&q=a%2Bb+report&flag=#results

The literal plus stays encoded as %2B, the new space becomes +, and #results stays outside the parameter list. The JSON output keeps four separate entries. This example checks parsing and rebuilding only; it does not test how a destination server handles repeated parameters.

Full URLs vs raw query strings

An absolute input includes a scheme and host, such as https://example.com/search?q=tools. A relative input can include a path, such as /search?q=tools. The parser also accepts ?q=tools and the bare query q=tools.

When a URL or relative reference has no query, the result contains zero parameters. The tool preserves the non-query prefix and any fragment so edited parameters can be rebuilt into the same URL shape. It never follows the URL, checks DNS, or confirms whether the destination exists.

Duplicate query parameters

Query strings can repeat the same name: tag=seo&tag=technical. The parser retains both rows and their positions. This avoids the data loss that can happen when query parameters are converted directly into a plain object with one property per name.

Servers and frameworks can interpret repeated names differently. Some expose a list, some select one value, and others apply application-specific rules. The parser shows the URL data; it does not predict a server's interpretation. When generating campaign parameters instead, use the UTM Builder to create a consistent tracking URL.

Parameter ordering

The URL standard treats a query as an ordered list of name-value tuples. ToolMint preserves that sequence and provides move-up and move-down controls. Ordering is useful when comparing requests or reproducing a source URL, even though many applications treat parameter order as insignificant.

The ordered JSON output uses an array of entries rather than a grouped object. This representation can preserve duplicates, empty names, empty values, and sequence without inventing nested structures.

Plus signs, spaces and percent encoding

The parser follows native URLSearchParams form-encoding behavior. A plus sign (+) and %20 both decode to a space. A literal plus sign is represented by %2B. For example, q=a+b decodes to a b, while q=a%2Bb decodes to a+b.

Valid percent-encoded UTF-8 sequences are decoded into text. Malformed percent escapes receive a visible warning because native decoding and later normalization may not reproduce the original source bytes. The rebuilt query safely percent-encodes edited names and values.

Empty keys and values

flag, flag=, =value, and an empty segment are not identical source forms. The parser preserves meaningful bare keys, empty values, and empty names as parameter rows. A rebuilt query is normalized, so a bare key such as flag can serialize as flag=.

This distinction matters when comparing raw request syntax, but server behavior is application-specific. Confirm the receiving system's requirements before changing an integration.

URL fragments

A fragment begins with #, such as #results. It is separate from the query string and is normally handled by the user agent rather than sent as part of an HTTP request. ToolMint removes the fragment before parsing parameters and restores it after the rebuilt query.

Checking HTTP behavior requires an actual request and serves a different purpose. Do not submit signed or private URLs to a server-side checker.

Editing and rebuilding query strings

Each parsed row has editable key and value fields. You can add a blank row, remove a parameter, change text, or move a row. The tool checks decoded key and value lengths and enforces browser-safe input, parameter-count, and output limits.

The normalized query output contains only the serialized parameter list. The rebuilt URL output also restores the original path or absolute URL prefix and fragment. For request-code conversion, the cURL Converter can translate one cURL command into Fetch or Python Requests without executing it.

Bracket-style names such as filter[name] remain literal. ToolMint does not turn bracket notation into nested objects because that convention is interpreted differently across server frameworks.

Why rebuilt output may look different

Rebuilt output uses standard URLSearchParams serialization. Equivalent values can therefore look different from the source: spaces can become +, percent escapes can be normalized, and a bare key can gain an equals sign. These changes affect representation, not necessarily the decoded parameter values.

Use the original-query view when byte-level comparison matters. The tool is a parser and editor, not a lossless raw-query rewriter.

Query strings and sensitive information

URLs can expose values through browser history, copied links, logs, referrer behavior, screenshots, and analytics systems. Avoid putting passwords, access tokens, session identifiers, private API keys, or personal data in query parameters.

ToolMint shows a local advisory when a parameter name resembles a common credential field. It lists only the detected key names and does not send names or values through analytics. Detection is a reminder, not a guarantee that every sensitive value will be recognized.

When choosing a preferred public URL for search indexing, use the Canonical URL Generator. Canonicalization is an SEO signal and is separate from editing a browser query string.

Browser-local privacy

Parsing, row editing, normalization, and JSON generation run locally in browser memory. The tool does not fetch the pasted URL, upload the query, save it to localStorage, or include parameter names and values in analytics. Clearing the tool, refreshing the page, or closing the tab removes the working state.

The interface applies a 64 KiB input limit, a 1,000-parameter limit, decoded key and value limits, and a 256 KiB output limit. These safeguards keep the synchronous browser workflow practical; they are ToolMint limits rather than universal URL limits.

Explore more private browser utilities in ToolMint's Developer Tools collection.

Sources

  • URL Standard — WHATWG's normative definition of URL parsing and application/x-www-form-urlencoded behavior.
  • URL API — MDN documentation for parsing and editing URLs.
  • URLSearchParams — MDN documentation for ordered query parameters and serialization.
  • URI query reference — MDN overview of query syntax and usage.

Frequently asked questions

A query string is the part of a URL that follows the question mark and contains parameter names and values. Parameters are commonly separated by ampersands, while the fragment after # is separate.

Paste an absolute URL, relative URL or query string and select Parse query. ToolMint displays each decoded parameter as an ordered row that you can inspect or edit.

Yes. Repeated keys remain separate and preserve their order. They are not collapsed into a single object property.

With URLSearchParams form decoding, both + and %20 decode to a space. A literal plus sign is encoded as %2B.

Valid percent-encoded UTF-8 bytes are decoded using native URLSearchParams behavior. Malformed percent escapes produce a visible warning because rebuilt output may differ.

No. The fragment begins with # and is kept separate from the query. It is preserved when ToolMint rebuilds a full or relative URL.

Rebuilding uses normalized URLSearchParams encoding. Spaces, percent escapes, bare keys and other equivalent syntax can therefore serialize differently even when decoded values are unchanged.

No. Parsing, editing and rebuilding happen locally in browser memory. ToolMint does not request the destination URL, upload parameter values or save the input to localStorage.
8 min read Works in browser Privacy notes