Developer Tools
Query String Parser
Parse a URL or raw query string, edit every parameter in a table, then rebuild the query and full URL. Dedupe, sort, and export to JSON or .env.
Rows
0
Unique keys
0
Duplicate keys
0
Output pairs
0
Parameters
Each row is a single key/value pair. Edit any cell to rebuild the query string instantly. Repeated keys are kept as separate rows.
Output options
Rebuilt query string
The current rows reassembled into a URL query string.
JSON object
Last-value-wins. Matches the default Express/PHP/Rails object form.
JSON array of pairs
Preserves order and duplicate keys for round-tripping.
.env style
One KEY=value per line. Values containing spaces or special characters are quoted.
How to use
- Paste a full URL like https://example.com/page?one=1&two=2 or a raw query string like ?a=1&b=2 into the input field. The tool detects which form you used and splits the query into one row per key/value pair.
- Edit any key or value directly in the table. Use Add row to append a new parameter, Copy to duplicate a row, Up and Down to reorder, and Delete to remove a row. Rows whose key is empty are ignored when rebuilding.
- Choose how the output is rebuilt: keep input order or sort A to Z, leave duplicate keys alone or dedupe by keeping the first or last occurrence, encode with %20 (RFC 3986) or + (form-encoded), and skip blank values if you want a tighter URL.
- Read the rebuilt query string and the rebuilt full URL (if the input had one), or switch to the JSON object, JSON array, or .env-style outputs and use the Copy buttons to grab whichever shape you need.
About this tool
Query String Parser turns the ?key=value&other=123 portion of any URL into an editable table so you can audit campaign links, tweak filter parameters, fix encoding mistakes, or generate a clean URL for an A/B test without hand-counting ampersands. Paste a full URL (https://example.com/path?one=1&two=2#anchor) or a raw query string (with or without a leading ?), and the tool uses the native WHATWG URL and URLSearchParams APIs to split it into rows: one per key/value pair, percent-decoded so you can read them. Repeated keys are first-class. A search-page URL with three color=... entries shows up as three distinct rows, each editable on its own, and the tool labels the repeated-key rows so you can spot them at a glance. From the table you can change any key or value, add a new row, delete a row, duplicate a row, or reorder rows with up/down controls. The output recomputes instantly: a rebuilt query string, a rebuilt full URL when the input had one (origin, pathname, and fragment are preserved while only the query is replaced), a last-value-wins JSON object that matches the default Express/PHP/Rails parsing behavior, a JSON array of {key, value} pairs that round-trips duplicates and order safely, and an .env-style KEY=VALUE block where values containing spaces or special characters are auto-quoted. Output options cover the four real cases: percent-encode keys and values with encodeURIComponent, switch the space encoding between %20 (RFC 3986) and + (application/x-www-form-urlencoded), sort keys alphabetically or keep input order, dedupe repeated keys by keeping the first or last occurrence, skip rows whose value is blank, and choose whether the rebuilt query starts with a question mark. Useful for marketers cleaning up campaign URLs, support engineers reproducing a bug from a customer-pasted link, analysts auditing tracking parameters, developers building OAuth or signed-request URLs, and QA folk who need to flip a single feature flag in a long staging URL without breaking the encoding. Everything runs locally in your browser. The URLs you paste here are never uploaded to a server.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
URL Parser
Break a URL into protocol, host, path, query params, and fragment with decoded values.
Open tool
DeveloperURL Cleaner
Remove tracking parameters from one URL or a batch of URLs at once.
Open tool
DeveloperURL Encoder Decoder
Encode and decode percent-encoded URLs.
Open tool
DeveloperJSON to Query String Converter
Two-way converter between JSON objects and URL query strings with four array styles.
Open tool
SEOUTM Builder
Build and parse UTM campaign URLs with live preview, validation, and history.
Open tool
DeveloperCookie Parser
Decode Set-Cookie or Cookie headers with attributes, expiry, and safety warnings.
Open tool