Format and beautify SQL queries with proper indentation and keyword uppercasing.
Runs in your browser
Well-formatted SQL is dramatically easier to read, debug, and maintain than compressed or inconsistently indented queries. The SQL Formatter automatically applies consistent indentation, keyword casing, and line breaks to raw or minified SQL queries, transforming walls of text into clean, structured code. It supports standard SQL as well as dialects like MySQL, PostgreSQL, SQLite, and T-SQL.