SQL Formatter
Format SQL locally for SQL, PostgreSQL, MySQL or SQLite without executing it.
Ready. Use Ctrl/⌘ + Enter to run.
Completed and failed run counts are stored only on this device.
How to use this tool
Choose the dialect, paste SQL and run. Copy or download the formatted query; no database connection is made.
Supported input and limits
50,000 characters. Formatting is not syntax validation or a guarantee that the statement is safe to execute.
Frequently asked questions
Does the formatter run my SQL?
No. It only formats text. Review all statements before executing them in your own database.
Is my input uploaded?
No. Processing happens in a disposable worker on your device. Only local success/failure counts are saved; input is never stored.
Related tools
JSON ↔ YAML Converter
Convert JSON and YAML 1.2 locally, with duplicate-key and alias limits.
CSV ↔ JSON Converter
Convert CSV tables and JSON arrays of flat objects. CSV output escapes spreadsheet formula prefixes.