SQL Formatter
Format SQL queries for readability.
Break SQL into readable lines with clause-based line breaks and indentation.
SQL Pretty Print breaks a single-line SQL query into readable lines at clauses such as SELECT, FROM, WHERE, and JOIN. It also supports automatic indentation for AND/OR conditions and switchable comma placement styles, improving readability for code review and documentation.
SQL Formatter is a full-featured tool supporting multiple DBMS dialects. SQL Pretty Print is a lightweight, dependency-free tool focused on simple clause-based line breaks and indentation.
It's a SQL style where, when wrapping a column list, each comma is placed at the start of the next line rather than the end of the previous one (e.g. ", name").
No. Content inside single-quoted, double-quoted, and backtick-quoted strings is protected and left unchanged.
No. All processing happens in your browser.