SQL formatter
Format SQL in your browser with dialect, indentation and keyword case options.
Local processing · Inputs are not uploadedLocal processing: no SQL upload or execution. Up to 100 KiB, with a 4-second timeout.
Paste SQL to start formatting.
Supported scope
Supports common statements in standard SQL, MySQL, PostgreSQL and SQLite. Stored procedures and custom delimiters are unsupported. Other syntax may fail to parse or produce unsuitable formatting.
Formatting does not validate syntax, repair SQL or guarantee semantic equivalence. Review the result before replacing important SQL.
Paste SQL, choose the dialect, indentation and keyword case, then format. Editing input or settings clears old output.
Formatting engine and license
Uses SQL Formatter 15.9.0 (MIT). Third-party licenses are distributed with the static files.
SQL Formatter 15.9.0Related tools
JSON formatter
Validate, format or minify JSON; copy or download the result.
URL encoder / decoder
Encode or decode UTF-8 URL parameters, including Unicode and special characters.
Static QR code
Generate a static QR code from a URL or text, preview it and download PNG or SVG.