katlab tools/sql/sqlite support on Ko-fi

SQLite Formatter · Beautify & Minify

Pretty-print or minify SQLite — with keyword casing and indent control, live in your browser.

SQL is formatted locally. Nothing is uploaded to a server.
Dialect
Keywords
Indent
Mode

How to format SQLite online (free)

  1. Paste your query into the left box.
  2. Choose your dialect (MySQL, Postgres, SQLite…) so keywords and syntax are handled correctly.
  3. Pick Beautify to pretty-print, or Minify to collapse to one line. Set keyword casing and indent to taste, then copy the result.

Beautify vs. minify

Beautify reflows your query with consistent line breaks and indentation — the readable form you want in a migration file, a code review or documentation. Minify strips the extra whitespace and collapses the query to a single line, which is convenient for pasting into a string literal, a shell command or a log line. String literals, quoted identifiers and (optionally) comments are preserved exactly.

Tuned for SQLite

SQLite is the embedded database behind countless apps, phones and browsers. This formatter handles SQLite syntax — UPSERT (ON CONFLICT), PRAGMA statements and its flexible typing — so your queries read cleanly.

Other dialects

SQL engines differ in quoting, functions and keywords. Formatting with the matching dialect gives the cleanest result — for example backticks in MySQL, :: casts in PostgreSQL, or QUALIFY in BigQuery and Snowflake. Jump straight to a dialect-specific page:

Private by design

Many "format SQL online" sites send your query to their server. This one formats entirely inside your browser tab — your queries, schema names and any embedded values never leave your device. It also works offline once the page has loaded.

Does it change my query?

Beautify and minify only change whitespace, line breaks and keyword casing — never the meaning of your SQL. If a query can't be fully parsed, it's left exactly as you pasted it and a small notice appears, so nothing is silently rewritten or lost.