web-utilities

Query String Builder

Build URL query strings with encoding & fragment support

100% Free
Privacy Focused
Instant Results
Works Everywhere
Query String Builder

Build, import and encode URL query strings with per-parameter control, fragment support and syntax-highlighted preview.

#

No parameters yet — click "Add Parameter" to get started.

About This Tool

What is Query String Builder?

Query String Builder gives you a visual way to construct any URL — enter a base URL, add as many key-value parameters as you need, optionally append a fragment (#hash), and see a colour-coded live preview update as you type. No manual string concatenation, no typos from misplaced & or = characters.

Every parameter row has its own enable/disable checkbox so you can temporarily exclude a parameter without deleting it — useful when testing API endpoints with different combinations. Three encoding modes cover every real-world scenario: No encoding (for keys/values that are already encoded), %20 — RFC 3986 (standard percent-encoding, the safe default), and + — Form encoding (for HTML forms and PHP backends). An active-parameter badge keeps count of how many params are currently on.

To edit an existing URL, paste it into the Base URL field and click Import URL — the tool splits it into the base path, individual parameter rows, and the fragment automatically. When you are done, copy the complete URL or just the raw query string to paste into code.

Features

Powerful Features

Everything you need in one amazing tool

Visual Parameter Builder

Add key-value parameter rows with a clean form interface — no manual string editing or misplaced ampersands

Import Any URL

Paste a full URL and click Import — it instantly splits into the base path, all parameters, and the fragment

Per-Row Enable / Disable

Toggle any parameter on or off with a checkbox — test different combinations without ever deleting a row

Three Encoding Modes

Choose No Encoding, %20 RFC 3986 (standard), or + Form encoding (PHP / HTML forms) — covers every real-world use case

Fragment (#hash) Support

Add a URL fragment with the # field — Import also extracts it automatically from pasted URLs

Copy URL or Query String

Copy the complete built URL or just the raw query string to paste directly into code or API clients

Simple Process

How It Works

Get started in 4 easy steps

1

Enter Base URL

Type your endpoint (e.g. https://api.example.com/search) or paste a full URL and click Import

2

Add Parameters

Click "Add Parameter", fill in a key and value — repeat for as many params as you need

3

Enable / Disable Rows

Use the checkbox on any row to include or exclude it — the preview updates instantly

4

Copy and Use

Copy the full URL or just the query string — paste into your browser, Postman, or code

Why Us

Why Choose Our Query String Builder?

Stand out from the competition

Disable rows without deleting — test parameter combinations without rebuilding from scratch every time

Three encoding modes ensure your output is valid for REST APIs, PHP forms, or raw unencoded use cases

Paste any URL — even with a complex query string and fragment — and all fields are populated automatically

The # field is rare in similar tools but essential for building deep-link URLs with section anchors

Base URL, keys, values and fragment are colour-coded in the live preview so you can spot errors at a glance

Everything runs in your browser — your URLs and parameter values are never sent to any server

Use Cases

Perfect For

See how others are using this tool

API Testing

Build and tweak request URLs for REST APIs — toggle params on/off to isolate which ones affect the response

UTM / Tracking URLs

Construct campaign tracking URLs with utm_source, utm_medium, utm_campaign and other parameters without mistakes

Search & Filter URLs

Build complex search URLs with filters, sorting and pagination params for e-commerce or SaaS products

Debug Query Strings

Paste a broken URL to parse it, fix the parameters visually, then copy the corrected version

Shareable Deep Links

Create links that pre-fill forms or anchor to a specific section using the # fragment field

Frontend Development

Generate query strings for client-side routing, fetch calls, and third-party API integrations during development

Frequently Asked Questions

Everything you need to know about Query String Builder

%20 (RFC 3986) is the standard percent-encoding for a space character in any part of a URL. It works correctly in all contexts — path segments, query strings, and headers. + (application/x-www-form-urlencoded) is a historic shorthand for space that only applies inside query strings. It originated from HTML form submission and is understood by PHP ($_GET), classic web forms, and some APIs. Use %20 (RFC 3986) as the safe default for REST APIs and modern backends. Use + only when integrating with PHP or HTML form-based endpoints that explicitly expect it. Our tool lets you choose: pick "No Encoding", "%20 — RFC 3986", or "+ — Form (PHP / HTML)".

Characters that MUST be encoded inside parameter values: & (separates params, encode as %26), = (separates key from value, encode as %3D), # (marks fragment start, encode as %23), + (means space in form encoding, encode as %2B), % itself (encode as %25). Characters that SHOULD be encoded for safety: space (%20 or +), <, >, ", {, }, |, \, ^, `. Characters that are SAFE and do not need encoding: A–Z, a–z, 0–9 and - _ . ~ Using encodeURIComponent() in JavaScript covers all required cases and is what our %20 mode uses. Our "No Encoding" mode lets you pass pre-encoded values without double-encoding them.

There is no single standard — the convention depends on your backend framework. The most common patterns: Repeated keys (most universal): ids=1&ids=2&ids=3 — works with Express, Django, Rails, and most servers. PHP bracket notation: ids[]=1&ids[]=2&ids[]=3 — produces an array in $_GET["ids"]. Indexed notation: ids[0]=1&ids[1]=2 — useful when order matters. Comma-separated: ids=1,2,3 — requires server-side splitting. Best practice: check your API docs or backend framework. To use repeated keys in this tool, just add multiple rows with the same key name.

The fragment (anything after #) is a client-side anchor that tells the browser to scroll to a specific element on the page with that id. It is never sent to the server. Common uses: Anchor links — https://docs.example.com/api#authentication jumps to the section with id="authentication". Single-page app routing — frameworks like React and Vue use the hash for client-side routes (#/dashboard). Deep links — links that open an app to a specific screen or section. State preservation — some tools encode state in the fragment so it survives page reloads without a server round-trip. Important: because the fragment is not sent to the server, it cannot be read by server-side code and does not affect SEO.

There is no official maximum in the HTTP spec, but real-world limits exist. Safe limit: 2,000 characters (works across all major browsers and servers). Browser limits: Chrome and Firefox support very long URLs (64K+). IE and older Edge had a 2,083 character limit. Server limits: nginx default header buffer is 4K–8K. Apache default is 8K. IIS default is 16K. All are configurable. What breaks at long lengths: bookmarks may truncate silently, browser history may not store the full URL, some proxies and CDNs impose their own limits, 414 "Request-URI Too Long" errors from servers. Fix: if your query string pushes past 2K, switch to a POST request with a JSON body instead.

No. The Query String Builder is 100% client-side JavaScript. Everything — encoding, parsing, building — happens in your browser. No URL, parameter key, parameter value, or fragment is ever transmitted to No Code Vista servers or any third party. This makes it safe to use with internal API endpoints, staging URLs, credentials in query strings (though passing credentials in URLs is not recommended), and any other sensitive or private URLs.

Need a Custom Website Built?

While you use our free tools, let us build your professional website. Fast, affordable, and hassle-free.

Free forever plan
• No credit card required