utilitech

SQL Formatter

Format and beautify SQL for MySQL, PostgreSQL, SQL Server, Oracle, SQLite and more — or minify it to one line.

Input

337 characters

Output

2 statements · 27 lines
How to use
  • Paste one or more SQL statements, pick your database dialect and the output updates as you type.
  • Choose the indent and whether keywords, functions and data types are written in UPPER or lower case, or kept as you typed them.
  • Minify puts the query on one line and removes comments — handy for logs or code strings. Text inside quotes is never changed.
Good to know
  • The formatter only changes spacing and letter case — it doesn't run or check your query against a database.
  • Your SQL is formatted in your browser and never sent to a server.