URL & HTTP Tools

Query String Generator

Add, delete, and adjust parameter rows to generate standard-encoded query strings.

Query ParametersAllow duplicate keys

Generates a correctly encoded Query String from multi-line key-value parameters, allowing duplicate Keys.

Inputs are only processed in your browser and are not uploaded to the server.

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

  1. Fill in the first set of Key and Value.
  2. Click "Add Parameters" to create more rows if needed.
  3. Select whether to include leading question marks and click Generate.
  4. 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

Your input and results stay in your browser and are not uploaded or saved automatically. Copy any results you want to keep and save them yourself before leaving the page.

Query String Generator Features

Generates a correctly encoded Query String from multi-line key-value parameters, allowing duplicate Keys. Review the result, then copy it for use.

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.

Back to Developer Tools