EXPLAIN Visualization
Click Explain in the query editor toolbar, or use Query > Explain Query (default shortcutCmd+Option+E), to get the execution plan for the current query.
Databases with multiple EXPLAIN variants show a dropdown: PostgreSQL offers EXPLAIN (estimated plan) and EXPLAIN ANALYZE (runs the query and shows actual timing); MySQL and MariaDB offer EXPLAIN and EXPLAIN (JSON). Databases with a single variant, like SQLite or DuckDB, show a plain Explain button.
Typing an EXPLAIN, EXPLAIN ANALYZE, EXPLAIN FORMAT=JSON, or MariaDB’s ANALYZE FORMAT=JSON statement in the editor and running it opens the same plan viewer, as long as the plan comes back in a single column. Multi-column plans like MySQL’s plain EXPLAIN table stay in the results grid.

EXPLAIN diagram view
View Modes
Toggle between three views using the segmented control above the results: Diagram shows the plan as boxes connected by arrows, top to bottom. Nodes are color-coded by cost: green (cheap) to red (expensive). Click a node to see full details in a popover. Zoom controls are in the bottom-right corner.
EXPLAIN tree view
Database Support
Plan Details
Each node in the plan shows:- Operation: Seq Scan, Index Scan, Hash Join, Nested Loop, Sort, etc.
- Table: which table the operation accesses
- Cost: startup and total cost estimates (PostgreSQL format: 0.00..45.18)
- Rows: estimated number of rows
- Actual time: real execution time per node (EXPLAIN ANALYZE only)
EXPLAIN does not execute the query. EXPLAIN ANALYZE executes it and shows actual timing; use it cautiously on production systems.


