🌐
Dpriver
dpriver.com β€Ί pp β€Ί sqlformat.htm
Instant SQL Formatter & Beautifier Online
Free online sql formatting tool, beautify sql code instantly for SQL Server, Oracle, MySQL, PostgreSQL, BigQuery, Snowflake, Redshift, and more
🌐
Sqlformat
sqlformat.org
sqlformat: Online SQL Formatter
Format SQL statements online. Format and check your SQL statements, made a bit more easy.
Discussions

πŸš€ New Online SQL Formatter β€” fast, free, and no signup required
Hey folks, I work a lot with SQL and always got annoyed wasting time trying to keep queries readable and consistent. Different dialects, messy… More on reddit.com
🌐 r/SQL
15
0
August 24, 2025
SQL auto formatter
I like this https://sqlfluff.com/ More on reddit.com
🌐 r/dataengineering
32
44
May 24, 2024
Can you recommend a sql formatter?
Dear colleagues, Which SQL formatter would you recommend? In our organization, we have coding standards. My problem is, there are to many of them. As I am responsible for the repositories containing SQL, I want to enforce a single standard by… More on learn.microsoft.com
🌐 learn.microsoft.com
13
0
Best SQL formatter I've found
If you have some money to spend and are working with MSSQL, I cannot recommend RedGate's SQL Prompt enough. Code refactoring is a breeze, and you can upload a style parameter file for the rest of your data warehousing team, so everything follows the same standard. It also supports code snippets and wildcard expansion. By typing this: ssf item ij itemvend on (down x3, enter) where desc li 'screw%' After hitting CTRL +K, CTRL + Y and pressing TAB in front of the asterisk in SELECT * FROM, I am presented with this: SELECT [item].[item] , [item].[description] , [item].[qty_allocjob] . . . , [itemvend].[firm_pln_target] , [itemvend].[firmed_poitem_stat] , [itemvend].[replen_po_num] FROM [item] INNER JOIN [itemvend] ON [item].[item] = [itemvend].[item] WHERE [item].[description] LIKE 'screw%' Worth its weight in gold. More on reddit.com
🌐 r/SQL
23
31
November 24, 2014
🌐
Code Beautify
codebeautify.org β€Ί sqlformatter
SQL Formatter & Beautifier Online
Best and Free online SQL Formatter tool, SQL Beautifier for SQL Server, Oracle, DB2, MySQL, MariaDB, Sybase, Access and MDX. It uses SQL Parser to Pretty Print SQL
🌐
GitHub
github.com β€Ί sql-formatter-org β€Ί sql-formatter
GitHub - sql-formatter-org/sql-formatter: A whitespace formatter for different query languages Β· GitHub
A whitespace formatter for different query languages - sql-formatter-org/sql-formatter
Starred by 2.9K users
Forked by 450 users
Languages Β  TypeScript 96.3% | Nearley 1.4% | JavaScript 1.2%
🌐
Visual Studio Marketplace
marketplace.visualstudio.com β€Ί items
SQL Formatter - Visual Studio Marketplace
Extension for Visual Studio - Adds support for the Format Document command for SQL files. Use Ctrl+K, Ctrl+D to execute the command to format the document. Configure the formatting behavior through options.
🌐
Poorsql
poorsql.com
Poor SQL - Instant Free and Open-Source T-SQL Formatting
PoorSQL.com is a free online T-SQL formatting service using the open-source .Net 2.0 Poor Man's T-SQL Formatter library.
Find elsewhere
🌐
Redgate Software
red-gate.com β€Ί home β€Ί website β€Ί sql formatter
SQL Formatter, Beautifier & Prettifier β€” Free Online Tool
Free online SQL formatter and beautifier β€” paste your SQL, choose a style, and get clean output instantly. Powered by SQL Prompt, Redgate's SQL formatting tool for SSMS and VS Code.
🌐
Microsoft Store
apps.microsoft.com β€Ί detail β€Ί 9pfmf7jrv6mj
SQL Formatter - Free download and install on Windows | Microsoft Store
Want to format your SQL files so they are more readable? Use this free SQL formatter software today and you can format your SQL files for free. To get started using this SQL formatter, here is what you need to do. Copy and paste some SQL code in or load the SQL file from your local computer.
🌐
Reddit
reddit.com β€Ί r/dataengineering β€Ί sql auto formatter
r/dataengineering on Reddit: SQL auto formatter
May 24, 2024 -

