SQL & Databases

EXPLAIN Plan Visualizer

Render a Postgres or MySQL query plan as a cost-weighted tree.

  • History kept on this deviceRecent results are kept in this browser's local storage until you clear them.
  • Runs in your browserProcessing happens in this page. No application server receives your input.

EXPLAIN JSON input

Plan tree

Paste EXPLAIN (FORMAT JSON) output from PostgreSQL or EXPLAIN FORMAT=JSON output from MySQL to inspect the execution plan tree.

What this tool does

Renders a PostgreSQL or MySQL query plan as a disclosure tree weighted by exclusive cost and actual execution time, highlighting the hot-path node and making row-estimate errors visible on every node.

Exclusive cost and loop-multiplied rows

In a PostgreSQL plan, a node's Total Cost is cumulative and includes every child's cost. This tool subtracts children's totals to compute exclusiveCost so the root is not falsely marked as the bottleneck. It also multiplies Actual Rows by Actual Loops at the parser boundary so nested-loop inner scans are compared against total rows produced across all loops rather than per-iteration averages.

Limits

Reads EXPLAIN (FORMAT JSON) from Postgres and EXPLAIN FORMAT=JSON from MySQL. Text-format EXPLAIN output is not parsed: the format is ambiguous enough that a parser for it would be wrong on plans it did not see. It offers no advice: no β€œadd an index here”, no rewrite suggestions. It shows the plan the engine chose and where the time went, and the reading is the user's. Without ANALYZE there are no actual timings, and the tool says Estimates only β€” run EXPLAIN (ANALYZE, FORMAT JSON) for real timings rather than presenting costs as durations.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.