Source on GitHub
By Chris Lewis

CLI version

prettyplan

Just paste in your output from terraform plan (or use the provided example), and hit Prettify!

Prettyplan does not support plans from Terraform 0.12+. For more info, see the project's readme.