SQLfmt

About SQLfmt

A modern, fast SQL formatter built for developers who care about clean, readable queries.

What SQLfmt Does

SQLfmt is a free online SQL formatter and beautifier. Paste any raw, minified, or messy SQL query and click Format to instantly produce clean, consistently indented SQL with proper keyword casing and line breaks.

It also supports Minify — stripping comments and collapsing whitespace into a single-line format, useful for embedding SQL in application code or configuration files.

Eight SQL dialects are supported: Standard SQL, PostgreSQL, MySQL, T-SQL (SQL Server), PL/SQL (Oracle), SQLite, BigQuery, and Trino.

Your SQL Never Leaves Your Browser

This is the most important thing to understand about SQLfmt: all processing happens entirely in your browser. There is no server, no API, no database. Your SQL is never uploaded, logged, or transmitted anywhere.

This matters because SQL often contains sensitive information — table names, column names, business logic, and sometimes actual data values. With SQLfmt, you can safely format production queries without any risk of leaking schema or data to a third party.

Built With

sql-formatter

The formatting engine. Open-source library with 13k+ GitHub stars and multi-dialect support.

Next.js

React framework for the app shell, routing, and static export.

Tailwind CSS

Utility-first CSS for styling. Dark mode via class strategy.

Vercel

Hosting and deployment. Static site — no serverless functions.

Open the FormatterFree, no sign-up required.