HCL Indentation Formatter
Normalize indentation for a bounded HCL native-syntax snippet while preserving strings, comments, and heredoc bodies.
This tool handles input and primary processing in your browser and is designed not to send the input to QuickKit’s server.
Avoid live production secrets; use dummy or masked data where possible. Data handling details
Indented output
How it works
This is deliberately a structural indentation formatter, not a full HCL parser and not terraform fmt. It recognizes quoted strings, line and block comments, heredoc bodies, and balanced braces, brackets, and parentheses, then applies two-space indentation. It does not align equals signs, parse HCL expressions/templates, validate Terraform semantics, or promise canonical Terraform formatting. Input is capped at 128 KiB and 4000 lines. For canonical production formatting, run the target Terraform version's terraform fmt and then terraform validate.