Collection View
The Collection View is your primary interface for browsing, viewing, and analyzing documents in MongoDB collections. It offers three distinct viewing modes—Tree View, Table View, and BSON View—each optimized for different use cases. Master the keyboard shortcuts to navigate efficiently through your data.
Open a collection and switch between viewing modes:
Ctrl + 1 for Tree View, Ctrl + 2 for Table View, or Ctrl + 3 for BSON ViewCtrl + F to search within documentsF5 to refresh and reload documentsMaster these keyboard shortcuts to navigate the Collection View efficiently:
| Shortcut | Action | Description |
|---|---|---|
| Ctrl + 1 | Switch to Tree View | Display documents in expandable tree structure |
| Ctrl + 2 | Switch to Table View | Display documents in spreadsheet-like table |
| Ctrl + 3 | Switch to BSON View | Display raw BSON/JSON representation |
| Shortcut | Action | Description |
|---|---|---|
| ↑ / ↓ | Navigate documents | Move up/down through document list |
| Page Up / Page Down | Fast scroll | Jump through multiple documents at once |
| Home | First document | Jump to the first document in the list |
| End | Last document | Jump to the last loaded document |
| Ctrl + A | Select all | Select all visible documents (Table View) |
| Shift + Click | Range select | Select range of documents (Table View) |
| Ctrl + Click | Multi-select | Add/remove documents from selection |
| Shortcut | Action | Description |
|---|---|---|
| Ctrl + N | New document | Open editor to create a new document |
| Ctrl + E | Edit document | Open selected document in editor |
| Ctrl + D | Duplicate document | Create a copy of selected document |
| Delete | Delete document | Delete selected document(s) with confirmation |
| Ctrl + C | Copy document | Copy document JSON to clipboard |
| Ctrl + V | Paste document | Insert document from clipboard JSON |
| Enter | View/Edit document | Open document in edit mode (double-click alternative) |
| Shortcut | Action | Description |
|---|---|---|
| Ctrl + F | Find in documents | Open search panel to find text within documents |
| Ctrl + G | Find next | Jump to next search result |
| Ctrl + Shift + G | Find previous | Jump to previous search result |
| Esc | Clear search | Close search panel and clear highlights |
| Shortcut | Action | Description |
|---|---|---|
| F5 | Refresh | Reload documents from database |
| Ctrl + + | Zoom in | Increase font size in view |
| Ctrl + - | Zoom out | Decrease font size in view |
| Ctrl + 0 | Reset zoom | Reset font size to default |
| Ctrl + B | Toggle sidebar | Show/hide the database sidebar |
| Shortcut | Action | Description |
|---|---|---|
| → | Expand node | Expand selected tree node to show children |
| ← | Collapse node | Collapse selected tree node to hide children |
| Ctrl + → | Expand all | Recursively expand all nodes in document |
| Ctrl + ← | Collapse all | Collapse all nodes in document to root level |
| Space | Toggle expansion | Toggle expand/collapse of current node |
Press Ctrl + / to display the keyboard shortcuts help overlay anytime. The overlay shows context-specific shortcuts based on your current view mode and selected elements.
Tree View displays documents in an expandable hierarchical structure, making it ideal for exploring nested objects and arrays. Each field is displayed as a node that can be expanded or collapsed, allowing you to focus on the data you need.
Explore nested documents with expandable/collapsible nodes. See the full structure at a glance.
Visual icons show data types: objects, arrays, strings, numbers, dates, ObjectIds, and more.
Large arrays and deeply nested objects load on-demand to maintain performance.
Right-click any field to copy its dot-notation path (e.g., user.address.city).
Click any value to edit it inline. Changes are validated and saved immediately.
Search results are highlighted within the tree, with matching nodes auto-expanded.
Each node in the tree displays:
Tree View uses color coding and icons to distinguish data types:
| Type | Icon | Color | Example |
|---|---|---|---|
| Object | 📄 | White | { name: "John", age: 30 } |
| Array | 📋 | Yellow | [1, 2, 3, 4, 5] |
| String | "abc" | Green | "Hello World" |
| Number | 123 | Blue | 42, 3.14 |
| Boolean | ✓/✗ | Orange | true, false |
| Date | 📅 | Purple | ISODate("2026-04-02") |
| ObjectId | 🔑 | Cyan | ObjectId("507f1f77bcf86cd799439011") |
| Null | ∅ | Gray | null |
| Binary | 📦 | Pink | BinData(0, "...") |
Arrays in Tree View are displayed with special handling:
[0], [1], [2]items (25)Right-click any field in Tree View to access these actions:
user.profile.email)Table View displays documents in a spreadsheet-like format with rows and columns, perfect for comparing values across documents and performing bulk operations. Each unique field in your documents becomes a column, allowing you to see patterns and outliers at a glance.
Familiar grid interface with rows (documents) and columns (fields) for easy comparison.
Click column headers to sort ascending/descending. Multi-column sort with Shift+Click.
Drag column borders to adjust width. Double-click border to auto-fit content.
Drag column headers to rearrange. Your layout is saved per collection.
Right-click headers to show/hide columns. Focus on relevant fields only.
Select multiple rows with Shift+Click or Ctrl+Click for batch operations.
Double-click any cell to edit. Tab/Enter to navigate between cells.
Export visible columns and selected rows to CSV for external analysis.
The table is organized as follows:
address.city)Customize the table display with powerful column controls:
Table View intelligently displays different data types in cells:
| Data Type | Display Format | Notes |
|---|---|---|
| String | Plain text | Long strings are truncated with "..." and show tooltip on hover |
| Number | Formatted number | Right-aligned, thousands separators for large numbers |
| Boolean | ✓ true / ✗ false | Visual checkmark/X icons with color coding |
| Date | Localized date/time | Formatted based on user's locale, sortable as timestamp |
| ObjectId | Short ID with copy icon | Shows last 8 characters, click to copy full ID |
| Array | [n items] | Shows count, click to expand in modal viewer |
| Object | {n fields} | Shows field count, click to expand in modal viewer |
| Null | null | Italicized gray text |
| Undefined | undefined | Italicized gray text (missing field) |
Select multiple documents to perform batch operations:
Use Table View's sorting and selection to quickly identify and modify groups of documents. For example, sort by a status field, select all rows with "pending" status, then use bulk update to change them to "processed".
BSON View displays the raw JSON/BSON representation of your documents with syntax highlighting and formatting. This view is perfect for developers who prefer working directly with the document structure, copying JSON for code, or verifying the exact data format.
Color-coded JSON with distinct colors for keys, values, types, and punctuation.
Automatically formatted with proper indentation and line breaks for readability.
Easy navigation with line numbers in the gutter, clickable to select lines.
Collapse and expand objects and arrays to focus on specific sections.
MongoDB extended JSON format for special types (ObjectId, Date, Binary, etc.).
Copy entire document, selected lines, or specific values with one click.
Find text within JSON, with regex support and case-sensitive options.
Edit JSON directly with validation, auto-complete, and error highlighting.
Toggle between different JSON formatting modes:
Default format that preserves MongoDB-specific types:
{
"_id": { "$oid": "507f1f77bcf86cd799439011" },
"createdAt": { "$date": "2026-04-02T10:30:00.000Z" },
"tags": [ "mongodb", "database" ],
"metadata": {
"version": { "$numberInt": "2" },
"active": true
}
}
Standard JSON format, converting MongoDB types to strings:
{
"_id": "507f1f77bcf86cd799439011",
"createdAt": "2026-04-02T10:30:00.000Z",
"tags": [ "mongodb", "database" ],
"metadata": {
"version": 2,
"active": true
}
}
MongoDB shell format with constructors:
{
_id: ObjectId("507f1f77bcf86cd799439011"),
createdAt: ISODate("2026-04-02T10:30:00.000Z"),
tags: [ "mongodb", "database" ],
metadata: {
version: NumberInt(2),
active: true
}
}
BSON View includes a full-featured code editor:
When editing JSON directly, the editor validates syntax in real-time:
Multiple options for copying document data:
The Explain feature provides detailed insights into how MongoDB executes your queries, helping you identify performance bottlenecks, optimize indexes, and understand query execution plans. Use Explain to analyze any query running in the Collection View.
Run Explain on any collection query:
Choose the appropriate level of detail for your analysis:
| Level | Information Provided | Performance Impact | Use Case |
|---|---|---|---|
| Query Planner | Query plan, indexes used, stage breakdown | Minimal | Quick check of index usage without running query |
| Execution Stats | All of Query Planner + execution timing, docs examined, docs returned | Moderate (runs query) | Detailed performance analysis of chosen plan |
| All Plans Execution | All of Execution Stats + all candidate plans considered | High (runs all candidate plans) | Deep dive into query planner decision-making |
The Execution Stats view shows key performance metrics:
The execution plan is broken down into stages:
VisuaLeaf highlights potential performance issues with visual indicators:
| Indicator | Meaning | Recommendation |
|---|---|---|
| 🟢 Green Badge | Efficient query with good index usage | No action needed |
| 🟡 Yellow Badge | Moderate efficiency, room for improvement | Review execution stats for optimization opportunities |
| 🔴 Red Badge | Inefficient query, performance concern | Add indexes or rewrite query |
| ⚠️ COLLSCAN Warning | Full collection scan without index | Create appropriate index for query fields |
| ⚠️ SORT Warning | In-memory sort operation | Add index with sort field to avoid memory sort |
| ⚠️ High Examined/Returned Ratio | Scanning many more docs than returned | Index may not be selective enough |
The execution plan is displayed as an interactive tree:
VisuaLeaf automatically analyzes explain output and provides actionable recommendations:
This query performed a COLLSCAN and examined 45,233 documents to return 12 documents.
Recommended Action:
Create a compound index on the queried fields:
db.users.createIndex({ status: 1, createdAt: -1 })
This index will allow MongoDB to:
Expected Improvement: ~99.9% reduction in documents examined
Use Explain to compare different query approaches:
Create a personalized workflow by combining view modes: use Table View to identify documents of interest, switch to Tree View for detailed exploration, then use BSON View to copy the exact JSON for your code. All three views work on the same result set, so switching is instant.
Download and start managing your MongoDB databases with ease.
Download Free Trial