BaseX

active

by BaseX GmbH · since 2007

Lightweight, fast native XML database and XQuery 3.1/4.0 processor with a GUI.

xmldocumentsearch enginedatabase engineopen source (permissive)mature

Overview

BaseX is a compact Java XML database and XQuery processor known for fast query evaluation, standards conformance and a useful visual GUI for exploring documents. It supports XQuery 3.1 (with growing XQuery 4.0 support), XQuery Full Text, XQuery Update and RESTXQ for building web services, and it can also store and query JSON, CSV and binary files. It runs embedded, as a client/server database or as an HTTP server, and releases arrive several times a year (12.4 in May 2026) from a small, dedicated team. It is a strong, permissively licensed choice for XML processing and document-centric apps on a single machine.

Strengths & trade-offs

Strengths

  • +Very fast, standards-conformant XQuery engine
  • +Visual GUI with tree maps and query editor for exploring XML
  • +Permissive BSD license
  • +RESTXQ makes it easy to expose XQuery as web APIs
  • +Handles JSON, CSV and HTML alongside XML

Trade-offs

  • −No replication or clustering
  • −Small vendor; long-term support depends on a handful of maintainers
  • −Write concurrency is limited compared with general-purpose databases

Great for

  • +XML transformation and querying pipelines
  • +Digital humanities and archival corpora
  • +Embedded XQuery processing in Java applications
  • +Small document-centric web services

Think twice for

  • −High-availability production clusters
  • −Write-heavy transactional systems

Capabilities

Native or official first-party support · 9 of 25 tracked

✓Transactions
✓Joins
✓Secondary indexes
✓Full-text search
✓JSON
✓In-memory
✓Durable persistence
✓Role-based access
✓Online schema changes
–Vector search
–Geospatial
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Compression
–Encryption at rest
–Time travel
–Branching
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Schemaless
Architecture
Single node, Embedded, Client server, In memory
Query languages
XQuery 3.1/4.0, XPath, XQuery Full Text, XQuery Update, XSLT

Single server; individual databases scale to many GB, and large corpora are split across databases.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsREST, RESTXQ, WebDAV, Client/server TCP API
client languagesJava, Python, C#, JavaScript, PHP, Ruby

Alternatives to BaseX

Compare all→
eXist-dbXML19.3

Open-source native XML database and XQuery application platform for documents and digital editions.

basex vs exist-db →
MarkLogicDocument21.6

Enterprise multi-model database for XML, JSON and RDF with built-in search and semantic RAG.

basex vs marklogic →
SednaXML1.8

Academic native XML DBMS from ISP RAS with full ACID transactions; long since abandoned.

basex vs sednadb →
MongoDBDocument80.5

The default document database: flexible BSON documents, rich queries and built-in sharding.

basex vs mongodb →
PostgreSQLRelational93.2

The extensible, standards-first open-source relational database.

basex vs postgresql →
Apache JackrabbitHierarchical13.4

Apache's Java Content Repository: a hierarchical, versioned node store with search, behind many Java CMSs.

basex vs jackrabbit →

BaseX FAQ

What is BaseX?

BaseX is a XML database by BaseX GmbH, first released in 2007. BaseX is a compact Java XML database and XQuery processor known for fast query evaluation, standards conformance and a useful visual GUI for exploring documents. It supports XQuery 3.1 (with growing XQuery 4.0 support), XQuery Full Text, XQuery Update and RESTXQ for building web services, and it can also store and query JSON, CSV and binary files. It runs embedded, as a client/server database or as an HTTP server, and releases arrive several times a year (12.4 in May 2026) from a small, dedicated team. It is a strong, permissively licensed choice for XML processing and document-centric apps on a single machine.

Is BaseX open source?

Yes. BaseX is open source. License: BSD 3-Clause.

Does BaseX support ACID transactions?

Partly. BaseX offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does BaseX scale horizontally?

BaseX 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 BaseX?

You can self-host it and embed it in your application.

What is BaseX best for?

BaseX is a strong fit for XML transformation and querying pipelines; digital humanities and archival corpora; and embedded XQuery processing in Java applications. Think twice for high-availability production clusters.

What are the best alternatives to BaseX?

Common alternatives to BaseX include eXist-db, MarkLogic, Sedna, MongoDB and PostgreSQL. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is BaseX?

BaseX ranks #189 of 844 databases on the WhichDB Score (17.5/100), and #2 among XML databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.