Dev Tools

SQL Formatter

Format, beautify, and syntax-highlight SQL queries locally in your browser.

SQL input
Formatted output
SELECT u . id ,
u . name ,
u . email ,
o . total
FROM users u
INNER JOIN orders o
  ON u . id = o . user_id
WHERE u . active = TRUE
AND o . total > 100
ORDER BY o . total DESC
LIMIT 50 ;
Was this page helpful?

Related tools