Home/SQL Formatter

SQL Formatter

Uppercase your SQL query, highlight keywords and tidy it up.

How to use the SQL Formatter

  1. Paste your SQL query into the box.
  2. Press Format; keywords are uppercased and the query is indented.
  3. Copy the now-readable query.

Frequently Asked Questions

Does formatting change my query?

No. Only whitespace, line breaks and keyword casing change; the query result stays the same. Text inside quotes is not touched.

Which databases is it compatible with?

Standard SQL formatting works for most MySQL, PostgreSQL, SQL Server, SQLite and Oracle queries.

Is my text sent to a server?

No. Everything happens in your browser; the text or code you paste is never sent to any server.