What' the best options nowadays for SQL formatting?

There are many diverging conventions and SQL dialects, I know, but one standard must stand out so that we keep our sanity. Like python's black formatter.

What auto formatters are out there and what you recommend?

🌐
Aiven
aiven.io β€Ί tools β€Ί sql-formatter
Free SQL Formatter - Beautify Your Queries Online
Instantly format and beautify SQL queries with Aiven’s SQL query formatter. Enhanced readability for PostgreSQL, MySQL, T-SQL, DB2 and more.
🌐
Explo
explo.co β€Ί sql-tools β€Ί sql-formatter
SQL Formatter
Below is a tool to paste in your SQL, click 'Format SQL', then get your SQL formatted automatically for you!
🌐
DB Vis
dbvis.com β€Ί thetable β€Ί sql-formatter-definition-and-best-tools
SQL Formatter: Definition and Best Tools
May 20, 2024 - An SQL formatter is a tool that parses SQL statements to format them according to some specific style guidelines. Thanks to such tools, you can automatically transform messy SQL code into readable and easier-to-manage SQL code.
🌐
Reddit
reddit.com β€Ί r/sql β€Ί best sql formatter i've found
r/SQL on Reddit: Best SQL formatter I've found
November 24, 2014 -

Instant SQL Formatter has been the best formatter I've found so far. Previously, Poor SQL was the easiest with most of the options I needed.

This is the same as Instant SQL Formatter and clicking on the 100+ options version.

I've been able to customize indenting, case statements, comma placement in lists, and how to break out statements in parenthesis. Our data warehousing team is starting to use it to keep a department standard for formatting so it is easier to read but still allows for folks to write in whichever way appeals to them.

🌐
Ssmsboost
ssmsboost.com β€Ί Features β€Ί ssms-add-in-format-sql-document
Format/Re-Format SQL Document or selected part of code: SSMSBoost Add-in for SQL Server Management Studio
Run SSMSBoost ->Query->SQL Format style templates editor Β· Change template options and they will immediately be applied to your code. Hit "Save changes" when you are done Now that you have created your own formatting template you can choose it on the toolbar in the formatting drop-down and hit "Format" anytime to format your SQL code.
🌐
Sequel
sequel.sh β€Ί tools β€Ί sql formatter
Free SQL Formatter Online | Sequel
Free online SQL formatter. Paste any SQL query and instantly get clean, readable, indented SQL. Supports PostgreSQL, MySQL, Snowflake, BigQuery, SQLite, Redshift, Spark, MariaDB, SQL Server, and ClickHouse dialects. Runs entirely in your browser β€” no data is sent to any server.
🌐
Reddit
reddit.com β€Ί r/sqlserver β€Ί is ssms 21 not having a sql formatter a way to appease existing third party tools or an oversight?
r/SQLServer on Reddit: Is SSMS 21 not having a sql formatter a way to appease existing third party tools or an oversight?
September 18, 2025 -

Disclaimer: I know some developers will say using auto-formatting is a crutch/bad practice yada yada yada but I like it

Even though SSMS 21 is adding a lot of visual studio features and is based on visual studio, I noticed one thing it lacks is a formatter for sql. It looks like SSMS still relies on third party tools like Apex Refactor or Redgate SQL prompt for quickly formatting. Obviously the new features far outweigh the missing/lacking stuff but it got me thinking, is this intentional or an oversight?

🌐
SQLinForm
sqlinform.com
SQL Formatter Online & Desktop – 200+ Options
Professional SQL Formatter for 25+ databases. Available as VS Code, SSMS, Notepad++, DBeaver plugin or desktop app. 200+ formatting options. Free download.