Query Parameter Binder
Substitute parameters into a parameterized query for reading, never for running.
- Recent results are kept in this browser's local storage until you clear them.
History kept on this device
Recent results are kept in this browser's local storage until you clear them. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
Parameterized query
Placeholders
| Placeholder | Key | Value |
|---|---|---|
| The placeholders of a valid query are listed here. | ||
Bound query (for reading only)
What this tool does
Takes a parameterized SQL query and its parameter values (from a log line, an ORM debug trace, or a driver error message) and shows what the query looks like with the values substituted and quoted for the chosen dialect so you can read it.
This shows what your query looks like with its parameters filled in, for reading and debugging. It is not a safe way to build a query. Keep using parameter binding in your code.
Example input: select * from users where email = $1 and active = $2
Lexical scanning without a parser
Placeholder detection shares the four-state SQL scanner used by the minifier rather than an AST parser, so log fragments and incomplete statements work while ?, $1, :name, and @name inside string literals, quoted identifiers, comments, and PostgreSQL $$ ... $$ dollar-quoted function bodies are ignored. Substitution walks from the last placeholder offset backwards so earlier replacements never shift subsequent offsets.
Limits
The output is for reading. It is not a query to run, and this tool will not run it. Substituting values into SQL text is the shape of an injection, not a fix for one; the only reason it is safe here is that the result is displayed and never executed. Anything you paste into a database yourself is your decision and not this tool's output being used as intended. Values are quoted for the chosen dialect, which makes the result readable, not equivalent: a driver's own binding may coerce a type differently, so a bound query that behaves differently from the parameterized one is possible and expected.
Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.