Runs in your browser

Text & Code

SQL Formatter

Format common SQL dialects locally with indentation and keyword-case options.

Runs locally in your browser
Loading the local workbench…

About this tool

Format SQL locally using an explicit dialect, indentation style, and keyword case. This tool does not validate or execute queries and never connects to a database.

Common uses

  • Format PostgreSQL and MySQL queries
  • Normalize SQL keyword casing
  • Prepare readable SQL for review