SQL Formatter - Format and Beautify SQL

Select dialect from dropdown and format SQL. Customize indent size and uppercase conversion.

How to Use

  1. Select dialect (MySQL/PostgreSQL etc.)
  2. Enter SQL
  3. Click 'Format' button
  4. Copy formatted SQL

FAQ

Which SQL dialects are supported?
MySQL, PostgreSQL, SQLite, T-SQL (SQL Server), PL/SQL (Oracle), and more are supported.
Is the SQL executed?
No. Only formatting is performed. The SQL is never executed.
Is my data sent to a server?
No. All processing happens in your browser.
How do I use this tool?
Paste your SQL query into the text area and click Format. The tool will output properly indented SQL with consistent keyword casing.
What should I do if the formatted SQL looks wrong?
An error message will appear if there is a syntax error. First verify that your original SQL is valid, and check that the correct dialect is selected.

Related Tools

Update History

Last Updated: 2026-02-21

  • 2026-02-21 Initial release