Dialect
Input SQLSQL
OutputSQL
Frequently Asked Questions
How do I use SQL Formatter?
Step 2 — pick the target dialect in the toolbar; different dialects handle keywords, functions and operators slightly differently. Step 3 — the tool formats the query live and shows the result on the right with keywords upper-cased and 2-space indentation.
What can SQL Formatter do?
Typical scenarios: DBAs format long queries to inspect execution plans when tracking slow SQL; developers polish ORM-generated SQL during optimisation; code reviewers normalise SQL to enforce a shared style; database export scripts are…
Is my data private when I use SQL Formatter?
Privacy: SQL statements are processed entirely in your browser and never uploaded, so you can safely format queries that contain sensitive business information such as table names, columns or IP addresses. Privacy: SQL statements are processed entirely in your browser and never uploaded, so you can safely format…
What technical details should I know about SQL Formatter?
String literals (single-quoted content) are preserved unchanged. Keywords are upper-cased by default (configurable), while function names are kept as-is.