Diff Checker
Compare two blocks of text and see what changed.
Need to make a SQL query easier to read and understand? This tool formats raw SQL into a clean, consistently structured layout, with improved indentation, SQL keywords capitalized, and major clauses arranged on separate lines. Whether you're tidying up a complex query, reviewing database code, debugging a statement, or preparing SQL for documentation, it helps make your code more readable and easier to maintain. The formatted output updates live as you type.
Simply paste your SQL query to see the formatted version, ready to copy into your editor or project. Everything is processed directly in your browser, with nothing sent to a server, keeping your queries private and under your control.
Formatting happens in your browser. Nothing is uploaded.
The SQL formatter tidies up a raw query so it's easier to read and review.
Formatting happens entirely in your browser.
Words like SELECT, FROM and WHERE are uppercased; your table and column names are left exactly as typed.
This tool is built for a single SELECT, INSERT, UPDATE or DELETE statement at a time, including simple subqueries.
No. It only changes whitespace, line breaks and the capitalization of SQL keywords — the query's logic, table names and column names are untouched.
It works on standard ANSI SQL syntax shared by MySQL, PostgreSQL, SQL Server and SQLite — common clauses like SELECT, JOIN, WHERE, GROUP BY and ORDER BY. Dialect-specific extensions are passed through unformatted rather than rejected.
Subqueries that start with SELECT are formatted and indented on their own. Other parenthesized expressions, like a list of values in an IN (...) clause, are kept on one line to stay compact.
No. Formatting runs locally in your browser.
Compare two blocks of text and see what changed.
Convert data between JSON and CSV formats.
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.