Skip to content
Guide · Install a database

How to Install SQLite and Use It (Windows, Mac, Linux)

SQLite is not a server you install and start: it is a library that reads and writes a single database file, and most people only need the sqlite3 command line shell or a graphical tool on top of it. This guide explains which file to take from the official SQLite download page, how to run sqlite3 on Windows, macOS and Linux, how to install DB Browser for SQLite, and how to create your first database without losing it to the in-memory default.

Steps checked 8 October 2026 against the official documentation for each product. Versions covered: SQLite 3.53.4 (released 24 July 2026), DB Browser for SQLite 3.13.1. Next review due April 2027. Installers, versions and download pages change; follow the official page if a step differs.
Short answer
  • The official SQLite download page is sqlite.org/download.html. For the command line shell on Windows, download sqlite-tools-win-x64-3530400.zip (version 3.53.4); there is no installer and no service.
  • Run sqlite3 followed by a file name, for example sqlite3 ex1.db: the file is created if it does not exist. Without a file name you get a temporary in-memory database that disappears when you exit.
  • Double-clicking sqlite3.exe on Windows also opens an in-memory database; type .open followed by a file name to work with a file on disk.
  • DB Browser for SQLite 3.13.1 is a separate, open source graphical tool with Windows installers and zip files, a macOS app and Linux packages.
  • SQLite suits local, embedded and single-application storage; it is not a replacement for a client/server database shared by many users.
How we know: Research-based: file names, versions and the behaviour of the sqlite3 shell were checked against sqlite.org (download page, release history, command line shell documentation, quick start and appropriate uses pages), and the DB Browser for SQLite packages against sqlitebrowser.org, on 8 October 2026. We have not run these programs for this guide and no screenshots are shown; follow the official pages if your version differs.

SQLite download: which file you actually need

Every SQLite download is on one page, sqlite.org/download.html, and the release history page lists 3.53.4 (24 July 2026) as the latest release. The page mixes files for developers and for end users. File names encode the version, so 3530400 means 3.53.4.

The SQLite documentation explains that "SQLite" can mean two things: the library that implements the database engine, and the sqlite3 command line program (the CLI) that passes your input to that library. If you want to type SQL against a database file, you want the CLI, which SQLite calls the officially supported way to access database files interactively.

SQLite download page: what each precompiled package is for (version 3.53.4)
FileContentsWho needs it
sqlite-tools-win-x64-3530400.zipCommand line tools for Windows x64: the shell, sqldiff.exe, sqlite3_analyzer.exe and sqlite3_rsync.exeAnyone on 64-bit Windows who wants the sqlite3 CLI (use the ARM64 file on Arm PCs)
sqlite-dll-win-x64-3530400.zipThe SQLite DLL for Windows x64Developers linking SQLite into a program; not needed for the CLI
sqlite-tools-osx-arm64-3530400.zip / osx-x64Command line tools for macOS on Apple silicon or Intel (unsigned)Mac users who want the latest CLI
sqlite-tools-linux-x64-3530400.zipCommand line tools for Linux on x64Linux users who want the latest CLI
sqlite-amalgamation-3530400.zip and other source bundlesC source codeDevelopers compiling SQLite into an application

Install the sqlite3 command line shell on Windows

There is no setup wizard: the tools zip contains ready-to-run programs.

  1. On the download page, under Precompiled Binaries for Windows, download sqlite-tools-win-x64-3530400.zip (or the ARM64 file on an Arm-based PC).
  2. Extract the zip to a folder you choose, for example C:\sqlite.
  3. Open a command prompt in that folder and run sqlite3 with a database file name. To run it from any folder, add the folder to your PATH as you would for any command line tool.

If you double-click sqlite3.exe instead, the SQLite documentation warns that it starts without arguments, so you are connected to a temporary in-memory database that is deleted when the session ends. Type .open with a file name straight away to work on a file. Use forward slashes in paths, for example c:/work/ex1.db, not backslashes.

After double-clicking sqlite3.exe: open or create a database file (SQLite shell)
sqlite> .open c:/work/ex1.db

Alternatively: save an in-memory session

If you already typed SQL into an in-memory session, .save followed by a file name writes it to disk. The documentation cautions that .save overwrites an existing file of the same name without asking.

sqlite3 download for macOS and Linux

The SQLite home page notes that SQLite is built into most computers, so a sqlite3 command may already be available on your Mac or Linux system; it can be older than the current release. To use the latest version, download the tools zip for your platform from the SQLite download page and place the programs on your $PATH.

The macOS binaries are unsigned. The download page says that after putting them on your $PATH you will need to remove the quarantine attribute before they run:

macOS: allow an unsigned SQLite tool to run (replace prog with the path of the program)
xattr -d com.apple.quarantine <prog>

