piko

SQL Formatter

Format SQL statements for the database dialect you use.

Runs on your device. Nothing you add is uploaded.

Formatted SQL
SELECT
  bed,
  count(*) AS plants
FROM
  seedlings
WHERE
  planted_at >= '2026-03-01'
GROUP BY
  bed
ORDER BY
  plants DESC;

How to use SQL Formatter

  1. Paste the SQL source.
  2. Choose your database dialect and indentation.
  3. Copy the output.

Questions

What does the tool change?
Choose the dialect that matches your database. The formatter parses SQL for layout and never executes the statement.
Where is my input processed?
On your device. The tool does not upload the input or its result.

How this works

Uses sql-formatter’s dialect-aware parser and formatter.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy

Related tools

More in Developer