Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

H2 Database Engine

By H2 Database Engine · h2database.com

  • Free plan
  • Windows
  • macOS
  • Linux
  • Web
  • API
  • Self-hosted
7.9 Club score Visit h2database.com

What H2 Database Engine is

H2 Database Engine is a free SQL database written in Java. It supports embedded, server, and mixed modes, with databases stored on disk or held in memory. H2 works with standard SQL and JDBC; in server mode, JDBC or ODBC connections can use TCP/IP. A browser-based Console includes autocomplete. Listed database features include transactions, multi-version concurrency, and row-level locking. Compatibility modes are available for IBM DB2, Apache Derby, HSQLDB, MS SQL Server, MySQL, Oracle, and PostgreSQL. Database files can be encrypted with AES-128, and remote JDBC connections can use TLS. H2 is dual-licensed under MPL 2.0 or EPL 1.0, and the license permits integration into and distribution with commercial applications. The home page describes the JAR file as around 2.5 MB and lists a Windows installer and an all-platforms ZIP. H2 warns that it is not designed for adversarial environments and advises against exposing its server to untrusted connections. Support is directed to Stack Overflow and a Google Group.

Who it suits

H2 suits developers who need a free SQL database with embedded or server deployment and disk-based or in-memory storage. Its warning about untrusted connections is important for anyone considering server mode.

Good to know, and what to watch

  • Supports embedded, server, and mixed modes.
  • Offers SQL and JDBC, plus ODBC in server mode.
  • Database files support AES-128 encryption; remote JDBC can use TLS.
  • Dual-licensed under MPL 2.0 or EPL 1.0.
  • H2 advises against exposing its server to untrusted connections.
  • The project says it is not designed for adversarial environments.

H2 Database Engine

Free

Free plan

The verdict

H2 offers several deployment and storage modes, SQL compatibility options, and encryption features. Follow its warning against untrusted server connections when planning a deployment.

What the maker publishes

Compatibility
Compatibility modes are listed for IBM DB2, Apache Derby, HSQLDB, MS SQL Server, MySQL, Oracle, and PostgreSQL. source
Database modes
It supports embedded, server, and mixed modes, with disk based or in memory databases. source
Downloads
The home page lists a Windows installer and an all platforms ZIP download. source
Encryption
The feature list says database files can be encrypted with AES-128 and remote JDBC connections can use TLS. source
Footprint
The home page describes a small footprint of around 2.5 MB for the JAR file. source
Founded
2004 source
Free plan
Yes source
License
H2 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. source
Purpose
H2 is a free SQL database written in Java. source
Security
The security page warns that H2 is not designed for adversarial environments and advises against exposing an H2 server to untrusted connections. source
SQL and APIs
H2 supports standard SQL and JDBC, and server mode supports JDBC or ODBC over TCP/IP. source
Support
The home page directs users to Stack Overflow and a Google Group for support. source
Transactions
The feature list includes transaction support, multi version concurrency, and row level locking. source
Web console
H2 includes a browser based Console application with autocomplete. source

Checked against the maker's pages on 2 Oct 2026.