MongoDB Aggregation Pipeline Builder
Build MongoDB aggregation pipelines stage-by-stage with $match, $project, $group, $sort, $limit, $skip, $unwind, $lookup, $addFields, $count, and $facet. Per-stage live preview on pasted sample documents. Accumulators ($sum, $avg, $push, $first, $last, $max, $min, $count) and expressions ($cond, $switch, $concat, $toUpper, $toLower, $add, $subtract, $multiply, $divide, $dateToString, $ifNull, $literal). Export pipeline JSON + driver code for mongosh, Node, Python, Java, C#, and PHP. Stage enable/disable toggle, drag-reorder, shareable URL, history. 100% client-side.
Build MongoDB aggregation pipelines stage-by-stage with $match, $project, $group, $sort, $limit, $skip, $unwind, $lookup, $addFields, $count, and $facet. Per-stage live preview on pasted sample documents. Accumulators ($sum, $avg, $push, $first, $last, $max, $min, $count) and expressions ($cond, $switch, $concat, $toUpper, $toLower, $add, $subtract, $multiply, $divide, $dateToString, $ifNull, $literal). Export pipeline JSON + driver code for mongosh, Node, Python, Java, C#, and PHP. Stage enable/disable toggle, drag-reorder, shareable URL, history. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.