Skip to main content
ssvpune

SQL Formatter

SQL Formatter

Uppercase SQL keywords and lay out clauses on separate lines.

Use tool ↓

About this tool

This is a lightweight, regex-based SQL formatter — not a full SQL parser. It recognizes common keywords (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY and more), uppercases them, and places major clauses on new lines to make hand-written or minified queries easier to read. Very complex nested subqueries or vendor-specific syntax may not format perfectly.

Examples

  • "select id,name from users where active=1 order by name" formats into SELECT / FROM / WHERE / ORDER BY on separate lines.

Frequently asked questions

Related utilities