How to use SQL Formatter
Paste raw or minified SQL into the input and click Format. The tool applies consistent indentation, uppercase for keywords, and line breaks after clauses to produce readable, review-friendly SQL. Works with SELECT, INSERT, UPDATE, DELETE, and CTEs.
Common use cases
Developers use this to clean up auto-generated or hand-written SQL before committing it to code reviews. Data analysts use it to format ad hoc queries copied from database clients, and DBAs use it to standardise SQL in stored procedures and migration scripts.
Why run this in your browser?
All processing happens locally in your browser. Your data never leaves your machine, making it safe for sensitive payloads, internal API responses, and confidential configurations.