SQL Formatter
Format SQL into clean, readable statements.
How to use this tool
Paste an SQL statement and format it to make clauses and indentation easier to read. Copy the result into a review, documentation or your database editor.
Understanding the result
The formatter does not execute SQL or validate it against a database. Review dialect-specific syntax and quoted values before running the statement elsewhere.
Processing and privacy
Calculations, file conversion and text processing run in your browser. Your input is not uploaded to a conversion server. Keep source data and results separately. Some tools retain working state on this device so you can continue later.