Query String Builder
Build URL query strings from key-value parameters, encode values, preview the final URL, and copy clean API query strings directly in your browser.
Add a full URL when you want a complete final URL, or leave this empty when you only need the query string.
Query Parameters
Add the keys and values you want to include in the query string.
Output Options
Output
Query string output will appear here.
Building Query Strings for API URLs
Query strings are used in API requests, search pages, filters, tracking links, pagination, and many debugging tasks. They look simple at first, but encoding spaces, symbols, arrays, and repeated values by hand can quickly become messy.
This Query String Builder lets you add parameters as normal key-value rows and then copy a clean query string or full URL. It is useful when testing APIs, creating links, checking encoded values, or preparing request examples for notes and documentation.
Creating a Query String Without Hand-Encoding Values
- Add a base URL if you want the final output to include one.
- Enter each query parameter as a key and value pair.
- Choose URL encoded or readable output.
- Pick how comma-separated array values should be written.
- Copy the query string, full URL, or JSON object output.
Common Query String Builder Use Cases
- Building API URLs with filters, search terms, and pagination.
- Encoding spaces, symbols, and special characters correctly.
- Testing repeated query parameters for API endpoints.
- Creating readable query examples for documentation or support notes.
- Checking how array values should appear in a request URL.
- Preparing clean URLs for browser, cURL, fetch, or Postman testing.
Example Query String
Base URL: https://api.example.com/search Parameters: search = developer tools page = 1 tags = api,http,json Output: https://api.example.com/search?search=developer%20tools&page=1&tags=api&tags=http&tags=json
A Note About Array Query Parameters
APIs do not all handle arrays the same way. Some expect repeated keys like tag=api&tag=http, some expect brackets like tag[]=api&tag[]=http, and some expect one comma-separated value.
Choose the array format that matches the API you are testing. When in doubt, check the API documentation or try the exact format your endpoint expects.
Frequently Asked Questions
What is a query string builder?
A query string builder creates URL query parameters from normal key-value pairs so you do not have to type and encode the full query string manually.
Does this encode special characters?
Yes. URL encoded mode encodes spaces, symbols, and special characters so the query string is safer to use in URLs.
Can I build a full URL?
Yes. Add a base URL and choose Full URL output to combine the base URL with the query string.
How do array values work?
Enter comma-separated values and choose repeated keys, brackets, or comma-separated output depending on what your API expects.
Are my URLs uploaded anywhere?
No. Query string building happens directly in your browser, and your values are not uploaded to a server.
