twineconvert

Format guide

HCL

HashiCorp Configuration Language

HCL is the config language behind Terraform, Packer, Vault, Consul, and Nomad — all HashiCorp tools. Designed to be more concise than JSON and more human-friendly than YAML. Blocks describe resources (`resource "aws_s3_bucket" "example" { ... }`), attributes use `=`. HCL2 (current) supports expressions, conditionals, and string interpolation.

How to open a HCL file

Terraform Language Server (in VS Code, IntelliJ, Vim) provides syntax highlighting + validation. `terraform fmt` reformats. Files use `.tf`, `.hcl`, or `.tfvars` extensions.

Primary use

Infrastructure-as-code config for Terraform and HashiCorp tools.

Convert HCL to other formats

Looking for something else? Browse the full list of 192 converters.