Terraform Formatter
Runs in your browser — nothing is uploaded
Input HCL
Formatted
About this tool
Re-indents Terraform HCL based on brace nesting depth — a best-effort formatter, not a full HCL parser. Comments are kept as-is (not stripped); heredoc (<<EOF) content and braces inside string values/comments aren't specially handled, so double-check those sections.
Frequently asked questions
What is Terraform Formatter?
Re-indent Terraform configuration. It is one of the Cloud & DevOps tools on MyCodeTips.
How do I use Terraform Formatter?
Open the tool, enter or paste your input, and the result appears right away. Use the Copy button to copy it.
Is Terraform Formatter free to use?
Yes. It is free to use and does not need an account.
Is my data safe with Terraform Formatter?
Yes. It runs entirely in your browser, so what you enter is never uploaded to our servers.
Can I share my result?
Yes. Use the share buttons below the tool to post a link or copy a link to the tool page.
- Send output to…
- Nothing to send yet.
- Received output from {tool}
- Undo
- Dismiss