DEVtoy
Language · English

SQL Formatter

Format SQL queries for SQL, PostgreSQL, MySQL or SQLite. Control keyword case and indentation.

How to use

  1. Paste your input or load the example below.
  2. Adjust the options, then select “Format SQL”.
  3. Review the result, then copy or download it.

No uploads. No account. Processing stays in your browser.

Example input
select a,b from users where id=1 and active=1 order by name

Related tools