SQL Formatter
Paste a query — get a clean, indented version.
Formatted
SELECT id, name, email FROM users u INNER JOIN orders o ON o.user_id = u.id WHERE u.active = true AND o.total > 100 ORDER BY o.created_at desc LIMIT 50
About this tool
Pretty-prints SQL queries with consistent indentation, keyword casing and line breaks.
How to use
- 1Paste a SQL query.
- 2Click Format.
- 3Copy the readable version.