Skip to main content
t
lify
PDF
Image
Utility
Media
Tools
⌘K
Home
PDF
Image
Media
More
SQ
03
·
Utility
/
sql-formatter
SQL Formatter
in-browser
⌘K
How it works
Paste a SQL query into the editor.
Click Format to pretty-print or Minify to compress.
Copy the result to clipboard.
Related
{}
JSON Formatter
±
Diff Checker
Aa
Text Case Converter
</>
XML Formatter
Input SQL
Indent:
2 spaces
4 spaces
Uppercase keywords
Format
Minify
Quick Answers
(3)
What SQL dialects are supported?
The formatter works with standard SQL syntax and handles common keywords from MySQL, PostgreSQL, SQLite, and SQL Server.
Does it validate my SQL?
No, this is a formatting tool only. It reformats the structure of your SQL but does not check for syntax errors.
Is my SQL sent to a server?
No. All formatting and minification happens entirely in your browser. Your SQL never leaves your device.