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
- Paste a full URL or query string into the input area.
- Select Parse.
- Review the decoded key and value in each ordered parameter row.
- Edit, add, remove, or reorder rows when needed.
- 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.