What is a query string?
A query string is the part of a URL after the question mark, made of key=value pairs joined by &. Websites use it for searches, filters, pagination and tracking; APIs use it for options. Long query strings are hard to read and easy to break when typed by hand.
Paste a URL or query to list each parameter as key = value, or as JSON. Or type parameters one per line and get an encoded query string, optionally attached to a base URL. You can sort keys and drop empty values, and repeated keys are reported.
How to use the Query string builder and parser
1.Paste a URL, or type key = value lines
The direction is detected automatically.
2.Tidy
Sort keys or drop empty values.
3.Copy
Parameters as lines or JSON, or the finished URL.
Example: a shop search URL
…/search?q=running%20shoes&size=9&colour=red&colour=blue&sort=
- Parameters
- 5: q = running shoes, size = 9, colour ×2, sort (empty)
- Repeated key
- colour
- Built back
- ?q=running%20shoes&size=9&page=2 from three lines
Every parameter is readable, and new ones are encoded correctly.
Encoding and repeated keys
Values are decoded when parsing, so running%20shoes reads as running shoes, and encoded when building, so spaces, &, = and non-English text can't break the URL. Spaces are written as %20, which every server understands.
A key can appear more than once, as in colour=red&colour=blue for multiple selections. Repeated keys are listed, kept in order, and become arrays in the JSON view. Fragments after # aren't sent to servers and are ignored.
Frequently asked questions
Is + a space?
In query strings it traditionally is, and it's decoded that way.
How do I add parameters to an existing URL?
Type key = value lines and put the URL in Base URL; any existing query is replaced.
What does the JSON option do with repeats?
Repeated keys become arrays, like "colour": ["red", "blue"].
Is the URL visited?
No. It's only parsed as text.
Related tools
URL Parser
Break a URL into protocol, host, port, path, query and fragment.
URL Encoder & Decoder
Percent-encode or decode URLs and query values, and see a URL's parts.
UTM link builder
Add UTM campaign tags to links so analytics shows where visits came from.
API request code generator
Build an HTTP request and get cURL, fetch, Axios, Python, HTTPie or PowerShell code.
API tester
Send HTTP requests from your browser and inspect status, timing, headers and body.
HTTP status codes
Every HTTP status code with its name and plain-English meaning.
More Developer tools
JSON & data
CSV tools
Network & system
Git & releases
Encoding & security
- Base64 encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table