DEV Community

Danny Cranmer
Danny Cranmer

Posted on

Format SQL Queries in Seconds — No Extensions, No Installs

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;
Enter fullscreen mode Exit fullscreen mode

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;
Enter fullscreen mode Exit fullscreen mode

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 highlighting telling you exactly which line has the problem.

Why browser-based?

No installs, no extensions, works on any machine including locked-down work laptops. Everything runs client-side — nothing gets sent anywhere.

All 25 tools: DevToolbox

Top comments (0)