SQL Viewer & Formatter
NewHighlight, validate and format SQL for MySQL, PostgreSQL, SQLite and more.
How to use the SQL Viewer & Formatter
- 1Drop a .sql file or paste a query.
- 2Pick your database dialect to check the syntax.
- 3Format with your preferred keyword case and indentation, then copy or download.
Frequently asked questions
Which SQL dialects are supported?
MySQL, MariaDB, PostgreSQL, SQLite, SQL Server (T-SQL), BigQuery, Snowflake, Redshift and Trino.
Does the checker run my queries?
No. It only parses the text to find syntax errors. Nothing is executed and no database is involved.