Skip to content
Form → SQL queryDeveloper tools

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.

About this tool

About SQL Query Builder

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.

SQL Query Builder tool

When a query builder helps

Correct SQL without the syntax hunt

Reports from a database

Orders per city with totals.

ExampleGROUP BY city, SUM(total).

Loading a spreadsheet

Rows from Excel into a table.

ExampleINSERT with 200 rows.

App development

Queries with placeholders.

ExampleWHERE id = $1.

Learning SQL

See how each option changes the query.

ExampleLEFT JOIN vs INNER JOIN.

Moving between databases

Same query, other dialect.

ExampleLIMIT becomes OFFSET FETCH.

Careful updates

Check the WHERE before you run it.

ExampleUPDATE one price.

SQL tips

Fewer surprises in production

Test UPDATE and DELETE first

Run the same WHERE as a SELECT to see which rows will change, or work inside a transaction.

Use placeholders in apps

Never paste user input into SQL text; send values separately through the driver.

Order before you limit

Without ORDER BY, a page of results can differ every time.

NULL is not a value

Use is empty (NULL) rather than = NULL; the tool switches it for you.

Tidy a long query

Format and indent SQL.

Open SQL Formatter

Turn INSERTs into data

SQL rows to JSON.

Open SQL to JSON
Built & tested by

HemantInsights

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

Answers and guidanceFrequently Asked Questions
Which databases does it support?
MySQL and MariaDB, PostgreSQL, SQLite and SQL Server. Quoting of names, paging (LIMIT, TOP or OFFSET FETCH), true and false, and placeholders follow the chosen one.
How are values written?
Numbers, true, false and NULL as they are; anything else as text in single quotes with quotes inside doubled. Put quotes around a number to keep it as text, or start with = for an expression such as =NOW().
Can I paste rows from Excel?
Yes. Choose INSERT and paste; tabs, commas and semicolons all work, and the first row can be the column names.
How do AND and OR work together?
Each condition says AND or OR. When both are used, the tool puts the AND groups in brackets, so the query matches what you see.
What are placeholders for?
They keep values out of the SQL text, which prevents SQL injection. The tool lists the values in the order your driver needs.
Does it run the query?
No. It only writes the SQL; nothing connects to your database.
Is anything uploaded?
No. The query is built in your browser.
More tools for your workflowRelated Tools

SQL Query Formatter

Format SQL as you type: one column per line, joins and conditions on their own lines, subqueries indented. Strings and comments never change.

SQL Minifier & Formatter

Minify SQL into one compact line or format it for reading. Strings, quoted names and comments are handled safely, with keyword uppercasing and size savings.

SQL to JSON

Turn SQL INSERT statements from a database dump into JSON, one object per row, with column names from the INSERT or the CREATE TABLE. All tables at once, also CSV. No upload.

JSON Formatter

Format, validate and minify JSON: 2 spaces, 4 spaces or tabs, sort keys, see the exact line and column of errors, fix trailing commas and quotes, copy or download.

1 / 3
Browse all developer tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.