Format SQL on Mac — Free Browser Tool, No App Install
Table of Contents
Mac developers have a few options for formatting SQL: install DataGrip ($229/year), install DBeaver (free but heavy, requires Java), install TablePlus (~$89 one-time), or pay for Sequel Ace (formerly Sequel Pro, free but limited to MySQL). All of these are full database clients that happen to format SQL. If all you need is the formatting, installing a 500MB Java-based app is overkill.
Our formatter runs in Safari, Chrome, Firefox, or any other Mac browser. Bookmark it once, use it forever. No Java install, no Homebrew package, no Mac App Store account, no admin password required.
Mac SQL Formatting Options — What Mac Developers Use
Talking to Mac developers about how they format SQL, you typically hear one of these answers:
- DataGrip — JetBrains license, $229/year. Excellent but expensive.
- DBeaver Community — free but requires Java, ~500MB install, slow startup.
- TablePlus — Mac-native, ~$89 one-time. Beautiful UI, decent formatter.
- Sequel Ace — free, Mac App Store, but MySQL-only.
- Postico (Postgres) — free with paid Pro upgrade, Postgres only.
- VS Code + sql-formatter extension — free, requires extension install.
- Sublime Text + SQL Beautifier package — Sublime is $99 license.
- Manual formatting — many devs just hand-format because no option above is convenient enough for occasional use.
The browser tool fits the gap for occasional users: no install, no license, no admin password.
Why a Full Database Client Is Overkill for Just Formatting
If you write SQL daily, you probably want a full database client for query execution, schema browsing, and result display. For these users, DataGrip, DBeaver, or TablePlus is worth the install.
If you write SQL occasionally — maybe a migration once a week, a debugging query during an incident, a quick fix for a production issue — installing a multi-gigabyte database client just to format the query is overkill. Many Mac users in this category give up on formatting altogether and ship hand-formatted SQL.
The browser tool fits this user perfectly:
- Zero install — bookmark a URL.
- Works in any browser — Safari, Chrome, Firefox, Edge, Brave, Arc.
- No admin password — works on corporate-locked Macs.
- No Java, no .NET, no native dependencies — pure HTML/JavaScript.
- Works on every Mac model from Mac mini to Mac Pro to MacBook Air.
- Works on every macOS version from Catalina onward.
How to Format SQL on Mac in Your Browser
- Open the formatter URL in your preferred browser — Safari, Chrome, Firefox, all work.
- Bookmark the page — Cmd+D to save.
- Copy your SQL from anywhere — TablePlus, DBeaver, Postico, Sequel Ace, the mysql command line, a Slack message, or any other source.
- Paste into the formatter input — Cmd+V.
- Pick your dialect — Standard, MySQL, PostgreSQL, SQLite, MariaDB, BigQuery, or Transact-SQL.
- Click Format — output appears with syntax highlighting.
- Click Copy — Cmd+C alternative, puts the formatted SQL on your clipboard.
- Paste back into your destination — Cmd+V into TablePlus, your editor, or wherever.
For frequent users, drag the bookmark to your Safari Favorites bar or Chrome bookmarks bar so it is one click away.
Sell Custom Apparel — We Handle Printing & Free ShippingBrowser Compatibility on Mac
The formatter works in every major Mac browser:
- Safari — works on macOS Catalina (10.15) and later. Safari is the most efficient browser on Mac for battery life.
- Chrome — works on every supported macOS version.
- Firefox — works on every supported macOS version.
- Edge — Microsoft's Mac version works identically to Chrome.
- Brave — Chromium-based, fully supported.
- Arc — Chromium-based, fully supported. Spaces feature is great for keeping the formatter pinned in a Dev space.
- Vivaldi, Opera — both Chromium-based, fully supported.
The formatting library is pure JavaScript and uses no browser-specific APIs. It will work on any Mac browser made in the last five years.
Real Mac Developer Use Cases
Migration files in a Rails project. Open the migration file in your editor, copy the SQL, paste into the formatter, copy the formatted version back. The migration is now reviewable in PRs.
Debugging a slow query during an incident. You found the slow query in your APM dashboard (Datadog, New Relic, Honeycomb). Copy it, format it, share the formatted version in Slack so the team can read it.
Cleaning up a query for a code review. Your teammate sent a wall of SQL in a PR. Paste it into the formatter, format it, suggest the formatted version as a change in the PR.
Writing a runbook. Document the SQL queries your team runs during incidents. Format each one before adding it to the runbook so it is readable years later.
Teaching SQL. If you mentor junior developers, show them what well-formatted SQL looks like by formatting their hand-written queries in real time.
Other Mac-Friendly Browser Tools
If you like keeping development tools in browser tabs instead of installed apps, these other tools work the same way:
JSON formatter — for cleaning up JSON responses without installing Postman. JSON Formatter.
Regex tester — for testing regex patterns without launching an editor. Regex Tester.
Code diff checker — for comparing two snippets without setting up a diff tool. Code Diff Tool.
Cron expression generator — for building cron schedules visually. Cron Generator.
Try It Free — No Signup Required
Runs 100% in your browser. No data is collected, stored, or sent anywhere.
Open Free SQL FormatterFrequently Asked Questions
Does the SQL formatter work in Safari on Mac?
Yes. The formatter is pure HTML and JavaScript. It works in Safari (any version since macOS Catalina), Chrome, Firefox, Edge, and any Chromium-based browser like Brave or Arc.
Do I need to install Java or any runtime?
No. Unlike DBeaver (which requires Java) or DataGrip (which requires JetBrains Runtime), the browser formatter has zero dependencies beyond a working web browser. Nothing to install.
Will it work on a corporate-locked Mac where I cannot install apps?
Yes. The formatter is a website. It works on any Mac with a browser. No admin password required, no software install, no IT ticket.
Can I use it offline on a flight?
Yes, after the page loads. Open the formatter while you have internet, then close your laptop and re-open on the flight. The page is cached and the formatter still works without a connection.
How does it compare to TablePlus formatting?
TablePlus has a good built-in formatter, but it is part of a $89 paid app. The browser tool is free and produces equivalent output for 95% of queries. If you already own TablePlus and use it daily, stick with TablePlus. If you need formatting without buying an app, the browser tool is enough.

