← All tools

SQL Formatter

Paste SQL, pick a dialect that matches your database, and format for readable indentation and upper-case keywords. Editing and highlighting run locally in your browser.

Input
Output

How to use

Choose the dialect that matches your engine so formatting and highlighting follow the right keywords and rules. Press Format to rewrite whitespace and capitalize keywords; copy the result when you are done.