Create your first SQLite database

The SQLite quick start puts it in one line: at a shell or DOS prompt, sqlite3 test.db creates a new database named test.db. The CLI documentation uses ex1.db and a small table. End every SQL statement with a semicolon; without one, sqlite3 shows a continuation prompt and waits for more input, which is how you type statements over several lines.

Create a database file, a table and two rows (example from the SQLite CLI documentation)
sqlite3 ex1.db
sqlite> create table tbl1(one text, two int);
sqlite> insert into tbl1 values('hello!',10),('goodbye',20);
sqlite> select * from tbl1;
sqlite3 dot-commands worth knowing first (from the CLI documentation)
CommandWhat it does
.helpLists the dot-commands; .help TOPIC explains one
.open FILECloses the current database and opens (or creates) FILE
.tablesLists the tables
.schemaShows the CREATE statements
.import FILE TABLEImports data from a file, such as a CSV, into a table
.save FILEWrites the database to FILE (overwrites without asking)
.quitExits the shell

Dot-commands versus SQL

Lines that start with a dot are interpreted by the sqlite3 program itself, not by the SQLite library, so they only work in the shell and not from an application. Everything else is SQL in SQLite's dialect. To stop a long-running statement, use the interrupt character (usually Ctrl+C).

DB Browser for SQLite download

SQLite's own documentation notes that some users prefer a graphical interface and that several are available from third parties. The most common free one is DB Browser for SQLite (DB4S), which its project describes as a visual, open source tool for creating, searching and editing SQLite or SQLCipher database files. It is a separate project from SQLite itself; its official download page is sqlitebrowser.org/dl, and the latest release is 3.13.1.

  • Windows: a standard installer or a .zip (no installer) for 64-bit, 32-bit and ARM64 Windows, plus a PortableApp (not for ARM64). If the standard release gives an error, the project suggests trying a nightly build.
  • macOS: a Universal app, or Homebrew.
  • Linux: an AppImage, Snap packages and distribution packages. Debian's package is typically older than the latest release.

According to the project, DB4S gives a spreadsheet-like interface on the database as well as a full SQL query facility, with controls and wizards to create and compact database files, create, modify and delete tables and indexes, browse and edit records, and import and export data as text. For other graphical options, see the best SQLite GUI tools.

Package manager installs listed on sqlitebrowser.org
# macOS (Homebrew)
brew install db-browser-for-sqlite

# Linux (Snap)
snap install sqlitebrowser

# Fedora
sudo dnf install sqlitebrowser

# Debian
sudo apt-get update
sudo apt-get install sqlitebrowser

When SQLite fits, common mistakes and next steps

The SQLite project describes its own scope plainly: SQLite does not compete with client/server databases, it competes with fopen(). It suits local storage for one application or device, files you want to copy and share, and learning SQL without running a server. If many users or programs must write to a shared database over a network, a client/server engine such as PostgreSQL or MySQL is the better fit; see SQLite vs PostgreSQL and SQLite vs MySQL, or DuckDB vs SQLite for analytics.

  • My tables disappeared. You were in a transient in-memory database (no file name given, or a double-click start). Use .open FILE or start sqlite3 with a file name.
  • The database file is not where I expected. Relative names are created in the current folder; use a full path with forward slashes.
  • Nothing happens after I press Enter. The statement has no closing semicolon, so sqlite3 is waiting for the rest of it.
  • macOS refuses to run the downloaded sqlite3. Remove the quarantine attribute with xattr as shown above.

Next, work through the SQL beginner course against your new file and practise with the SQL exercises; most beginner SQL runs unchanged in SQLite.

Frequently asked questions

Is SQLite free?

Yes. SQLite is free to download and use, and its source code is on the same download page. DB Browser for SQLite is also free and open source.

Do I need to install SQLite as a server or service?

No. SQLite has no server process. The sqlite3 program and applications that embed the SQLite library read and write the database file directly.

Where is the sqlite3 download for Windows?

On sqlite.org/download.html under Precompiled Binaries for Windows: the sqlite-tools-win-x64 zip contains sqlite3.exe. The sqlite-dll zip is only for developers.

What is the difference between SQLite and DB Browser for SQLite?

SQLite is the database engine and its official command line shell. DB Browser for SQLite is a separate graphical program, made by a different project, for creating, browsing and editing SQLite database files.

Why is my SQLite database empty after I reopen sqlite3?

If you started sqlite3 without a file name, or by double-clicking it on Windows, you were using a temporary in-memory database that is deleted on exit. Start sqlite3 with a file name, or use .open, and your data is saved to that file.

Sources

Checked 8 October 2026.

How we research guides: our editorial method. We link only to official downloads and never host installers.

Database installed?

Write your first queries with the free beginner course, then practise on real problems.