What this tool does
Query String Generator uses URLSearchParams to encode the Key and Value of each row. It does not force the Key to be unique, so multi-valued parameters such as tag=a and tag=b can be output in the original order; the generated result is only text and no network request is initiated.
- Supports any number of parameter rows and repeated keys.
- Optionally add a question mark before the result.
- Unicode, whitespace, and structure delimiters are encoded according to query rules.
How to use it
- Fill in the first set of Key and Value.
- Click "Add Parameters" to create more rows if needed.
- Select whether to include leading question marks and click Generate.
- Copy the resulting Query String.
Common uses
- Construct URL parameters with multiple filters.
- Generate query string containing Chinese search terms.
- Test the backend's handling of duplicate parameters.
Privacy and security
Inputs and results are processed only in your browser's memory. Nothing is uploaded, sent to an online API, or stored automatically.
Query String Generator Features
Generates a correctly encoded Query String from multi-line key-value parameters, allowing duplicate Keys. Useful for everyday development and debugging; results can be reviewed, copied, or downloaded immediately.
FAQ
Can I add the same Key?
Yes. Repeated parameters will be retained in the order they were entered.
Will null values be deleted?
No, an empty Value will generate key=; an empty Key will also be retained or prompted according to explicit rules.
How are spaces encoded?
URLSearchParams are usually encoded as plus signs corresponding to spaces according to query form rules.
Will the address be accessed after generation?
No, the page only outputs the query string text.