Categories
Query String Generator
Enter keys and values to generate a query string.
Overview
Builds a URL-encoded query string just by entering key-value pairs.
Values containing Japanese text or symbols are automatically URL-encoded, so there is no need to encode them by hand.
You can easily build a query string with multiple parameters by adding more rows.
Usage
- 1
Enter a key and value. Use the "Add row" button to add more input fields.
- 2
Click the "Generate" button.
- 3
The URL-encoded query string is displayed. Use the "Copy" button to copy it to the clipboard.
Example
Input
id=123 name=taro
Output
?id=123&name=taro
Use Cases
Building query parameters to attach to an API request or link, without worrying about value encoding
Generating multiple search conditions (keyword, category, page number, etc.) together as a test query string
Generating parameter values containing Japanese text or symbols without manual URL-encoding mistakes
FAQ
Are the keys and values I enter sent anywhere?
No. Generation is handled entirely in your browser using the standard URLSearchParams API.
Are values automatically URL-encoded?
Yes. Values containing non-ASCII characters or symbols are automatically URL-encoded.
Can I use the same key more than once?
Yes. Adding multiple rows with the same key outputs them in the order you added them.
Notes
A row with an empty key name is excluded from the output.
Adding multiple rows with the same key outputs them as-is in the order added (duplicates are not removed).
The generated result exists only on the page and is lost on reload, so copy and save it if you need to keep it.
Related Tools
Break a query string down into a list of keys and values.
Break a URL down into its individual components.
Encode and decode text to and from URL encoding.