Skip to content
Ovatly

SQL Formatter

100% PrivateDeveloper Tools

Format SQL queries with uppercase keywords and clean clause layout, for eight dialects.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

  1. 1Paste your SQL statement into the input box.
  2. 2Choose the dialect your database uses.
  3. 3Press Format SQL.
  4. 4Copy or download the formatted query.

About this tool

The SQL Formatter lays out queries with keywords in upper case and clauses on their own lines, for eight dialects including PostgreSQL, MySQL and SQL Server. A formatted query is faster to review, easier to diff in code review, and much easier to debug than a one-line string copied out of application code.

Related tools

Advertisement

Part of Ovatly's free tools in Developer Tools.