Arrange query layout in standard SQL, PostgreSQL, MySQL, SQLite, T-SQL, or BigQuery. Provides dialect examples and indentation options, only handles text, does not connect to or manipulate a database.
It only organizes typesetting, does not connect to the database, does not execute SQL, and does not guarantee that the query will be valid in your database.
64 / 100,000 characters
Shortcut key: Ctrl/⌘+Enter. Modifying inputs or options clears old results.
Keyword case and line breaks are subject to the current formatter output; formatting is not query optimization.
You may have chosen the wrong dialect, or you may have used a syntax that is not supported by the current parser. Check options such as PostgreSQL and MySQL first.
Use SQL Formatter to organize keywords and indentation by the selected dialect. The tool does not connect to the database, execute statements, or check table names, permissions, or execution plans.
Content check:2026-09-08 · About this site and content description