SQL formatter
Format SQL queries with the selected dialect, two-space indentation and optional uppercase or lowercase keywords.
How to use
Input
Paste SQL, choose its dialect and keyword case, then format it. Review the result before copying or saving.
Output
Review the result, then copy it or save the file.
Background
SQL formatter
Formatting changes layout and optionally keyword case. Queries are never executed or sent to a database. Dialect-specific syntax needs the matching dialect; this is not a semantic SQL validator.
How input and results are handled
- Input
- Input is processed in your browser.