Skip to content
SPECIFICTION
Get listed

H2 Database Engine vs SQLite

H2 Database Engine

h2database.com

SQLite

sqlite.org

Side by side

FigureH2 Database EngineSQLite
Price fromFree$12.50/mo
Free planYesYes
Free trial——
Open source—Yes
WebYesYes
WindowsYesYes
macOSYesYes
LinuxYesYes
iOS—Yes
Android—Yes
APIYesYes
Self-hostedYesYes
Plans published116
Spec score · Embedded Databases8.1 (#9)8.7 (#3)
Spec score · Relational Databases8.0 (#15)8.6 (#6)
Spec score · Sql Databases8.1 (#11)8.7 (#4)
Spec score · Database Software7.7 (#59)9.4 (#2)
DownloadsThe home page lists a Windows installer and an all platforms ZIP download.The official download page provides source, Android AAR, Linux, macOS, Windows, WebAssembly/JavaScript and documentation bundles.
FootprintThe home page describes a small footprint of around 2.5 MB for the JAR file.A fully configured build can be smaller than 900 KiB.
Founded20042000
Free planYesYes
LicenseH2 is dual licensed under MPL 2.0 or EPL 1.0, and the license page says it can be integrated into and distributed with commercial applications.SQLite source code is in the public domain and is free for commercial or private use without a license.
SecurityThe security page warns that H2 is not designed for adversarial environments and advises against exposing an H2 server to untrusted connections.The security guidance says SQLite is extensively fuzz-tested and recommends defensive settings and lower input limits for applications accepting untrusted SQL.
SupportThe home page directs users to Stack Overflow and a Google Group for support.SQLite offers a free public forum as well as paid private email and technical support options.
TransactionsThe feature list includes transaction support, multi version concurrency, and row level locking.SQLite transactions are atomic, consistent, isolated, and durable even after system crashes and power failures.

Plans

H2 Database Engine

  • H2 Database EngineFree

H2 Database Engine pricing →

SQLite

  • Public ForumFree
  • SQLiteFree
  • SQLite Consortium Membership$150 a year
  • Technical Support$885 a year
  • Annual Maintenance Subscription$1,500 a year
  • Annual Maintenance Subscription$1,500 a year
  • CEROD$2,000, paid once
  • CEROD$2,000, paid once
  • SQLite Encryption Extension (SEE)$2,000, paid once
  • SQLite Encryption Extension (SEE)$2,000, paid once

SQLite pricing →

In their own words

H2 Database Engine

H2 Database Engine is a free SQL database written in Java. It runs in embedded, server or mixed modes, with databases held on disk or in memory. H2 supports standard SQL and JDBC; server mode also accepts JDBC or ODBC over TCP/IP. A browser-based Console provides autocomplete. Listed database capabilities include transactions, multi-version concurrency and row-level locking, with JSON data support and high availability listed. Compatibility modes cover IBM DB2, Apache Derby, HSQLDB, MS SQL Server, MySQL, Oracle and PostgreSQL. Database files can use AES-128 encryption, while remote JDBC connections can use TLS. H2 is available for Linux, macOS and Windows, as an API, and for self-hosted or web deployment. It is dual licensed under MPL 2.0 or EPL 1.0, allowing integration into and distribution with commercial applications. The JAR is described as around 2.5 MB. The plan costs nothing.

Visit h2database.com

SQLite

SQLite is a transactional SQL database engine that runs within an application, without a separate server process or configuration. Each complete database resides in a single disk file that works across platforms. Its SQL features include partial indexes, indexes on expressions, JSON, common table expressions, and window functions. Transactions are atomic, consistent, isolated, and durable, including after system crashes and power failures. A database file can have unlimited simultaneous readers, but only one writer at a time. The project recommends SQLite for device-local storage with low writer concurrency and less than a terabyte of content. SQLite is free for commercial or private use, with source code in the public domain. Downloads include source and precompiled binaries for Android, Linux, Mac OS X, and Windows, along with WebAssembly and JavaScript bundles for web applications. A free public forum is available, alongside paid private email and technical support options. The maker is based in Charlotte, North Carolina, and was founded in 2000.

Visit sqlite.org