Changing language resets inputs and results.

Conversion

Generate SVG and HTML from Plan JSON, inspect the diagram, and download it.

Follow the workflow from preparing JSON to conversion and download with a small example: a VPC, a subnet and three EC2 instances.

This page displays pregenerated files and does not run conversion.

Please read the usage notes and disclaimer.

Create the input JSON

In the working directory containing your Terraform configuration files (.tf), run these commands in order to initialize, save a plan, and export JSON. This site does not run Terraform.

terraform init
terraform plan -out=saved.tfplan
terraform show -json saved.tfplan > plan.json

On the conversion page, select the resulting plan.json, choose SVG or HTML, and press Generate. Preview the result and download it.

Open the conversion page

Support and version coverage

Browser verification coverage

2026-10-26: Automated checks on Docker / Debian 12 Linux x86_64 with Playwright 1.64.1 Chromium 156.0.8078.4, Firefox 157.0 and WebKit 27.2 covered startup, SVG/HTML generation, preview, download, cancellation, memory-limit rejection and recovery. These are test builds. Branded Chrome, Firefox and Safari and physical Windows/macOS/iOS/Android devices remain unverified. WebKit results do not establish Safari support.

WebAssembly, Blob Workers, strict UTF-8 reading, Web Crypto and file downloads are required. Use HTTPS. Downloads remain available if only preview is unavailable. Selecting 2 / 4 GiB does not guarantee allocation.

Multiple files and state names

Each file needs a state name when using multiple inputs. The initial name comes from its filename without the final .json; it is not a verified state, workspace or account name. Edit it as needed and correct invalid characters or duplicates. Identical resource addresses remain distinct across states.

Use unique, case-sensitive state names: 1–64 ASCII letters, digits, periods, underscores or hyphens.

Specify cross-state connections with explicit mappings. Matching names or ARNs never creates automatic connections. Named inputs rest between steps and pause at work boundaries in hidden tabs, with cancellation and aggregate input, structural and output budgets.

Open the conversion page

Memory, preview and downloads

The generation memory limit ranges from 512 MiB to 4 GiB and does not cap the whole browser. It does not reserve the full amount upfront; availability of 2 / 4 GiB depends on your device and browser. For memory shortages, reduce the input or raise the limit if your device has capacity. If initialization fails, retry with a smaller limit.

Results up to 4 MiB can be downloaded. Diagrams up to 256 KiB and 1,500 elements preview automatically; up to 1 MiB and 10,000 elements, use Show preview. Download larger diagrams to inspect them. Previewing may increase device load. Download results you want to keep.

A single input keeps its JSON filename with an .svg or .html extension. Check the filename before sharing. Public samples use a sample- prefix. Named inputs, anonymized diagrams and inputs with unsafe filenames use diagram.svg or diagram.html.

Open the conversion page

Input JSON

This fictional example has five resources. Follow Try sample, press the matching button on the conversion page, then Generate. It creates new, updates the instance_type of app, and deletes old. The VPC and subnet are unchanged.

Both SVG and HTML use all resources, original identifiers, qualified addresses, service-name labels, the Relationship Lines legend omitted and no diagnostic panels. They are generated from the same input with the exact engine revision shipped by this site.

Try sample

Change statusSample resources
createaws_instance.new
updateaws_instance.app
deleteaws_instance.old
unchanged (no-op)aws_vpc.demo, aws_subnet.app

EC2 headings show resource type and action; VPC and Subnet headings show the action. Addresses prefixed with module.root and the upper-right VPC, Subnet and EC2 labels identify the resources. The VPC contains a Subnet with app and new; the deleted old instance appears separately below. The arrow from app to new represents a dependency.

This example has no Logical Resources groups, embedded Route child resources or numbered Relationship Resources. See the glossary for inputs that include them.

Read the glossary for diagram headings and lines

Show input JSON
{
  "format_version": "1.2",
  "terraform_version": "1.9.8",
  "resource_changes": [
    {
      "address": "aws_vpc.demo", "mode": "managed", "type": "aws_vpc", "name": "demo",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["no-op"],
        "before": {"id": "vpc-demo", "cidr_block": "10.0.0.0/16"},
        "after": {"id": "vpc-demo", "cidr_block": "10.0.0.0/16"}
      }
    },
    {
      "address": "aws_subnet.app", "mode": "managed", "type": "aws_subnet", "name": "app",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["no-op"],
        "before": {"id": "subnet-app", "vpc_id": "vpc-demo", "cidr_block": "10.0.1.0/24"},
        "after": {"id": "subnet-app", "vpc_id": "vpc-demo", "cidr_block": "10.0.1.0/24"}
      }
    },
    {
      "address": "aws_instance.new", "mode": "managed", "type": "aws_instance", "name": "new",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["create"], "before": null,
        "after": {"subnet_id": "subnet-app", "instance_type": "t3.micro"}
      }
    },
    {
      "address": "aws_instance.app", "mode": "managed", "type": "aws_instance", "name": "app",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["update"],
        "before": {"id": "i-app", "subnet_id": "subnet-app", "instance_type": "t3.micro"},
        "after": {"id": "i-app", "subnet_id": "subnet-app", "instance_type": "t3.small"}
      }
    },
    {
      "address": "aws_instance.old", "mode": "managed", "type": "aws_instance", "name": "old",
      "provider_name": "registry.terraform.io/hashicorp/aws",
      "change": {
        "actions": ["delete"],
        "before": {"id": "i-old", "subnet_id": "subnet-app", "instance_type": "t3.micro"},
        "after": null
      }
    }
  ],
  "configuration": {
    "root_module": {
      "resources": [
        {"address": "aws_vpc.demo"},
        {"address": "aws_subnet.app", "expressions": {"vpc_id": {"references": ["aws_vpc.demo.id"]}}},
        {"address": "aws_instance.app", "expressions": {"subnet_id": {"references": ["aws_subnet.app.id"]}}},
        {"address": "aws_instance.new", "expressions": {
          "subnet_id": {"references": ["aws_subnet.app.id"]},
          "user_data": {"references": ["aws_instance.app.private_ip"]}
        }}
      ]
    }
  }
}

Omit the Relationship Lines legend

On the conversion page, select your JSON and output format, then generate. To show the legend, clear “Omit the entire Relationship Lines legend” in advanced settings. Both SVG and HTML omit it by default.

This changes the legend display; actual relationship lines remain. Changing the setting cancels pending work and discards the previous result, so generate again. The pregenerated sample on this page omits the legend by default.

Open the conversion page

Relationship Lines and what omission changes (Glossary)

SVG

This static diagram shows the full configuration. Use the HTML viewer below to zoom in and search for details.

Open SVG in a new tab

Diagram of a VPC, subnet and three EC2 instances being created, updated and deleted

HTML viewer

Read-only viewer. Search and zoom to inspect details, or use Fit to view to return to the full diagram.

Open HTML in a new tab

The generation record lists the engine commit, options, and SHA-256 of each file. Generation record