Paste a SQL query
Paste a SQL query

Tip. This tool beautifies (reformats) SQL — it does not validate whether the query is semantically correct or would run successfully against a real database. Pick the dialect closest to the database you use for the best formatting result. If the query can't be parsed at all (for example, unbalanced parentheses or quotes), an approximate error location is shown. Keywords are uppercased by default, following common SQL style conventions. This tool bundles the open-source sql-formatter library (MIT License) locally, so formatting still happens entirely in your browser.

How to use this tool

Related tips

Related