Starting your coding environment
A machine is being prepared for you. This usually takes under a minute.
Free online MongoDB editor
JDoodle is an online IDE that has served the programming community since 2013. You write, compile, and run code in the browser for MongoDB and many other languages, without installing a toolchain.
What you see on this page is JDoodle’s free MongoDB editor. Write queries in the editor and run them against a real MongoDB server, with the results in a table beside them. You do not install MongoDB and you do not configure anything: the database is started for you, it is yours for the session, and it can be reset from the header when you want to begin again. Because it is a server of your own rather than a shared one, running a query needs a JDoodle account, which is free.
Online MongoDB editor
JDoodle’s MongoDB editor on this page highlights syntax, completes as you type, matches brackets, and folds blocks. It is an online MongoDB editor: you write a query here, then run it against the hosted database.
Frequently asked questions
Is JDoodle’s online MongoDB editor free?
Yes. Running MongoDB on JDoodle costs nothing. It does need an account, because the environment is a machine started for you rather than shared, and an account is free to create. Paid plans add more AI credits, longer sessions and faster workspaces.
Do I need to install MongoDB to use JDoodle?
No. JDoodle runs MongoDB on its servers. Open this page in a browser and execute.
Do I need an account to run MongoDB on JDoodle?
Yes, and it is free to create. MongoDB runs on a machine JDoodle starts for you and keeps for the length of your session, rather than on shared infrastructure, so it cannot be handed to somebody we do not know. Everything else on this page can be read without one.
Is the MongoDB database a real one?
Yes. Your queries run against a real MongoDB server, not an emulation of one, so behaviour, error messages and types are what you would get from MongoDB anywhere else. The database is yours for the session and can be reset from the header.
Input, interactive runs, files, and the rest of the editor work the same on every language. See the JDoodle IDE documentation.