Private by default · SQL stays in your browser

SQL Formatter Online

Format, beautify, minify, colorize and obfuscate SQL with a developer-focused editor. Choose your dialect, save presets locally, format a selection, import .sql files and export the result.

Runs locally in your browser⌘/Ctrl + Enter to format
Input SQL183 chars
Preset
Share formatter settings
SQL is excluded by default. Turn on “Include SQL” only for non-sensitive queries.

What is an online SQL formatter?

A SQL formatter reorganizes query text into a consistent layout so SELECT lists, joins, conditions, CASE expressions and nested statements are easier to scan. Formatting improves readability but does not prove that a query is valid for a particular database or schema.

PoorSQL-style controls, modern workflow

The advanced panel includes statement and clause breaks, comma expansion, CASE, BETWEEN, IN and JOIN controls, comment preservation, keyword substitutions, obfuscation and legacy randomization options without forcing every setting into the main toolbar.

Supported SQL dialects

Use the dialect selector for Standard SQL, MySQL, PostgreSQL, SQLite, SQL Server / T-SQL, Oracle PL/SQL, BigQuery, Snowflake, MariaDB, DuckDB, ClickHouse, Redshift, Spark SQL and Trino.

Privacy-first sharing

Formatting and settings persistence happen client-side. Share links contain formatting settings only by default. Query text is added to the URL only when you explicitly enable Include SQL.

FAQ

SQL Formatter FAQs

Formatting, dialect, privacy and compatibility questions.

?What does this SQL Formatter do?

It reformats SQL into a readable layout, supports multiple SQL dialects, can minify queries, colorize SQL as HTML, preserve or remove comments, and provides compatibility options for common PoorSQL-style formatting controls.

?Which SQL dialects are supported?

The formatter supports Standard SQL plus common dialects such as MySQL, PostgreSQL, SQLite, SQL Server / T-SQL, Oracle PL/SQL, BigQuery, Snowflake, MariaDB, DuckDB, ClickHouse, Redshift, Spark SQL and Trino / Presto.

?Does AiFolder upload my SQL to a server?

No. Formatting runs locally in your browser. Share URLs exclude your SQL by default, and you must explicitly enable Include SQL before query text is added to a share link.

?Can I minify or obfuscate SQL?

Yes. Minify compacts whitespace while preserving quoted values, and the advanced compatibility panel can obfuscate identifiers for safer structure sharing. Always review obfuscated output before publishing it.

?Can I format only part of a query?

Yes. Select text in the input editor and use Format selection. You can also wrap text in [noformat]...[/noformat] to keep a block unchanged or [minify]...[/minify] to compact only that block.

?Does formatting validate that my SQL will run?

No. Formatting changes presentation, not database semantics. You should still validate the query against the correct database engine, schema, permissions and runtime environment.

FAQ

Frequently Asked Questions

Everything you need to know about AiFolder

?What is AiFolder.co?

AiFolder is a curated directory of AI tools and instant utilities. You can search, upvote, bookmark, and organize useful links and results in your own workspace.

?Can I use tools without signing up?

Yes. Many utilities run directly in your browser. Sign in only when you want to save favorites, vote, and reuse your past results.

?How do upvotes and bookmarks work?

Upvotes help highlight great tools for everyone. Bookmarks save a tool to your workspace so you can open it again quickly.

?Does AiFolder support multiple languages?

Yes. Content can be localized per locale (e.g. /vi). Translations can be edited manually and can also be generated with AI during crawling.