How to format SQL
- 1
Paste your SQL query.
- 2
Format it to put each clause on its own line with consistent indentation.
- 3
Copy the clean query back into your editor.
Questions
Does formatting change what my query does?
No. Only spaces, line breaks and keyword case change. The query runs the same.
Does it run my query?
No. It never connects to a database; it only rewrites the text.
Is my data uploaded anywhere?
No. This tool runs entirely in your browser, so what you paste never leaves your device.