MongoDB Query Builder
Build MongoDB find filters with comparison, logical, regex, existence and array operators, plus projection and sort.
Build a find query
Filters: —
Collection: —
Status: —
How to use the MongoDB Query Builder
- Type one filter per line using a comparison or a named operator.
- Add the projection, the sort and a result limit.
- Click Build query and copy the filter document or the shell command.
Features
- Comparison operators for equality and ranges
- Logical operators, regex, existence and array operators
- Projection, sort and limit support
- Filter JSON plus the matching shell command
Advertisement
Frequently Asked Questions
Common questions about the free online mongodb query builder.
It turns readable filter lines into a find filter document and shows the same query as a
shell command.
Use age greater than or equal to 18, and the builder emits a dollar gte operator with the
number as its value.
Write name regex ^A and the builder emits a dollar regex filter with the pattern you typed.
Write email exists true for documents that have the field, or email exists false for
documents that do not.
Write tags in [news, tech] to match any listed value, or tags nin [draft] to exclude a value.
Yes. Start a line with and or or and the builder wraps the rest of the line in a dollar and
or dollar or array.
List the fields separated by commas, such as name, email, -_id, where a minus sign means
exclude the field.
A ready to paste db.collection.find call with the filter, the projection and any sort and
limit you set.
No. The query is built in your browser only, so no connection details and no data ever leave
your device.
Yes. The builder is completely free and works on desktop, tablet and phone without an
account.
Last updated: October 10, 2026