totonoeAI
Pricing

totonoeai

AI tools that tidy up your documents

Free Tools

  • PDF Converter
  • Word/Excel → Markdown
  • Image → Text (OCR)
  • Markdown Editor
  • Diagram Builder
  • Screenshots → PDF
  • PDF Editor
  • Image Editor
  • Data Converter
  • SQL Formatter
  • URL Shortener

AI Tools

  • AI Document Formatter
  • AI Meeting Notes
  • AI Table Extraction
  • AI Diagram Builder
  • Video & Audio Processor

Other

  • Pricing plans
  • Terms of Service
  • Privacy Policy
  • Commercial Disclosure

© 2026 totonoeai

SQL Formatter

Format SQL for the major dialects (PostgreSQL / MySQL / SQLite / SQL Server / BigQuery / Snowflake / etc.) with adjustable indent width and keyword case.

Input SQL

1

Formatted

1

SQL Formatter — Free, Supports 10+ Dialects

Free SQL formatter supporting PostgreSQL, MySQL, SQLite, SQL Server, BigQuery, Snowflake, Redshift, Oracle, DB2, MariaDB, and more. Configurable indent width and keyword case.

Supported dialects

Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), Oracle (PL/SQL), IBM DB2, Google BigQuery, Snowflake, Amazon Redshift, Spark SQL, Trino.

Reserved words, function names, and quoting differ across dialects — pick the one matching your database.

Customizable formatting

• Indent: 2 / 4 spaces, or tabs • Keyword case: UPPER / lower / preserve • Line width: 80 / 100 / 120 columns

Match your team's SQL style guide. Settings persist in browser storage.

Common use cases

• Format before posting to a GitHub PR • Style-unify SQL for documentation • Make one-line log SQL readable • Visualize structure of deeply-joined queries • Clean up legacy SQL before takeover

Frequently Asked Questions

Can I run queries here?

No — formatting only. No DB connection. All formatting happens in-browser, so confidential SQL never leaves your device.

Will it change query semantics?

Never. Tokens (keywords, identifiers, literals) are preserved exactly; only whitespace and casing change.

Are comments preserved?

Yes — both line (`-- ...`) and block (`/* ... */`) comments are kept in place.

What's the size limit?

Up to 100,000 characters — enough for queries spanning hundreds of lines.

Related Tools

Data Converter →

Convert SQL output to JSON/CSV/Excel.

Markdown Editor →

Wrap formatted SQL in Markdown code blocks.

PDF Converter →

Convert PDFs to Markdown, then clean them up.