SQL Formatter
Format and beautify SQL queries in your browser. Your SQL is not sent to Docspira.
Formatted SQL
Your SQL is formatted in this browser and is not sent to Docspira. The formatter library itself is loaded as a pinned client-side script. Learn more.
Format SQL without executing it
This tool changes whitespace and keyword casing only. It does not connect to a database, execute queries, inspect schemas, or validate SQL semantics.
What this tool does
Beautify SQL so queries are easier to review and share.
Before you start
Formatting changes whitespace and line breaks, not the query's intended clauses; always run the query in the target database afterwards.
Privacy
This tool runs in your browser; the text or file you choose is not uploaded for processing. Read the privacy details.