SQL EXPLAIN Visualizer

Render a Postgres / MySQL / SQL Server query plan as a collapsible tree with cost highlights.

Paste a query plan to render its tree.

About this tool

Paste a query plan (Postgres EXPLAIN or EXPLAIN ANALYZE text, MySQL EXPLAIN FORMAT=TREE, or a SQL Server text plan). The indented tree is rendered as nested cards with node type (Seq Scan / Index Scan / Hash Join / etc.), cost (startup..total), rows, width and — when ANALYZE is on — actual time and loops. Expensive nodes (within 20% of the worst total cost) are highlighted red. Dialect is auto-detected from the plan shape; override with a dropdown if needed.

An unhandled error has occurred. Reload ×