Pretty-print messy SQL into clean, indented queries — 11 dialects, your choice of keyword case — on your device.
Paste SQL below, or drop a file · formatted on your device, nothing uploaded
No size limit · files are processed on your device and never uploaded · how it works
SQL in
Formatted
Pretty-prints and indents SQL for 11 dialects, with keyword casing you choose. Runs entirely in your browser — queries never leave your device.
Runs in your browser. Files are never uploaded — you can go offline after the page loads.
How to use the SQL Formatter
Paste SQL, or drop a .sql file.
Pick the dialect, keyword case and indent.
Copy the formatted query or download the .sql.
Easy to use
Drop files, pick options, download. Whole folders at once, no signup, no daily limit.
Best quality
The same engines the professionals use — SVGO, resvg, MozJPEG, libwebp, libavif — compiled to run in your browser.
Private & secure
Files are processed on your device and never uploaded. Close the tab and nothing remains anywhere.
Turn a one-line query into readable SQL
Paste a cramped, one-line query and get it laid out with proper indentation, one clause per line and consistent
keyword casing — far easier to read, review and debug. Choose the dialect that matches your database (MySQL,
PostgreSQL, SQLite, BigQuery, SQL Server, Oracle and more) so quoting and syntax are handled correctly.
Formatting runs entirely in your browser, so queries that mention real table and column names never leave your
device. For other data work, see the JSON formatter and
CSV to JSON.
Frequently asked questions
Which SQL dialects are supported?
Standard SQL plus MySQL, MariaDB, PostgreSQL, SQLite, BigQuery, Snowflake, Redshift, Spark, SQL Server (T-SQL) and Oracle PL/SQL — pick the one matching your database for the best formatting.
Are my queries sent anywhere?
No — formatting runs entirely in your browser, so even queries with real table and column names stay on your device.
Most online converters upload your file to a server. InfyTool ships the actual encoders to your browser as WebAssembly instead, so processing happens inside your tab — faster for batches, and nothing to delete afterwards.
No upload, ever. Turn off Wi-Fi after the page loads and every tool keeps working.
No limits. No file-size cap, no queue, no watermark, no account.
Runs on your CPU. Batches use several cores in parallel; nothing is throttled.