SQL Parameter Bind
Combine placeholder SQL (?) with a bindings array into executable SQL. Processing stays in your browser.
Result
How to use
About this tool
Binds placeholder SQL (?) with a bindings array (e.g. Laravel logs) into executable SQL. Runs entirely in your browser.
How to use
Paste a log snippet, or enter SQL and a JSON bindings array separately. Use the sample to check the format, then copy the result into a DB client.
Use cases
• Re-run Laravel query logs • Share executable SQL in support tickets • Debug logs that include bindings
How it works
Replaces positional ? in order. Strings are single-quoted with ' escaped as ''; null → NULL; booleans → TRUE/FALSE; numbers as-is (dialect differences apply). :name, $1, and skipping ? inside strings/comments are out of v1 scope.
Privacy and data
Input is processed only in your browser; nothing is sent or stored on a server. Be careful with secrets in production logs.
FAQ
- Q: Which placeholder styles are supported?
- A: v1 supports positional ? only (Laravel/PDO style). Named :name and PostgreSQL $1 are not supported yet.
- Q: Is my SQL uploaded?
- A: No. Binding runs entirely in your browser.
- Q: How are strings quoted?
- A: Strings use single quotes; internal ' becomes ''. Booleans become TRUE/FALSE; null becomes NULL.
