🌐
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
Is SSMS 21 not having a sql formatter a way to appease existing third party tools or an oversight?
It's a matter of prioritization. The transition to the full Visual Studio shell "experience" is a huge effort right now that will ultimately be an investment that allows for things like this to be more readily added later. I do not think it's an "appeasement" to 3rd party tools. People have suggested the feature and it's under review by the PM team. https://developercommunity.microsoft.com/t/Format-SQL-code-using-SQL-Server-Managem/10857083?q=formatter&ref=native&refTime=1758201130362&refUserId=ac5ccdbc-b7cd-60c2-98e0-4ca68ca0e9d8 More on reddit.com
🌐 r/SQLServer
46
19
September 18, 2025
🌐
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
January 21, 2026 - 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.
🌐
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?

🌐
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.
🌐
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.
🌐
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.
🌐
GitHub
github.com β€Ί vertical-blank β€Ί sql-formatter
GitHub - vertical-blank/sql-formatter: SQL formatter written with only Java Standard Library, without dependencies. Β· GitHub
SqlFormatter.format('SELECT * FROM tbl', FormatConfig.builder() .indent(" ") // Defaults to two spaces .uppercase(true) // Defaults to false (not safe to use when SQL dialect has case-sensitive identifiers) .linesBetweenQueries(2) // Defaults to 1 .maxColumnLength(100) // Defaults to 50 .params(Arrays.asList("a", "b", "c")) // Map or List.
Starred by 267 users
Forked by 51 users
Languages Β  Java 70.4% | Kotlin 29.6%