SQL formatter

Make long SQL readable: keywords in capitals, clauses on their own lines. Works with common dialects.

Mode
Keywords
Indent
Lines between queries
SQL
Formatted
Paste a query to start. Formatting follows the dialect you pick.
  1. 1Paste a query.
  2. 2Pick the dialect and keyword case.
  3. 3Copy the formatted SQL.
Does my data leave my device?
No. Everything you paste or open is processed in your browser and stays on your device.
Does it work offline?
Yes. Once this page has loaded, it keeps working without an internet connection.
Is there a size limit?
No limits from us. Very large inputs can be slow because the work uses your device's memory.

Related tasks

Ready-made settings for common jobs.

Other tools

More tools for everyday coding.