---
title: Install SQL Query Formatter on Linux | Snap Store
description: Get the latest version of SQL Query Formatter for Linux - SQL query formatter,
  DDL schema ER diagram studio, and vector/PDF exporter
url: https://snapcraft.io/sql-query-formatter
---

# SQL Query Formatter

[TC Studio (thanhcong1902)](https://snapcraft.io/publisher/thanhcong1902 "View all snaps from TC Studio (thanhcong1902)")

* [TC Studio (thanhcong1902)](https://snapcraft.io/publisher/thanhcong1902 "View all snaps from TC Studio (thanhcong1902)")

latest/stable 1.0.0

Install latest/stable of SQL Query Formatter

---

**Install using the command line**

```
sudo snap install sql-query-formatter
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* sql-query-formatter

---

### License

* MIT

---

### Last updated

* Yesterday - latest/stable

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/sql-query-formatter#report-snap-modal)

---

* [Description](https://snapcraft.io/sql-query-formatter#tab-description)
* [Security](https://snapcraft.io/sql-query-formatter#tab-security)

#### SQL query formatter, DDL schema ER diagram studio, and vector/PDF exporter

SQL Query Formatter is a desktop SQL tokenizer, pretty-printer, DDL Entity-Relationship
diagram studio, and vector/document exporter for Linux developers and database engineers.
Format complex multi-CTE SELECT queries, joins, CASE expressions, DML statements, and
CREATE TABLE DDL locally on your desktop without uploading schemas to external services.

Key Features:

* SQL Tokenizer & Pretty-Printer: Pure-Python SQL lexer and formatter supporting
  SELECT, WITH CTEs, JOINs, CASE expressions, INSERT, UPDATE, and CREATE TABLE
  with UPPER/lower/Title keyword casing, configurable indent width, trailing or
  comma-first style, dialect awareness, syntax highlighting, and compact Minifier.
* Visual ER Diagram Studio: Parses CREATE TABLE DDL (PRIMARY KEY, FOREIGN KEY
  REFERENCES) into an interactive, draggable, auto-laid-out Entity-Relationship
  diagram rendered with QPainter featuring table cards, PK/FK badges, and crow's-foot
  relationship connectors.
* Schema & Diagram Exporter: Exports formatted .sql scripts, standalone vector SVG
  diagrams, high-DPI PNG renders, and print-ready vector PDF documents via QPdfWriter.

Disclaimer: SQL Query Formatter is an independent open-source project by TC Studio and is not affiliated with, endorsed by, or sponsored by any third-party database formatting vendor.

---

## Install SQL Query Formatter on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/sql-query-formatter/arch)

[### CentOS](https://snapcraft.io/install/sql-query-formatter/centos)

[### Debian](https://snapcraft.io/install/sql-query-formatter/debian)

[### elementary OS](https://snapcraft.io/install/sql-query-formatter/elementary)

[### Fedora](https://snapcraft.io/install/sql-query-formatter/fedora)

[### KDE Neon](https://snapcraft.io/install/sql-query-formatter/kde-neon)

[### Kubuntu](https://snapcraft.io/install/sql-query-formatter/kubuntu)

[### Manjaro](https://snapcraft.io/install/sql-query-formatter/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/sql-query-formatter/pop)

[### openSUSE](https://snapcraft.io/install/sql-query-formatter/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/sql-query-formatter/rhel)

[### Ubuntu](https://snapcraft.io/install/sql-query-formatter/ubuntu)
