SQL Formatter
Beautify or minify SQL. Supports MySQL, PostgreSQL, etc. Runs locally.

SQL Formatter

FAQ

Which SQL dialects are supported?

Standard SQL, MySQL, PostgreSQL, and SQLite. Choose from the dropdown before formatting.

What is the difference between Format and Minify?

Format adds indentation and line breaks for readability. Minify removes all extra whitespace to produce a compact single-line string, useful for reducing payload size.

Is my data safe?

Yes. All formatting runs entirely in your browser using the sql-formatter library. No data is sent to any server.

Security: All processing runs locally in your browser. No data is sent to any server.