Formats raw or minified SQL queries into readable, properly indented SQL with keywords uppercased and clauses aligned. Supports standard SQL, MySQL, PostgreSQL, and SQL Server dialects. Handles SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, ALTER TABLE, and complex subqueries and JOINs.
Paste your unformatted SQL and get clean, readable output ready for documentation or code review. For formatting JSON responses from your SQL queries, use the JSON Formatter.
SELECT query
Input
select id,name from users where active=1 order by name
Output
SELECT id, name FROM users WHERE active = 1 ORDER BY name
Beautify, minify, and validate JSON with syntax highlighting.
Format and validate CSV data with custom delimiter options.
Format and beautify JavaScript code with Prettier.
Format, beautify, and validate XML documents.
Convert Markdown to HTML instantly.
Convert HTML markup to clean Markdown syntax.