SQL Formatter

Format, beautify, and indent complex SQL queries locally in your browser with keyword capitalization and clean syntax layout.

This tool runs in your browser.
Paste SQL to format.

How to use

  1. 01Paste your minified or unformatted SQL query into the text editor.
  2. 02Click 'Format' to automatically indent clauses and uppercase keywords.
  3. 03Copy the cleaned, readable SQL statement directly to your database console.

FAQ

Which SQL database dialects are supported for formatting?

It handles major standard relational databases, including MySQL, PostgreSQL, Oracle, Microsoft SQL Server, SQLite, and MariaDB statements.

Does this tool execute SQL queries or connect to a database?

No. The formatter is purely a client-side lexical tokenizer and styling tool. It never connects to any database or executes commands.

Is sensitive business query logic uploaded or stored?

No. All SQL parsing runs strictly within your browser local sandbox using JavaScript. No queries or schemas are transmitted over the web.