Docs Menu

What is Relational Migrator

MongoDB Relational Migrator is a free tool to help you migrate data from a relational database to MongoDB. With Relational Migrator, you can:

  • Transform your data

    Define a new MongoDB schema for your data, or start with a recommended one and customize it to suit your needs.

  • Easily migrate to MongoDB

    Migrate data from popular relational databases like Oracle, SQL Server, MySQL, PostgreSQL, and others to MongoDB Atlas or a self-managed deployment.

  • Generate application code

    Get MongoDB-compatible code for entity classes, persistence layers, and APIs.

  • Convert SQL database objects with Generative AI

    Convert SQL queries, procedures, and views -- then, validate them.


Download Relational Migrator
An image of documents moving from one stack to another
What You Can Do
1

Use the Mapping screen's entity-relationship diagrams to define a new schema, or start with a recommended schema and customize it. Define new fields, split or merge table data, or denormalize foreign key relationships as embedded documents and arrays.

2

Use custom mapping rules to denormalize your relational schema, or incorporate multiple tables into a single MongoDB collection for improved data access and query performance.

An entity-relationship diagram in Relational Migrator
1

Migrate data from relational databases like Oracle, SQL Server, MySQL, PostgreSQL, and others to MongoDB Atlas or a self-managed deployment.

2

Choose between a snapshot migration, or continuous synchronization with Change Data Capture (CDC). Verify data integrity within Relational Migrator and integrate with Apache Kafka or Confluent Cloud for large-scale migrations.

The data migration UI in Relational Migrator
1

Choose from languages like C#, Java, and JavaScript. Code generation templates support JSON output and common application frameworks like Spring Data, Node, Mongoose, and more.

2

Instantly generate MongoDB-compatible application code for entity classes, persistence layers, and APIs.

A generated code example
1

Convert SQL queries, views, and stored procedures into MongoDB-compatible code for C#, Java, or JavaScript.

2

Test queries within Relational Migrator to validate converted SQL and ensure compatibility with MongoDB.

A query converted from SQL to MQL
Related Products & Resources

Explore libraries and tools for MongoDB.

Use MongoDB in your application’s language

Learn about Drivers

Visually explore your data with MongoDB Compass

View Compass Docs

Manage and monitor your deployments

View Ops Manager