Features
- Pretty-print SQL with proper indentation
- Dialect-aware (PostgreSQL, MySQL, T-SQL, SQLite, Oracle)
- Minify option for embedding in code
- Configurable indentation (2 or 4 spaces, tabs)
- Keyword casing options
- No upload — private for sensitive queries
- Ad-free
How it works
- Open freesqlformatter.app
- Paste SQL into the input
- Choose dialect and formatting options
- Copy formatted output
Common use cases
- Cleaning up dynamically generated SQL from ORMs
- Making code review of SQL easier
- Preparing SQL for documentation
- Minifying for embedding in application code
- Standardizing SQL style across a team
How it compares
SQLFormat.org is the most common result but ad-supported. IDE-based formatters (DataGrip, pgAdmin) are more integrated but require install. Freesqlformatter is ad-free browser-based and supports multiple dialects.
Privacy
SQL stays in your browser — important when formatting queries that contain sensitive schema names or business logic.