Format and Validate

SQL Formatter

Format SQL queries for easier reading.

Local processing

This tool is designed to run in your browser. Do not paste secrets or production credentials into any online tool.

How to use this tool

Paste your input, choose an action, review the result, then copy the output when it looks correct. Invalid input shows a readable error instead of silently changing your data.

Example

Input

select id,name from users where active=1 order by name

Output

SELECT
  id,
  name
FROM users
WHERE active = 1
ORDER BY name

FAQ

Does this execute SQL?

No. It only formats text and never connects to a database.

Which SQL dialect is used?

The MVP uses a generic SQL formatter suitable for common queries.

Should I paste sensitive queries?

Avoid pasting secrets or credentials. The formatter runs locally, but caution is still recommended.