HCL / Terraform Input
Formatted Output
Format Terraform / HCL configuration online
Paste Terraform (HCL) configuration and get consistently indented, aligned output — the formatting terraform fmt would apply, available in your browser with no Terraform install required.
Frequently Asked Questions
- How does this compare to terraform fmt?
- It applies the same core conventions — two-space indentation and aligned assignments. For CI enforcement, still run terraform fmt -check in your pipeline; this tool is for quick cleanups.
- What is HCL?
- HashiCorp Configuration Language is the syntax used by Terraform, Packer, and other HashiCorp tools — human-friendly blocks and attributes that compile to JSON-equivalent structure.
- Why does formatting matter for Terraform?
- Consistent formatting makes diffs reviewable — a plan touching thirty resources is hard enough to review without noise from inconsistent indentation.
- Is my configuration uploaded?
- No — formatting runs in your browser. Terraform files frequently reference account IDs and internal names, so local processing is the right default.
Related Tools
Found this useful? Hexabench is free and ad-free. If it saved you time, you can support it.
Buy me a coffee →