SQL Query Validator
Check SQL for unclosed strings, unbalanced brackets, clause order, trailing commas, = NULL, UPDATE without WHERE and dialect mistakes.
Open toolTurn CSV or JSON into INSERT statements, or a CREATE TABLE with inferred column types, for PostgreSQL, MySQL, SQLite or SQL Server.
Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.
Column types are guessed from the sample you paste; review them before creating production tables. Generated SQL is for loading data you trust; for user input at runtime, use parameterised queries.
Paste CSV with a header row, or a JSON array of objects, choose the dialect and table name, and get multi-row INSERT statements. Strings are escaped correctly for each database (doubled quotes everywhere, and doubled backslashes for MySQL, which treats \ as an escape), numbers and booleans are written unquoted, and empty cells can become NULL. Large inputs are split into batches; SQL Server's limit of 1,000 rows per VALUES list is applied automatically.
Switch the output to CREATE TABLE (or both) to get a table definition with column types inferred from the data: integer, bigint, decimal with precision and scale, float, boolean, date, timestamp or text/varchar, mapped to each dialect's type names. Column names are cleaned into safe identifiers, and you can pick a primary key. Everything runs in your browser. What you paste is never uploaded, logged or stored.
Your code or text
CSV with header, JSON array of objects, PostgreSQL / MySQL / SQLite / SQL Server output
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste CSV or JSON.
Choose the dialect, table name and output (INSERT, CREATE TABLE or both).
Check the detected column types, then copy or download the .sql file.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Choose the dialect, table name and output (INSERT, CREATE TABLE or both).
Check the detected column types, then copy or download the .sql file.
Check SQL for unclosed strings, unbalanced brackets, clause order, trailing commas, = NULL, UPDATE without WHERE and dialect mistakes.
Open toolOpen large CSV and TSV files as a sortable, searchable table without Excel.
Open toolConvert JSON arrays to CSV, flattening nested objects into columns, ready for Excel.
Open toolBeautify SQL queries with consistent indentation and keyword case for 16 database dialects.
Open tool