Pretty Lush

SQL Formatter

Paste a SQL query and sql-formatter puts each clause on its own line, uppercases keywords and indents joins and subqueries, with your indent of choice.

FAQ

How do I format SQL online?
Paste your SQL into the input pane and press Format (⌘/Ctrl + Enter). Pretty Lush formats it with sql-formatter in your browser and shows the result side by side, ready to copy, download or share.
Is my code uploaded anywhere?
No. Formatting runs entirely in your browser; the code you paste is not sent to a server. The only feature that talks to a backend is the optional encrypted share link, which encrypts the snippet in your browser first.