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

Choose from JSON or document templates. Code generation templates support JSON output. For more information, see more.

2

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

A generated code example
1

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

2

Perform a snapshot migration and verify data integrity within Relational Migrator.

The data migration UI in Relational Migrator
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