Free website audit in 60 seconds
Skip to content
Webmaster.ae
  • Loading…
Webmaster.ae
Free website auditSpeed, SEO, security and email, with a PDF report

Follow us

Runs in your browserFree · no sign-up

SQL formatter

Paste a SQL query to format it with consistent indentation and line breaks, in the dialect you use — PostgreSQL, MySQL, MariaDB, SQLite, SQL Server or BigQuery. Nothing leaves your browser.

Live resultUpdates as you type

Press “Format SQL” to see the result here.

How do I use the SQL formatter?

SQL formatter: frequently asked questions

Which SQL dialects are supported?

PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), BigQuery and standard SQL.

Does it run my query?

No. It only reformats the text.

Is my query uploaded?

No. Formatting runs in your browser.

Why uppercase keywords?

It makes keywords stand out from table and column names. Untick it to keep your original case.

Can it format several statements?

Yes. Separate them with semicolons.

Why did formatting fail?

Usually a syntax the chosen dialect does not recognise. Try another dialect or check the query.

Is there an API for this tool?

Selected tools are available through a rate-limited public API. Contact us if you need higher volumes.

Is the sql formatter free?

Yes. It is free with no sign-up and no usage limits for normal use.

Is my data sent to your servers?

No. This tool runs entirely in your browser, so what you type never leaves your device.

Does it work on my phone?

Yes. The tool works in any modern browser on iPhone, Android, tablet or computer.