Format and beautify SQL queries with configurable indentation and dialect support. Runs in your browser — your data never leaves your machine.
All formatting happens in your browser using JavaScript. Nothing is uploaded to any server. Safe for sensitive business queries.
Supports Standard SQL, MySQL, PostgreSQL, SQL Server, and SQLite. Choose your dialect for accurate formatting.
Optionally convert all SQL keywords to uppercase for consistent, professional-looking queries.
Paste your SQL query into the input panel and click Format. The formatter applies consistent indentation, line breaks, and keyword casing to make your query readable. Choose your SQL dialect, indentation style, and whether to uppercase keywords. Copy the formatted result or download it as a .sql file.
The formatter supports Standard SQL, MySQL, PostgreSQL, SQL Server (T-SQL), and SQLite. Each dialect has its own keyword set and formatting conventions. Selecting the correct dialect ensures that dialect-specific syntax like backticks (MySQL), square brackets (SQL Server), or double-quoted identifiers (PostgreSQL) is handled properly.
Pretty-print or minify JSON with configurable indentation. Free, runs in your browser.
Convert JSON arrays to CSV instantly in your browser. Free, private, no sign-up required.
Pretty-print or minify XML with configurable indentation. Free, runs in your browser.