LiteDB

What LiteDB is
LiteDB is a free, open-source NoSQL document database for .NET, delivered as a single DLL and designed for embedded use without a separate server. It stores data in one datafile and supports ACID transactions, with recovery from write failures through WAL mode. Queries can use SQL-like commands, LINQ or query EXPLAIN plans. LiteDB maps POCO classes to BsonDocument and provides a fluent API for custom mapping. Its documented uses include mobile apps, desktop and local applications, application file formats, web applications and per-user data stores. FileStorage stores files and streams in the database, subject to a 16 MB limit for each root BSON document. LiteDB describes itself as thread-safe, with cross-collection transactions, no reader locks and per-collection writer locks. Datafiles can be password-protected using salted AES encryption; the documentation specifies ECB mode, and changing or removing a password requires rebuilding the datafile. LiteDB is free for commercial use under the MIT License. It is installable through NuGet, and LiteDB.Studio is linked as an administration tool. The project directs users to GitHub issues, Gitter and Stack Overflow for community help.
Who it suits
LiteDB suits .NET developers who need an embedded document database for applications or per-user data stores. Its single-file delivery and free commercial-use license may fit projects that want to manage their own deployment.
What it does well
- Free for commercial use under the MIT License
- Stores data in a single datafile
- Supports ACID transactions and WAL recovery
- Offers SQL-like commands, LINQ and EXPLAIN plans
- NuGet installation and LiteDB.Studio administration tool
What to know first
- Each root BSON document has a 16 MB limit
- Changing or removing an encryption password requires rebuilding the datafile
- Encryption documentation specifies ECB mode
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| LiteDB | Free for everyone, including commercial use | Free |
As litedb.org lists them, read 4 Oct 2026. The maker's own page has the final word.
Getting started
- Open the LiteDB website.
- Install LiteDB through NuGet.
- Use LiteDB.Studio, linked by the project, as an administration tool for its SQL commands.
- Ask the community for help through GitHub issues, Gitter chat, or Stack Overflow.
Verdict
LiteDB combines embedded storage, transaction support and multiple query options in a single DLL. Consider the documented document-size limit and encryption details when planning how to store and protect data.
Questions
How much does LiteDB cost?
LiteDB is free for everyone, including commercial use. The project displays the MIT License.
What platforms does LiteDB support?
The listed platforms are Android, API, iOS, Linux, self-hosted, and Windows.
Does LiteDB need a separate database server?
No. It is described as an embedded, serverless database delivered as a single DLL.
What formats and queries does it support?
It stores BSON documents and supports extended JSON. Queries can use SQL-like commands or LINQ, with query EXPLAIN plans.
Can LiteDB store files and streams?
Yes. FileStorage stores files and streams in the database, with a 16 MB limit for each root BSON document.
How does its encryption work?
Datafiles can use password-protected salted AES encryption. The encryption documentation specifies ECB mode and says changing or removing the password requires rebuilding the datafile.
Facts from LiteDB's own pages
- Concurrency
- LiteDB describes itself as thread-safe, with cross-collection transactions, no reader locks, and per-collection writer locks. · litedb.org, 4 Oct 2026
- Data storage
- LiteDB stores data in a single datafile and supports ACID transactions and recovery in write failures using WAL mode. · litedb.org, 4 Oct 2026
- Encryption
- LiteDB documents password-protected datafile encryption using salted AES; its encryption page specifies ECB mode and says changing or removing the password requires rebuilding the datafile. · litedb.org, 4 Oct 2026
- File storage
- FileStorage stores files and streams in the database; LiteDB documents a 16 MB limit for each root BSON document. · litedb.org, 4 Oct 2026
- Integrations
- LiteDB is installable through NuGet, and the site links to LiteDB.Studio, an admin tool that supports its SQL commands. · litedb.org, 4 Oct 2026
- License
- The site identifies LiteDB as free and open source and displays the MIT License. · litedb.org, 4 Oct 2026
- Mapping
- LiteDB maps POCO classes to BsonDocument and supports a fluent API for custom mapping. · litedb.org, 4 Oct 2026
- Platforms
- The site lists .NET Framework, .NET Standard, .NET Core, UWP, Linux, Xamarin iOS and Android, and Unity support. · litedb.org, 4 Oct 2026
- Product
- LiteDB is a serverless, embedded .NET NoSQL document database delivered as a single DLL. · litedb.org, 4 Oct 2026
- Queries
- LiteDB supports SQL-like commands, LINQ queries, and query EXPLAIN plans. · litedb.org, 4 Oct 2026
- Support
- The project directs users to GitHub issues, Gitter chat, and Stack Overflow for community help. · litedb.org, 4 Oct 2026
- Use cases
- The site lists mobile apps, desktop and local applications, application file formats, web applications, and per-user data stores as intended uses. · litedb.org, 4 Oct 2026
Where LiteDB stands on Freedom251
- Mobile Databases#9 of 26
- Embedded Databases#11 of 30
- Document Databases#12 of 28