Every parameter you add to a URL by hand is a small act of faith. The question mark, the ampersands and the equals signs all have to land in exactly the right places, and if one character is wrong, nothing complains: the link still opens, it just quietly searches for the wrong words, lands on the wrong page or records the wrong campaign. The Query String Builder on Ovatly replaces the typing with a table. You supply the base URL and one row per parameter, and the builder assembles a finished URL whose punctuation and encoding are correct by construction.
Contents
- Quick answer
- What a query string is
- Why hand-typing goes wrong
- How to add query parameters, step by step
- Worked example: building a search URL
- Encoding: leave it on
- Names are required, values are not
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
To add query parameters to a URL: enter the base URL, add one row per parameter with its name on the left and its value on the right, leave encoding on, and copy the finished URL. Parameters already on the base URL are kept, and the new rows are appended after them. In the Query String Builder, the base https://example.com/search with rows q = red shoes and page = 2 produces https://example.com/search?q=red+shoes&page=2, with the space encoded and each pair joined correctly.
What a query string is
The query string is the part of a URL after the question mark, made of name=value pairs joined by ampersands. It carries search terms, page numbers, tracking codes and similar data: the instructions a page needs beyond its own address.
Each piece of the punctuation has one job. The question mark appears once and starts the string. The equals sign joins a name to its value. The ampersand separates one pair from the next. The receiving site reads the result by name, looking up the parameters it knows and using their values to decide what to show: which search to run, which page of results to display, which campaign to record.
Why hand-typing goes wrong
Because the punctuation is load-bearing, the mistakes are structural rather than cosmetic. A space typed into a value is not a legal URL character. An ampersand inside a value is read as the start of a new parameter, splitting one value into two pieces. A second question mark, added because the base URL already carried a query string, corrupts everything after it.
The real problem is that none of this produces an error you can see. The link opens, the page loads, and the only evidence is wrong data somewhere downstream: a search that returns nothing, a report with a gap in it. Building the string from a table removes the whole class of mistake, because the punctuation is generated rather than typed.
How to add query parameters, step by step
- Open the Query String Builder and enter the base URL, with or without parameters it already has.
- Add one row per parameter: a name on the left, its value on the right.
- Leave encoding on unless you have a specific reason to place values exactly as typed.
- Copy the finished URL from the result box and use it where the link belongs.
Worked example: building a search URL
Base: https://example.com/search Rows: q = red shoes, page = 2 Result: https://example.com/search?q=red+shoes&page=2
Three things happened, all of them automatic. The single question mark was placed between the address and the first pair. The space in "red shoes" became a +, because encoding was on, so the value arrives at the site as two words rather than as a broken address. And the two rows were joined by exactly one ampersand, in the order the rows were written. Typed by hand, each of those is a separate chance to slip; in the table, none of them is typed at all.
Encoding: leave it on
With encoding on, spaces in values become + and characters like & and # are escaped, which is the standard behavior for query strings. Escaping is what lets a value contain those characters without the receiving site mistaking them for structure.
With encoding off, values go in exactly as typed. A value containing & will be read as a new parameter by the receiving site, which is occasionally what testers want and usually a mistake. If you are deliberately testing how a site handles raw input, off is your switch. For campaign links, search URLs, API testing and support links, the kind where one mistyped character silently breaks the tracking or the search, on is the correct default and the one the builder starts with.
Names are required, values are not
A parameter can have an empty value. Give the row a name and leave the value blank, and the URL gets name= with nothing after the equals sign, which some systems use as a flag in its own right.
The reverse is not allowed. A row with a value but no name is rejected, because it cannot be represented: without a name there is nothing for the receiving site to read the value by. If the builder refuses a row, that refusal is the format talking, not the tool being difficult.
Parameters already on the base URL are kept, and new rows are appended after them, so you can extend a link someone else built without dismantling it first.
Limitations and honest tradeoffs
The builder guarantees the assembly: punctuation, encoding and order. It cannot guarantee that the receiving site wants the parameters you send. Sites read parameters by name, so a name the site does not use is simply not read, and the builder has no way to know a site's private list of names. Spelling the names the way the destination expects remains your job.
This is also a general-purpose tool: it handles any parameters for any purpose. If what you are building is a campaign link with the five standard campaign parameters, the UTM Builder in Marketing Tools is the specialized version and will guide the naming more closely.
Common mistakes
- Typing the whole string by hand. Every character is a chance to break the link silently. Use the table.
- Adding a second question mark. If the base URL already has a query string, its parameters are kept and yours are appended; a hand-added ? corrupts the result.
- Turning encoding off without a reason. A value containing & then splits into a new parameter at the receiving site.
- Leaving the name blank. A value with no name is rejected. An empty value with a name is fine and produces name=.
- Assuming row order changes the meaning. Parameters are read by name, so order does not matter for almost all websites.
FAQs
What is a query string? The part of a URL after the question mark, made of name=value pairs joined by ampersands. It carries search terms, page numbers, tracking codes and similar data.
Can a parameter have an empty value? Yes. Give the row a name and leave the value blank, and the URL gets name= with nothing after the equals sign. A row with a value but no name is rejected, because it cannot be represented.
What happens if I turn encoding off? Values go into the URL exactly as typed. A value containing & will be read as a new parameter by the receiving site, which is occasionally what testers want and usually a mistake.
How is this different from the UTM Builder? This builder handles any parameters for any purpose. The UTM Builder in Marketing Tools is specialized for the five standard campaign parameters.
Does the order of rows matter? For almost all websites, no; parameters are read by name. The builder keeps your order anyway, which helps when you compare two links side by side.
Conclusion
Adding query parameters is a formatting job, and formatting jobs belong in tables, not in hand-typed punctuation. The Query String Builder keeps the parameters your base URL already had, appends your rows in order, and encodes the values so they survive the trip. Once the list behind a link is built, the companion job is keeping it clean: our guide to removing duplicate URLs from a list covers that side. For more guides in this series, see our URL and Link Tools guides.
References
- MDN Web Docs, on the URLSearchParams interface for working with query strings: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
- WHATWG, the URL Standard that defines how query strings are parsed: https://url.spec.whatwg.org/