Terraform Formatter
Paste Terraform or HCL code and format it with proper indentation and alignment. Like terraform fmt but in your browser.
3.3Kuses
9/10(435)
Click Format to see the result...
How to Use
- Paste your Terraform or HCL code in the input editor.
- Click Format to auto-indent and align your code.
- Copy the formatted output or continue editing.
Features
- Automatic indentation of nested blocks
- Alignment of = signs within the same block
- Preserves blank lines for readability
- Handles resources, variables, outputs, data sources
- 100% client-side - your code never leaves your browser
⚡ Pro OptionsSponsored
Some links on this page are affiliate links. If you click and make a purchase, we may earn a commission at no extra cost to you.
Recommended Products
Ad⌨️Mechanical KeyboardsShop →🖥️Ultrawide MonitorsShop →🪑Standing DesksShop →🎧Noise Cancelling HeadphonesShop →📚Programming BooksShop →💻Laptop StandsShop →🖱️Wireless MouseShop →🔌USB-C HubShop →👓Blue Light GlassesShop →🖥️Desk PadShop →
Affiliate Disclosure: As an Amazon Associate, ToolBird earns from qualifying purchases. Links above are affiliate links — if you buy through them, we may earn a small commission at no extra cost to you.
Disclaimer: This tool is provided as-is for informational and educational purposes only.