Toolyard

SQL Formatter

How to format SQL

  1. Paste your SQL query into the box.
  2. Choose your database dialect, keyword case and indentation.
  3. The formatted SQL appears below as you type. Copy it back into your editor.

Frequently asked questions

Does formatting change what the query does?

No. Only spaces, line breaks and, if you choose, the case of keywords change. Names, strings and values stay exactly as they are.

Is my SQL sent anywhere?

No. It is formatted in your browser, so queries with private table names or data stay on your device.

More developer tools