Formatters

SQL Formatter

Lay out a SQL statement with one clause per line.

How to use SQL Formatter

SQL Formatter — Lay a SQL statement out with one major clause per line and keywords in uppercase. Free to use in D2i DevTools — no account required.

Steps

  1. Fill in SQL. This field is required.
  2. Click Run and copy the result under the form.

Frequently asked questions

What is SQL Formatter used for?

Use it to read a query that was pasted as a single line before you review or commit it.

How do I use the free online SQL Formatter tool?

Fill in SQL. This field is required. Click Run and copy the result under the form.

What can I paste or upload into SQL Formatter?

Paste one SQL statement. Text inside single or double quotes is left as you typed it.

What output does SQL Formatter give me?

The same statement with SELECT, FROM, WHERE, and similar clauses on their own lines. Strings are not rewritten.

Is SQL Formatter free, and is my input private?

Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.

Will this rewrite table or column names?

No. Only known keywords are uppercased. Identifiers, numbers, and quoted text stay as they were.

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.