Mongo Query Playground
Practise MongoDB shell queries in your browser. Nothing is uploaded.
- 1Write a Mongo shell query
- 2Press Run
- 3Want your own data? Import a file
About the Mongo Query Playground
Practise MongoDB shell queries without installing a database. The playground runs inside your browser tab. It follows mongosh syntax and starts with sample customers, products and orders collections. You can import your own JSON or CSV files.
It is meant for learning query and aggregation syntax and trying ideas on small data. It is not a MongoDB server: drivers and applications cannot connect, and indexes, transactions and replication are not available.
Questions
Is this real MongoDB?
No. It is an in-browser engine that follows MongoDB shell syntax. It supports common query and update operators and aggregation stages such as $match, $group, $lookup, $unwind, $project, $facet and $bucket, but not every MongoDB feature.
Can I connect to it from Java, Python or another program?
No. There is no server or connection string, so MongoDB drivers for Java, Python, Node.js and other languages cannot connect. Queries run only from the editor on this page.
Is my data uploaded?
No. The database runs inside your browser tab. Your queries and imported files never leave your device.
What files can I import?
JSON (an array of documents, one document per line, or an export with several collections) and CSV. Each file becomes a collection.
Is my data saved?
No. Reloading the page resets the collections. Use Export to download them as JSON first. The text in the editor is kept.
More playgrounds
PostgreSQL Playground · SQLite Playground · DuckDB Playground · PostgreSQL Query Performance Lab · JSON Query (SQL on JSON) · All playgrounds
