Home › Developer Tools › SQL Formatter
Format SQL in your browser · no server · supports SELECT INSERT UPDATE DELETE CREATE
1. Paste your SQL
Drop in any SQL query - a single SELECT, a complex JOIN with subqueries, a stored procedure, or a minified one-liner from a log.
2. Choose your dialect
Select your database dialect (MySQL, PostgreSQL, SQL Server, SQLite) to apply the correct keyword casing and syntax rules.
3. Copy the formatted query
Get the cleaned, indented SQL back in seconds - ready to paste into your query editor, documentation, or code review.
JSON Formatter
Format JSON output from SQL queries or API responses.
CSV to JSON
Convert SQL export CSV files to JSON format.
JSON to CSV
Convert query results in JSON back to CSV.
Hash Generator
Generate hashes for SQL-stored password fields.
- Formats complex queries - JOINs, subqueries, CTEs, CASE expressions, and stored procedures.
- Dialect-aware - handles MySQL, PostgreSQL, T-SQL, and SQLite keyword and syntax differences.
- Uppercase keywords, indented clauses - consistent output following widely used SQL style conventions.
- Client-side processing - query content never leaves your browser.