Example input
SELECT id, note FROM jobs WHERE note='research and development' AND active=true;
DataHub
Tools
SQL Formatter
Local-first
Format common SQL SELECT, INSERT, UPDATE, and WHERE clauses for quick reading.
The tool loads sql-formatter 15.8.2 locally and formats the input with generic SQL rules, uppercase keywords, and two-space indentation. Token-aware formatting prevents the old regular-expression corruption of strings and comments, but it does not validate database semantics.
SELECT id, note FROM jobs WHERE note='research and development' AND active=true;The WHERE clause is formatted while 'research and development' remains unchanged.Formatting is token-aware but uses generic SQL rules; vendor-specific grammar, templates, and database semantics still require review.
sql-formatter tokenizes input for formatting, while database documentation remains authoritative for dialect grammar and execution semantics.
Sources checked July 24, 2026. Specifications and platform behavior can change; verify the sources before formal use.
The page loads sql-formatter 15.8.2 locally in the browser.
The token-aware formatter keeps string and comment tokens separate from SQL keywords.
No. Formatting does not prove database syntax or semantics.
The current page uses generic SQL formatting; review vendor-specific statements separately.