Loading tool…
Paste a messy SQL query to reformat it with consistent keyword casing and indentation. Great for cleaning up one-line queries from logs and ORMs.
Loading tool…
Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.
Readable SQL is easier to review, debug and maintain. This formatter puts major clauses (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY) on their own lines and indents conditions and column lists.
It normalises keyword casing to uppercase, breaks the query into logical lines, and indents AND/OR conditions and selected columns so the structure is clear at a glance.
It's a lightweight client-side beautifier ideal for SELECT/INSERT/UPDATE/DELETE statements. For dialect-specific linting, pair it with your database's own tools.