SQL Formatter
Download is available when the selected formatter accepts the current text. This does not validate execution against a database.
About SQL Formatter
Format SQL and compare queries without running them.
Choose a SQL dialect and indentation, then format one query or compare two in Diff.
Copy formatted SQL into a review or editor; execute it only in the database environment you intend.
The calculation or rendering runs in this browser tab. Copy, download and share actions make the chosen output available outside this tab.
Worked example
- Input / settings
- select 1 as value;
- Action
- Format using SQL and 2-space indentation
- Result
- SELECT, 1 AS value and the semicolon are arranged as formatted SQL.
Scope and limits
- The formatter does not connect to a database or validate table names. Choose the actual dialect; unsupported grammar may fail.
Frequently asked questions
- Does formatting execute SQL?
- No. It changes presentation and compares text; it does not run queries or prove their semantic equivalence.
For account, sync, advertising and analytics data flows, see the Privacy Policy.