SQL Formatter

Pretty-print SQL queries with consistent indentation.

About this tool

Paste any SQL — SELECT, INSERT, UPDATE, DELETE, JOINs, CTEs — and get a tidier version with keywords capitalised and clauses on their own lines.

An unhandled error has occurred. Reload ×