SheepDev

SQL formatter

SQL formatter lets you format PostgreSQL, MySQL, or SQLite SQL without connecting to a database in your browser.

SQL formatter

⌂ Inputs and results stay in this browser and are not automatically stored or sent.

Settings
Waiting for input

Input & settings

SQLSQL · 0 B
Edit & view

Output

Waiting for input

Complete text result

How to use

Paste SQL, select the database dialect, and format it to follow SELECT, JOIN, and WHERE relationships.

Formatting does not prove correctness or performance. No database connection, execution, or query-plan retrieval occurs; verify against the target DB specification and a suitable test environment before use.

Examples

select id,name from users where active=true order by name;

Principles and limits

Each input is limited to 1,048,576 bytes, output to 33,554,432 bytes, and processing to 5,000 ms. Input is never silently truncated.

Guides

Related tools

SQL and test data

SQL placeholder converter

SQL placeholder converter lets you convert named placeholders while preserving SQL strings and comments in your browser.

SQL and test data

JSON/CSV → INSERT

JSON/CSV → INSERT lets you convert JSON or CSV to reviewable dialect-aware INSERT statements in your browser.