SQL formatter
Format or compact SQL locally with dialect, indentation and keyword case controls.
Text, files and images are processed in your browser and are not uploaded.
Result
Run the tool to see the result.
How to use
Choose a dialect and paste SQL or open a UTF-8 file up to 1 MB. Format supports indentation and keyword case; Minify reduces whitespace while preserving comments, hints and quoted content. Download the result as SQL or reuse it as input. SQL is processed locally and is never executed.