SQLite
activeby D. Richard Hipp / Hwaci (SQLite Consortium) · since 2000 · also known as SQLite3
The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.
Overview
SQLite is a self-contained C library that implements a full transactional SQL database in a single cross-platform file. It is the most widely deployed database in the world, embedded in Android, iOS, every major browser, desktop apps and countless devices, and it has become a serious option for server-side apps too, thanks to WAL mode, litestream-style replication and the libSQL/Turso ecosystem. The code is in the public domain and maintained by a small team at Hwaci that does not accept outside patches, with an exhaustive test suite backing its reliability. It is ideal when the database lives next to the application; it is not a networked multi-writer server.
Strengths & trade-offs
Strengths
- +Zero configuration: the whole database is one portable file
- +Extremely well tested (100% branch coverage, billions of deployments)
- +In-process calls avoid network round trips, so simple reads take microseconds
- +FTS5, JSON functions and R*Tree indexes built into the amalgamation
- +Public domain with a stable file format guaranteed through 2050
Trade-offs
- −Single writer at a time; write-heavy concurrent workloads serialize
- −No built-in network server, user accounts or replication
- −Dynamic typing by default surprises people used to strict schemas (STRICT tables help)
- −ALTER TABLE support is limited compared with server databases
Great for
- +Mobile and desktop application storage
- +Embedded devices and IoT
- +Local-first apps and offline caches
- +Test fixtures and data interchange files
- +Low-to-moderate traffic web apps on a single server
Think twice for
- −Many concurrent writers across processes or hosts
- −Multi-tenant client-server deployments needing access control
- −Distributed or multi-region databases
Capabilities
Native or official first-party support · 9 of 25 tracked
Scale & consistency
- Comfortable data size
- Small · ≤ 100 GB
- Horizontal scaling
- None
- Multi-region
- No
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Flexible
- Architecture
- Embedded, Single node
- Query languages
- SQL
Databases up to terabytes are possible, but one writer at a time; replication needs external tools (Litestream, LiteFS, rqlite).
Deployment
Ecosystem
Alternatives to SQLite
Turso's open-contribution SQLite fork with native vectors, a network server and embedded replicas.
sqlite vs libsql →Ground-up Rust rewrite of SQLite with concurrent writes, async I/O, CDC and vector search.
sqlite vs turso-database →In-process columnar SQL database: the SQLite of analytics, running inside your app or notebook.
sqlite vs duckdb →Fast pure-Java SQL engine for embedded, in-memory and test databases, with compatibility modes.
sqlite vs h2 →Object-oriented mobile database whose MongoDB sync service is gone; the local engine survives as open source.
sqlite vs realm →The extensible, standards-first open-source relational database.
sqlite vs postgresql →SQLite FAQ
What is SQLite?
SQLite is a relational database by D. Richard Hipp / Hwaci (SQLite Consortium), first released in 2000. SQLite is a self-contained C library that implements a full transactional SQL database in a single cross-platform file. It is the most widely deployed database in the world, embedded in Android, iOS, every major browser, desktop apps and countless devices, and it has become a serious option for server-side apps too, thanks to WAL mode, litestream-style replication and the libSQL/Turso ecosystem. The code is in the public domain and maintained by a small team at Hwaci that does not accept outside patches, with an exhaustive test suite backing its reliability. It is ideal when the database lives next to the application; it is not a networked multi-writer server.
Is SQLite open source?
Yes. SQLite is open source. License: Public Domain.
Does SQLite support ACID transactions?
Yes. SQLite supports full ACID transactions, with strong consistency.
Does SQLite scale horizontally?
SQLite does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).
How can I run SQLite?
You can self-host it, embed it in your application and run it at the edge. Managed offerings include Cloudflare D1, Turso Cloud and SQLite Cloud.
What is SQLite best for?
SQLite is a strong fit for mobile and desktop application storage; embedded devices and IoT; and local-first apps and offline caches. Think twice for many concurrent writers across processes or hosts.
What are the best alternatives to SQLite?
Common alternatives to SQLite include libSQL, Turso Database (Limbo), DuckDB, H2 Database and Realm (Atlas Device SDK). The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is SQLite?
SQLite ranks #5 of 844 databases on the WhichDB Score (75.5/100), and #3 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.