Query String Builder

Build URL query strings from key/value pairs with proper encoding. Add, remove, and reorder parameters easily. 100% private. 100% free and private.

How to use

  1. Set the Base URL — Enter the base, like https://example.com/search.
  2. Add Parameters — Type keys and values; encoding is handled for you.
  3. Reorder or Remove — Use the × button to drop a pair.
  4. Copy the Final URL — Use the built URL in your API client, browser, or docs.

Frequently asked questions

Are special characters encoded?

Yes. We use URLSearchParams which percent-encodes spaces, ampersands, slashes, and Unicode automatically per RFC 3986.

Can I have duplicate keys?

Yes. Add the same key twice and it becomes ?key=a&key=b — useful for array-style query strings.

Does empty value still appear?

Yes. An empty value produces ?key= which many servers treat the same as an absent value.

Will the order be preserved?

Yes. Parameters are appended in the order you add them. Some APIs ignore order; others (like signed URLs) depend on it.

Does it encode automatically?

Yes — special characters are percent-encoded as you type.

Can I have duplicate keys?

Yes — the builder preserves order and duplicates.

What is the URL length limit?

Browsers and servers vary; staying under 2 KB is safe.

Does it support # fragments?

Yes — added after the query string if provided.

Is anything stored online?

No. The URL is built entirely in your browser.

Free Query String Builder

Compose URL query strings from named parameters with proper RFC 3986 encoding. Faster and safer than concatenating strings by hand, and great for API calls and tracking links.

Common Uses

  • Build API request URLs
  • Construct tracking links with UTMs
  • Generate share URLs with prefilled state
  • Test backend query parameter handling
  • Demonstrate encoding rules to students

How It Works

We use the browser's URLSearchParams API to encode keys and values, then prepend your base URL with a single question mark. Duplicate keys are supported by appending instead of setting.

Privacy

Everything is built locally in your browser. No URLs are sent anywhere.

Related: URL Parser, URL Encoder/Decoder, MIME Type Lookup.

Related free tools

  • XML Formatter & Minifier — Beautify or minify any XML — SOAP, RSS, SVG, sitemap. Browser-based parser.
  • XML to JSON Converter — Parse any well-formed XML into a clean JSON tree with attributes and arrays.
  • JSON to XML Converter — Convert JSON to well-formed XML — supports attributes, custom root, declaration.
  • CSV Viewer — Open CSV or TSV files in your browser — sort, search, paginate, export filtered view.
  • JSON to CSV Converter — Convert JSON data to CSV format. Export to spreadsheets easily.
  • CSV to JSON Converter — Convert CSV data to JSON format. Useful for API development.
  • JSON Formatter — Format, beautify, or minify JSON with customizable indentation.
  • JSON Validator — Validate JSON syntax and find errors with line and column numbers.
  • HTML Minifier — Compress HTML by removing comments, whitespace, and line breaks.
  • CSS Minifier — Minify CSS by stripping comments, whitespace, and unnecessary characters.
  • JavaScript Minifier — Compress JavaScript by removing comments, whitespace, and empty lines.
  • Base64 Encoder/Decoder — Encode text to Base64 or decode Base64 back to text. UTF-8 support.

Browse all free tools · Guides and tutorials · PDF tools · Developer tools · Text tools · SEO tools