SQL Formatter

Paste a SQL query and get it back with each main part on its own line, so it is easier to read.

1 Paste or type your text

2 Your answer

Your answer shows here as you type.

How to use the SQL Formatter

  1. Paste your SQL query.
  2. Main words like SELECT and WHERE turn into capitals, one part to a line.
  3. Copy the result.

Frequently asked questions

Does formatting change what my query does?

No. It only changes capital letters and line breaks. Words inside quotes are changed too, so check text values after formatting.

What does a SQL formatter do?

It puts each main part of a query, like SELECT, FROM and WHERE, on its own line so the query is easier to read.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.