Overview
Instant SQL Formatter is the free online version of SQL Pretty Printer, a formatting product from Gudu Software, the company behind the General SQL Parser library. You paste a query or script, choose the database dialect (or leave it on auto-detect) and press Format. The SQL comes back with consistent indentation, line breaks and keyword casing.
Its main strength is dialect coverage. The page lists more than thirty database systems, including SQL Server, Oracle PL/SQL, MySQL, PostgreSQL, DB2, Snowflake, BigQuery, Redshift, Teradata and Hive, and it handles stored procedures as well as single statements. The site says it can also tidy SQL that is incomplete or contains errors. There are detailed options for the case of keywords, table names, columns, functions and data types, comma placement, stacked or unstacked lists, and a compact mode that works as a minifier. Output is not limited to plain SQL: it can be coloured HTML for a blog or wiki, or the query wrapped as a string in C#, Java, PHP, VB or Delphi code. A dataflow view draws a diagram of how data moves through the query.
The online formatter is free and needs no sign-up. Gudu Software sells a desktop version, add-ins for SQL Server Management Studio and Visual Studio, formatting APIs and an on-premises edition. Formatting happens on the company's server, which matters if your queries are sensitive.
Categories
Features
- Formats SQL for more than 30 database dialects with auto-detection
- Handles stored procedures such as T-SQL and PL/SQL
- Separate case settings for keywords, tables, columns, functions, data types and aliases
- Comma placement, list stacking and alignment options
- Compact mode that minifies SQL to a chosen line length
- Output as plain SQL, coloured HTML or a string in C#, Java, PHP, VB or Delphi
- Dataflow diagram of the formatted query
- XML output and a listing of database objects used
Privacy
The privacy policy says that when you use the online formatter your SQL script is sent to the company's server, formatted and returned, and that queries are never stored there. It also says the site uses cookies.
Pros & Cons
Pros
- Unusually wide dialect support, including data warehouse engines
- Fine-grained formatting options
- Free online with no sign-up or installation
- Can wrap a query as a string for several programming languages
Cons
- SQL is sent to the vendor's server for formatting
- The options panel is dense and takes time to learn
- Desktop version, editor add-ins, APIs and the on-premises edition are paid products
- The page promotes the vendor's other commercial tools
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
SQL Tools · SQL Formatter
Formats and beautifies SQL queries.
Free No Signup Web API