Back to articles
Format SQL Queries in Seconds — No Extensions, No Installs

Format SQL Queries in Seconds — No Extensions, No Installs

via Dev.to WebdevDanny Cranmer

Ever stare at a 400-character single-line SQL query in a Slack message and try to figure out what it's joining? SELECT u . id , u . name , o . total FROM users u INNER JOIN orders o ON u . id = o . user_id WHERE o . created_at > '2026-01-01' AND u . active = true ORDER BY o . total DESC LIMIT 50 ; You could paste it into your IDE. Or install a VS Code extension. Or you could just... paste it into a browser tab and get this: SELECT u . id , u . name , o . total FROM users u INNER JOIN orders o ON u . id = o . user_id WHERE o . created_at > '2026-01-01' AND u . active = true ORDER BY o . total DESC LIMIT 50 ; I built a SQL Formatter as part of DevToolbox — a collection of browser-based dev tools. Paste SQL in, get formatted SQL out. Also minifies if you need to go the other way. Same deal for YAML Debugging a Kubernetes manifest? CI pipeline config? The YAML Validator catches syntax errors with line numbers and can convert between YAML and JSON. Paste broken YAML, get instant error highl

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
7 views

Related Articles