SQL Query Builder
Build SELECT, INSERT, UPDATE and DELETE queries for MySQL, PostgreSQL, SQLite and SQL Server: joins, AND/OR conditions, GROUP BY, paging, rows pasted from a spreadsheet, and safe placeholders.
Build SELECT, INSERT, UPDATE and DELETE queries for MySQL, PostgreSQL, SQLite and SQL Server: joins, AND/OR conditions, GROUP BY, paging, rows pasted from a spreadsheet, and safe placeholders.
About this tool
SQL Query Builder writes correct SQL from a short form, so you do not have to remember the exact syntax of each database. Pick the query type (SELECT, INSERT, UPDATE or DELETE) and the database: MySQL or MariaDB, PostgreSQL, SQLite or SQL Server. The query updates as you type and is coloured for easy reading. For SELECT you choose the columns, including functions such as COUNT(*) AS orders, add joins (inner, left, right or full) with their ON condition, and add as many conditions as you need: equals, not equals, greater or less than, contains, starts with, ends with, a LIKE pattern, is one of a list, between two values, and is or is not NULL. Each condition is joined with AND or OR, and when both are used the tool adds brackets, so the result means what you meant. GROUP BY, HAVING, ORDER BY, a row limit and rows to skip complete the query; SQL Server gets TOP or OFFSET and FETCH instead of LIMIT. Values are typed for you: numbers, true, false and NULL are written as they are, and text is put in single quotes with any quote inside it doubled, so a name like O’Neil cannot break the query. Start a value with = to insert an expression such as =NOW(). Table and column names are quoted only when they need it (reserved words such as order, or names with spaces), with backticks for MySQL, double quotes for PostgreSQL and SQLite, and square brackets for SQL Server, or always if you tick Quote every name. For INSERT, paste rows straight from Excel or Google Sheets; the first row can hold the column names, and empty cells can become NULL. For UPDATE, list the columns to change. Tick Placeholders instead of values to get ?, $1 or @p1 in the query and the values listed in order, ready for your database driver. Warnings point out an UPDATE or DELETE without WHERE, a join without ON, a limit without ORDER BY, a column that is not in GROUP BY, and joins a database does not support. Copy the query or download it as a .sql file. Nothing is sent anywhere.

SELECT, INSERT, UPDATE or DELETE.
MySQL, PostgreSQL, SQLite or SQL Server.
AND, OR, IN, BETWEEN, NULL.
Query or .sql file.
Right quotes, limits and joins.
Numbers bare, text safely quoted.
INNER, LEFT, GROUP BY, HAVING.
Paste from Excel into INSERT.
Values kept out of the SQL.
No WHERE? You are told.
Correct SQL without the syntax hunt
Orders per city with totals.
ExampleGROUP BY city, SUM(total).
Rows from Excel into a table.
ExampleINSERT with 200 rows.
Queries with placeholders.
ExampleWHERE id = $1.
See how each option changes the query.
ExampleLEFT JOIN vs INNER JOIN.
Same query, other dialect.
ExampleLIMIT becomes OFFSET FETCH.
Check the WHERE before you run it.
ExampleUPDATE one price.
Fewer surprises in production
Run the same WHERE as a SELECT to see which rows will change, or work inside a transaction.
Never paste user input into SQL text; send values separately through the driver.
Without ORDER BY, a page of results can differ every time.
Use is empty (NULL) rather than = NULL; the tool switches it for you.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed SQL Query Builder and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 29 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.