Need deeper database checks? Open the DB Toolkit — SQL review, EXPLAIN plans, index advisor, schema comparison and parameters.
Format SQL, generate SELECT/INSERT/UPDATE/DELETE queries, design tables and indexes for six popular database dialects. No database connection or signup required.
Safe, reviewable SQL templates with quoted identifiers and escaped text. UPDATE and DELETE require a WHERE condition.
String values are escaped. For IN use a JSON array, e.g. ["active","pending"].
Choose column types, primary keys, identity fields and constraints for PostgreSQL, MySQL, SQLite, SQL Server and Oracle.
Select a primary key and optionally an auto-generated identity. SQLite uses INTEGER PRIMARY KEY; PostgreSQL uses GENERATED AS IDENTITY. Review migration strategy before running.
The table name and database selector are shared with Query Generator. All output is preview-only.
Everything you need to know about formatting and fixing SQL online.
A SQL formatter takes raw or minified SQL queries and reformats them with proper indentation, line breaks, and keyword capitalization, making them easier to read and debug.
SQL formatting runs in your browser. See the privacy policy for information about site analytics and data handling.
The formatter supports Generic SQL, MySQL, PostgreSQL, MSSQL, SQLite, and Oracle through the dialect selector in the toolbar.
Review & Format beautifies text without automatically repairing or executing SQL. Review queries against your database schema.
Minify removes all unnecessary whitespace and line breaks, compressing the query to a single line. Useful for embedding SQL in application code or reducing config file size.
Processing happens in your browser, with a 50,000-character limit for the existing formatter. Split larger inputs into smaller statements.
Yes. Choose a database dialect to generate SELECT, INSERT, UPDATE, DELETE, CREATE TABLE or CREATE INDEX templates, then review the SQL before using it in your environment.
No. SQL generation and formatting run locally in your browser. No database credentials, connections or execution are provided.
Found a bug? Have a suggestion? We read every message.
✓ Thank you!
We appreciate your feedback and will look into it.