Formatter · MySQL
Format MySQL SQL online
Reformat MySQL queries against MySQL's own grammar: consistent indentation, aligned clauses and uppercase keywords. Paste one-line or ORM-generated SQL and get structured, reviewable output.
1Paste your MySQL query into the editor.
2Press Format — or ⌘↵.
3Copy clean, highlighted SQL.
Why format MySQL?
MySQL uses backtick-quoted identifiers and functions like GROUP_CONCAT, IFNULL and LIMIT … OFFSET. The formatter recognises MySQL's grammar (and MariaDB's) so backticks and MySQL-only functions are preserved, not treated as errors.
Handy when you paste a query straight out of the MySQL general log or an ORM like Sequelize, where everything arrives on one line.