Skip to main content

Code & Data

SQL formatter

Format SQL queries for standard SQL, PostgreSQL, MySQL, SQLite or SQL Server.

  1. 1Fill in the values
  2. 2Click Run
  3. 3See results instantly

Limits

  • Formatting only. The query is not run or checked against a database.
  • Unusual syntax can fail to parse; try another dialect if you see an error.

Ask the AI chat

The AI chat can run this tool for you. Try:

  • “format sql: select * from users where id = 1”