sql2erd
sql2erd SQL Formatter
Zero Server / 100% Client-Side Privacy

SQL Formatter for MySQL, PostgreSQL and Redshift

Indents and wraps a query so it can be read, keeping every comment, string and quoted identifier. The result is then checked token by token against what you pasted — if anything changed, you get the reason instead of the output. Everything runs in your browser.

How the result is verified, the two layouts, and the three cases this tool refuses
SQL input
Formatted SQL

      
Ready