SQL Formatter
Choose a dialect and action, paste your SQL, and format. Copy the output or share a link that restores your input and settings.
- Select a SQL dialect
- Choose Format or Minify
- Paste your SQL into the textarea
- Click Format or Minify
- Copy the output or copy a shareable link
Is my data safe?
Yes. All formatting happens in your browser using sql-formatter. No data is ever sent to a server.
Which SQL dialects are supported?
Supported dialects: Generic SQL, MySQL, PostgreSQL, SQLite, BigQuery, and Transact-SQL. Pick the one closest to your database.
How do shareable links work?
Use Copy link to get a shareable URL that restores your input, dialect, and action for anyone who opens it.