Cloud, hosting and databases · Researched comparison
7 Best Embedded Databases for 2026
This list puts Realm first for mobile apps that need a local object store. H2 Database is the stronger choice for Java apps that require a small SQL engine, while RxDB suits JavaScript apps that require live local queries. The remaining 4 options are covered below with prices and limits.
We run no ads and no affiliate links at launch. The order of a list follows our published method.
Prices are the starting prices vendors list publicly. Plans change, so confirm the current price on the vendor page before you buy.
Key takeaways
Realm sits first on this list: mobile apps that require a local object store.
7 of the 7 tools have a free plan, including Realm, H2 Database, RxDB and SQLite.
Couchbase Lite suits offline mobile apps with document sync.
For the cheapest start, look at Turso: $4.99/month.
Tool
Best for
Standout feature
Listed starting price
Free plan or trial
1 Realm
Mobile apps that require a local object store
Other mobile stacks
$0
Free plan
2 H2 Database
Java apps that require a small SQL engine
Built-in web console for queries
$0
Free plan
3 RxDB
JavaScript apps that require live local queries
SQLite storage
Quote only
Free plan
4 SQLite
Most apps that require a local SQL store
Single file database with no server
$0
Free plan
5 DuckDB
Local analytics on files and tables
SQL with no server to run
$0
Free plan
6 Turso
SQLite apps that require cloud sync
Free start with no card required
$4.99/month (billed yearly)
Free plan
7 Couchbase Lite
Offline mobile apps with document sync
Offline document store for mobile
Quote only
Free plan
How we picked
DoCodeHere looked at what each vendor publishes: pricing, plan limits, feature coverage for embedded databases and stated drawbacks. No hands-on testing is claimed. Treat prices as a snapshot: vendors change plans often, so check the vendor site for the figure that applies today. The sequence is a judgement call: typical use case first, then pricing transparency, then free access. Use the profiles to check fit.
01
Realm
Best for: Mobile apps that require a local object store
For mobile apps that need a local object store, Realm is a natural candidate. One limit: MongoDB Device Sync, the old Atlas sync service for Realm, reached end of life on 30 September 2025. Realm is a local object database for mobile apps, with SDKs for Swift, Kotlin, Java, JavaScript, and.NET.
The on-device database continues as an open source project, and the local engine costs $0. More specifically, do not choose it for a new project that relies on the old MongoDB Device Sync service, since that service is gone. Realm starts at: $0. A free plan is available with Realm.
Downsides: no vendor sync service replaces it in the same form.
Pros
Other mobile stacks
Local object database for iOS, Android
Cons
MongoDB Device Sync ended on 30 September 2025
Price: $0, as listed by the vendor (Realm website). Confirm the current plan price before you buy.
Skip it if this limit matters to you: mongoDB Device Sync ended on 30 September 2025.
Verdict. A sensible pick for mobile apps that require a local object store.
02
H2 Database
Best for: Java apps that require a small SQL engine
H2 Database is a good fit for Java apps that require a small SQL engine. H2 Database is a small SQL engine written in Java. It can run embedded inside a Java app or as a separate server.
Honest limits: no built-in cloud sync or multi-region replication.
It supports SQL, transactions, indexes, and a web console for running queries and viewing tables. The engine is open source and costs $0, which makes it a typical choice for Java tests, prototypes, desktop tools, and small services that require a local relational store without a large install. It also works as an in-memory database for tests, so test suites can start fresh on each run. One limit: H2 is not designed for large multi-user production loads or for sync across regions. Teams that outgrow it typically move to PostgreSQL or a It has no built-in cloud sync, user sync, or mobile replication. Starting cost for H2 Database: $0. H2 Database offers a free plan.
Pros
Built-in web console for queries
Small Java SQL engine with embedded and server modes
Cons
Best for small and medium loads
Price: $0, as listed by the vendor (H2 Database website). Confirm the current plan price before you buy.
Skip it if this limit matters to you: best for small and medium loads.
Verdict. A sensible pick for java apps that require a small SQL engine.
03
RxDB
Best for: JavaScript apps that require live local queries
RxDB was built for JavaScript apps that require live local queries. RxDB is a local-first NoSQL database for JavaScript apps on web, mobile, and desktop.
It keeps documents on the client, supports live queries that update when data changes, and can replicate with CouchDB compatible servers. Also, choose RxDB when the app is JavaScript first and needs live local queries. Pricing for RxDB is quote based, so budget talks start with the vendor. A free plan is available with RxDB.
Drawbacks to consider: Premium storage plugins, including SQLite storage, are commercial.
Pros
SQLite storage
Local-first JavaScript database with reactive queries
Cons
Core pricing for those plugins is quote only
Price: Quote only, as listed by the vendor (RxDB website). Confirm the current plan price before you buy.
Skip it if this limit matters to you: core pricing for those plugins is quote only.
Verdict. A sensible pick for javaScript apps that require live local queries.
04
SQLite
Best for: Most apps that require a local SQL store
In short, SQLite is for most apps that require a local SQL store. Choose SQLite when the app needs local structured storage and offline reads. From a buyer's view, one limit: SQLite permits one writer at a time, so write-heavy apps with numerous concurrent writers need care.
Watch-outs: no built-in sync or user management.
It has no built-in replication, sync, or access control, so those features must come from another layer, like Turso, Litestream, or a custom API. For everyday use, for a single user app or a cache on a device, it is hard to beat on simplicity and cost, since there is no licence fee and no server bill. The starting price for SQLite: $0. Free access exists with SQLite.
Pros
Single file database with no server
Full SQL with transactions and indexes
Cons
One writer at a time for most writes
Price: $0, as listed by the vendor (SQLite website). Confirm the current plan price before you buy.
Skip it if this limit matters to you: one writer at a time for most writes.
Verdict. A sensible pick for most apps that require a local SQL store.
05
DuckDB
Best for: Local analytics on files and tables
In short, DuckDB is for local analytics on files and tables. One limit: DuckDB is tuned for reads and bulk loads, not for a stream of small transactional writes from numerous users. In practice, choose DuckDB when the job is to query files and tables quick on one machine.
Drawbacks to consider: not for plenty of small writes.
On top of that, DuckDB is an in-process analytical database that reads Parquet, CSV, and JSON files straight and answers SQL over them. Its columnar layout makes large scans and aggregations quick on a laptop, and it can attach to SQLite and PostgreSQL sources. That makes it a solid fit for data tools, notebooks, and reporting features inside an app. Entry price for DuckDB: $0. Free access exists with DuckDB.
Pros
SQL with no server to run
Quick columnar scans over Parquet, CSV, JSON
Cons
Made for analytics
Price: $0, as listed by the vendor (DuckDB website). Confirm the current plan price before you buy.
Skip it if this limit matters to you: made for analytics.
Verdict. A sensible pick for local analytics on files and tables.
06
Turso
Best for: SQLite apps that require cloud sync
Where Turso fits: SQLite apps that require cloud sync. The pricing page lists a free start with no card required, then a Developer plan at $4.99 a month when billed yearly.
As for the details, one limit: a database is blocked when a limit is hit and overages are off. So a runaway query can stop the app until the plan changes. On cost, Turso starts like this: $4.99/month. Turso offers a free plan.
Watch-outs: Developer plan caps storage at 9 GB.
Pros
Free start with no card required
SQLite compatible with embedded replicas
Cons
Overage rates apply above the included rows and syncs
Price: $4.99/month (billed yearly), as listed by the vendor (Turso website). Confirm the current plan price before you buy.
Skip it if this limit matters to you: overage rates apply above the included rows and syncs.
Verdict. A sensible pick for SQLite apps that require cloud sync.
07
Couchbase Lite
Best for: Offline mobile apps with document sync
Pick Couchbase Lite if this describes you: offline mobile apps with document sync. Node size and region change the credit rate, so the full bill is hard to predict from one number. Sync runs through Sync Gateway or Capella App Services, which moves changes between devices and the server when a connection returns.
It keeps JSON-like documents locally, supports queries and full text search, and works offline by design. As for the details, one limit: the Capella free level turns off after 72 hours idle and is deleted after 30 days. Enterprise is listed from $5.36 per hour per node. There is no fixed entry price for Couchbase Lite; pricing comes through a quote. Couchbase Lite offers a free plan.
Limits to weigh: Capella free level turns off after 72 hours idle.
Pros
Offline document store for mobile
Sync through Capella App Services
Cons
Server and mobile subscription prices are quote only
Price: Quote only, as listed by the vendor (Couchbase Lite website). Confirm the current plan price before you buy.
Skip it if this limit matters to you: server and mobile subscription prices are quote only.
Verdict. A sensible pick for offline mobile apps with document sync.
What to check before you buy
Confirm the entry price on the vendor page. For RxDB and Couchbase Lite that means a quote rather than a fixed price.
Read the fine print on the free plans from Realm, H2 Database, RxDB and others; seat, project and feature caps differ.
Before choosing Realm, weigh its main limit: MongoDB Device Sync ended on 30 September 2025.
Pick one real project and run it in H2 Database first; a small pilot shows fit faster than a checklist.
Check how data leaves DuckDB: formats, limits and whether exports are available on every plan.
FAQ
How are the tools for embedded databases ordered?
Realm sits first and Couchbase Lite last because the order follows typical fit for embedded databases, then price clarity and free access. It is a judgement call, so read each profile for fit and limits.
Can I try these tools before paying?
Often, yes. Realm, H2 Database, RxDB and others have a free plan. Use your own data and a real task during the test, and check what the free tier or trial limits before you rely on it.
Which options for embedded databases have a free plan?
7 of the 7 tools have a free plan, including Realm, H2 Database, RxDB and SQLite. Free plans usually cap users, projects or features, so check the limits on the vendor page.
Do these tools publish their prices?
Not all of them. RxDB and Couchbase Lite publish no starting price, so expect a quote request for those. The rest, Realm included, show a starting price, though seats and billing terms still change the final cost.
Which embedded database is a good match for JavaScript apps?
The first pick on this list is Realm, because it suits mobile apps that require a local object store. H2 Database is better for Java apps that require a small SQL engine, and RxDB for JavaScript apps that require live local queries. Check price and limits against your own needs before choosing.