SQL Beautifier

Beautify and indent SQL code.

100% Private — Nothing is Uploaded

All processing happens locally in your browser. Your files never leave your device and are never sent to any server.

Other languages

About the SQL Beautifier

This tool formats SQL queries for readability. It puts major clauses (SELECT, FROM, WHERE, JOIN, ...) on separate lines and indents AND/OR conditions.

What it does

  • Puts SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY on their own lines.
  • Indents AND / OR conditions.
  • Spaces after commas.
  • Preserves string literals and quoted identifiers.