Free Online SQL Formatter
SQLinForm Online SQL Formatter offers what no other free tool can match: over 200 formatting options to customize your SQL exactly the way you want it. Format SQL for Oracle, SQL Server, MySQL, PostgreSQL, DB2, SQLite, Redshift, Sybase, Access, MDX and many more databases.
Features include: customizable indentation, alignment options (River Style, Axis Style), keyword case conversion (UPPER/lower/Capitalized), comment handling, and full support for complex statements including CTEs, window functions, MERGE, and stored procedures.
All processing happens locally in your browser using WebAssembly – your SQL never leaves your computer. No registration required, no data collection, completely free to use.
General Options
?ID033
ID002
ID005
ID071
ID018
ID160
ID007
Upper/Lower Keywords
?Lower/Upper Case Options
ID157
ID003
ID158
My Lower/Upper Case Keywords
ID113
Alignment
?Comma Alignment
ID066
Alias Alignment
ID049
Equal Sign & Operators
ID073
ID074
ID031
ID032
ID060
Output Format
?NO-FORMATTING Sections
ID105
ID106
ID107
Line Length
ID022
Comments
?Line Comments
ID076
Block Comments
ID077
ID050
ID115
ID116
ID057
ID154
Delete Comments
ID035
White Spaces
?White Spaces Options
ID040
ID036
ID045
ID072
Shift Complete SQL Statement by Spaces
ID070
SQL
?Small SQL Linebreaks (Pro)
ID027
Align Master Keywords (Pro)
ID034
Linebreak Delimiter (Pro)
ID152
SELECT
?ID148
FROM
ID182
ID143
INTO
ID185
ID159
WHERE
WHERE
ID183
ID142
WHERE Condition
ID172
ID173
ID174
HAVING
HAVING
ID184
ID153
HAVING Condition
ID175
ID176
ID177
GROUP BY
ID186
ID145
ID135
ORDER BY
ID187
ID144
ID136
Sub-Select & CTE
?Align & Indent Sub-SELECT Statement
ID255
ID028
Sub-SELECT Brackets
ID087
ID016
ID089
ID090
JOIN
?JOIN Statement
ID063
ID146
ID068
ON Condition
ID062
ID147
ID131
JOIN Condition
ID178
ID179
ID180
INSERT
?INSERT Brackets
ID108
ID109
ID110
ID111
Columns and Values
ID112
ID149
Commas
ID207
ID208
UPDATE, DELETE
UPDATE
ID150
ID209
ID210
ID211
ID212
DELETE
ID151
MERGE
?MERGE
ID213
USING
ID214
ID215
ON
ID216
ID217
ON Condition
ID218
ID219
ID220
WHEN Condition
ID221
ID222
ID223
THEN
ID224
Comma Separated Lists in SQL Statemets
?ID065
Linebreak After Comma
ID013
Linebreak Before Comma
ID012
ID122
ID242
ID181
Concat Operator ('||')
ID058
ID059
My List for SQL Functions 1
?ID194
ID196
ID197
ID225
ID228
ID198
ID231
My List for SQL Functions 2
My List for SQL Functions 3
Conditions in Brackets
?ID088
ID017
ID091
ID092
ID069
Analytic Expressions - OVER
?Brackets
ID234
ID235
ID236
ID237
PARTITION BY / ORDER BY
ID240
ID241
Stack & Indenting
ID238
ID239
CASE Keywords
?CASE / END
ID026
ID042
ID044
ID121
WHEN
ID055
ID043
ID048
THEN
ID052
ID046
ID085
ELSE
ID053
ID047
ID086
CASE Conditions
Brackets
ID117
ID118
ID119
ID120
AND/OR
ID056
ID061
Small CASE Statements
ID067
ANSI DDL
?Linebreak Before Comma
ID249
Linebreak After Comma
ID250
ID251
ID252
Brackets
ID188
ID189
ID190
ID191
Indenting
ID192
ID193
My CREATE Keywords
ID195
IF THEN ELSE
?IF
ID037
THEN
ID038
ID039
ELSE
ID041
ID024
ID025
Extract SQL from Code
?ID021
Generate SQL Code
Pre-Defined Programming Language
ID001
ID054
My Output Format - Settings
ID161
ID163
ID164
ID166
Invisible
ID000
ID004
ID006
ID008
ID009
ID010
ID011
ID014
ID015
ID019
ID020
ID023
ID029
ID030
ID051
ID064
ID075
ID078
ID079
ID080
ID081
ID082
ID083
ID084
ID093
ID094
ID097
ID098
ID099
ID100
ID101
ID102
ID103
ID104
ID114
ID123
ID124
ID125
ID126
ID127
ID128
ID129
ID130
ID132
ID133
ID134
ID137
ID138
ID139
ID140
ID141
ID155
ID156
ID162
ID165
ID167
ID168
ID169
ID170
ID171
ID243
ID244
ID245
ID246
ID247
ID248
ID253
ID254