Skip to content
tooljig
PricingSecurity
tooljig

Exact tools. Nothing leaves your device. Small, exact tools for everyday work. Most run entirely in your browser.

Instruments

  • Text tools
  • Developer tools
  • Calculators
  • Date & time
  • Converters
  • Generators

Files

  • PDF
  • Image
  • Video & Audio
  • Data
  • Web

Tooljig

  • Pricing
  • Security
  • Dashboard
  • About
  • Contact
  • Privacy
  • Terms
© 2026 TooljigFiles processed in the cloud are deleted automatically
Index / Developer tools / T-51

T-51 · Developer tools

SQL Formatter

Format SQL queries for PostgreSQL, MySQL, SQL Server, SQLite, BigQuery, Snowflake, Oracle and more. Choose keyword case and indentation.

  • Runs in your browser
  • Nothing uploaded
  • No account
Instrument T-51 · SQL FormatterLocal
spaces

About this instrument

What it does

Paste a query, even one long line, to lay it out with one clause per line and indented column lists, joins and subqueries. Pick your SQL dialect so its quoting, operators and keywords are recognised, choose whether keywords are upper case, lower case or kept as typed, and set the indent width or use tabs. Formatting uses the open-source sql-formatter library and runs in your browser.

How to use it

  1. Paste your SQL.
  2. Choose the dialect, keyword case and indentation.
  3. Copy or download the formatted query.

Limits and notes

Good to know

  • Formatting is done by sql-formatter 15.9. It does not support stored procedures or changing the statement delimiter, and it does not check that the query is valid for your database.
  • If the formatter cannot parse the query, the error shows where it stopped. Picking the right dialect fixes many of these: [bracketed] names, for example, are rejected as Standard SQL or MySQL but accepted as SQL Server (T-SQL).

FAQ

Common questions.

01Will formatting change what my query does?+

No. Only whitespace and, if you choose it, the case of keywords are changed. Identifiers, strings and values are left as written.

02Can it format several statements at once?+

Yes. Statements separated by semicolons are formatted one after another, with a blank line between them.

03Is my SQL sent to a server?+

No. The formatter library is loaded into this page and runs locally, so queries containing table names or data stay on your device.

Related instruments

  • T-05JSON FormatterFormat, validate and minify JSON with clear error messages that point to the line and column. Runs entirely in your browser.Local↗
  • T-49XML FormatterPretty-print or minify XML with 2 or 4 spaces or tabs, and check it is well-formed. Errors show the line and column of the first problem.Local↗
  • T-50CSS MinifierMinify CSS to cut file size, or beautify it with one declaration per line. Strings, url() values and calc() spacing are kept safe. Shows % saved.Local↗