Query String Editor
Visually add, remove, edit, sort, encode, and decode the query parameters of any URL. Everything runs in your browser with the native URL and URLSearchParams APIs, so your links stay completely private.
How to Edit a Query String
- 1
Paste a URL
Paste a URL into the input field. The editor parses it, separates the base from the query string, and lists every existing parameter as an editable key-value row. If the URL cannot be parsed, it falls back to using the part before the question mark as the base.
- 2
Edit the parameters
Change any key or value directly in its field, click Add Parameter to insert a new empty row, or press the X button to remove a parameter you no longer want. The rebuilt URL updates live after every change, so there is nothing to submit.
- 3
Sort, encode, or decode
Use Sort A-Z to order parameters alphabetically by key, Clear All to empty the list, Encode All Values to percent-encode every value, and Decode All Values to reverse it. These batch actions save you from editing one value at a time.
- 4
Copy the output URL
The output URL reflects your edits in real time, rebuilt through the URL object so the query string is always well-formed. When it looks right, click Copy URL to send the finished link to your clipboard.
Why Use a Query String Editor?
Edit Without Breaking the URL
Hand-editing a query string in the address bar is risky — one misplaced ampersand or unescaped space breaks the link. The editor rebuilds the URL through URLSearchParams after every change, so the structure and encoding stay correct no matter what you do to the parameters.
Batch Encode, Decode, and Sort
When a URL carries a dozen parameters, doing anything by hand is tedious. One click encodes or decodes every value, and another sorts them alphabetically, which makes it fast to clean up a messy query string or produce a canonical, comparable form.
Completely Private
All parsing and rebuilding happens on the client. You can edit URLs containing session tokens, signed parameters, or internal hostnames without any of it being logged or sent to a server.
No Setup, Works Everywhere
There is nothing to install and no account to create. The editor loads in any modern browser on desktop or mobile, ready whenever you need to tweak a link on the spot.
Common Scenarios
Tweaking Campaign Parameters
When you need to adjust the utm_source or utm_campaign on an existing link, pasting it into the editor lets you change just those values in their own fields and copy the rebuilt URL. There is no risk of accidentally deleting an ampersand or corrupting another parameter while you edit.
Cleaning Up a Bloated Tracking URL
Shared links often arrive with a long tail of tracking parameters you do not want to pass on. Load the URL, remove the rows you do not need with the X button, optionally sort the rest, and copy a clean, minimal link ready to share.
Fixing Encoding Problems
If a value has been double-encoded or left raw, Decode All Values lets you bring every parameter back to readable text, fix what is wrong, and then Encode All Values to re-escape consistently — far quicker than working through each value individually.
Tips and Best Practices
Edit Decoded, Copy Encoded
Work with readable values in the fields and let the editor handle encoding when it rebuilds the URL. If you paste an already-encoded value into a field, you can end up double-encoding it, so decode first if you are unsure.
Sort for a Canonical Form
Sorting parameters alphabetically gives two URLs with the same parameters an identical string, which is useful when you are comparing links, generating cache keys, or deduplicating a list.
Mind Duplicate Keys
A URL can legitimately repeat a key, such as tag=a&tag=b. The editor preserves each occurrence as its own row, so review the list before removing what looks like a duplicate — it may be intentional.
Pair It With the Parser
Use the URL Parser first to understand a link, then switch to this editor to change it. The parser inspects, the editor modifies — together they cover the full read-and-write cycle for query strings.
Compared to Alternatives
The most common way to edit a query string is straight in the browser address bar, but that treats the URL as one long string where a single mistyped ampersand or unescaped space silently breaks the link. This editor splits the query into labelled key-value rows and rebuilds the URL through URLSearchParams, so the structure and encoding stay correct however you edit.
Developers sometimes reach for the console and manipulate searchParams by hand. That is accurate and private, but it means opening devtools and writing append, delete, and sort calls for each change. The editor gives you the same URLSearchParams-backed result through a table and a handful of buttons, which is far faster for interactive editing.
Many online query-string tools send the URL you paste to a server to parse and rebuild it, which is a problem when a parameter holds a token or a signed value. Because this editor runs entirely in your browser with the APIs your browser already ships, sensitive URLs never leave the page while you still get standards-compliant output and zero setup on any device.
Frequently Asked Questions
What are query parameters?
They are the key-value pairs after the ? in a URL. In https://example.com?name=hello&age=25, name and age are keys with values hello and 25. The editor reads them with URLSearchParams and lets you change them visually.
Can I add and remove parameters?
Yes. Add Parameter inserts a new empty key-value row, you edit the key and value inline, and the X button deletes a row. The output URL rebuilds automatically after each change.
How do Encode All and Decode All work?
Encode All Values runs encodeURIComponent on every value, and Decode All Values runs decodeURIComponent on every value, so you can batch-handle percent-encoding instead of editing each one by hand.
Can I sort the parameters?
Yes. Sort A-Z orders all parameters alphabetically by key, which is handy for producing a canonical, consistent query string you can compare or deduplicate.
Is my data safe?
Completely. The editor runs entirely in your browser and never transmits the URLs you paste, so you can edit links containing tokens or internal hostnames with no privacy concern.
What happens to duplicate keys?
Each occurrence of a repeated key is kept as its own row, so a URL like tag=a&tag=b is preserved exactly. Review the rows before deleting anything that looks like a duplicate, as it may be intentional.
Need to edit more links? Explore the full URL Shuttle toolkit.
Back to URL Shuttle