SQL to MongoDB - Free Online SQL to Mongo Query Converter Tool | IconVault
Convert SQL SELECT queries to MongoDB find() or an aggregate pipeline. WHERE, ORDER BY, LIMIT supported. Free, runs fully in your browser.
SQL to MongoDB
SELECT queries to find() or aggregate()
Supported subset. SELECT columns, FROM, WHERE with AND/OR and parentheses, =, !=, <>, >, <, >=, <=, LIKE, IN, BETWEEN, IS NULL / IS NOT NULL, ORDER BY, LIMIT, OFFSET. Not supported: JOINs, subqueries, GROUP BY aggregations, or expressions in the SELECT list.
SQL SELECT query
5 of 5 free conversions left. Runs in your browser, nothing is uploaded.
About this tool
IconVault's SQL to MongoDB translates SELECT queries into MongoDB you can paste straight into mongosh. It converts columns, WHERE with AND/OR and parentheses, comparison operators, LIKE, IN, BETWEEN, IS NULL, ORDER BY, LIMIT and OFFSET into either a chained find() call or an aggregate() pipeline with $match, $project, $sort, $skip and $limit stages.
Conversion runs 100% in your browser and is free. It is honest about the supported subset: JOINs, subqueries and GROUP BY aggregations are rejected with a clear error instead of silently producing wrong queries, and LIKE patterns become proper anchored regular expressions.
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon