Toolbox / SQL formatter Runs in your browser中文
Development

SQL formatter

Format queries for your SQL dialect without rewriting string contents.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Format SQL indentation and keyword case for review using the selected database dialect.

Actions: Process

Example

Use generic SQL, uppercase keywords, standard layout, and two-space indentation.

Example action and settings

Action: Process
SQL dialect: sql
Keyword case: Uppercase
Indent style: Standard
Indentation: 2 spaces

Input / action

select id from users;

Result / expected behavior

SELECT
  id
FROM
  users;

Available options: SQL dialect · Keyword case · Indent style · Indentation

Scope and limitations

  • Does not connect to a database or execute queries and does not guarantee semantic validity.

Common mistakes

  • An incorrect dialect can cause parse errors; keywords inside strings are data, not syntax to replace.

Related tools

Text diff

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.