The Terraform Lint / Format Previewer is a private, browser-only utility that shows how the terraform fmt command would rewrite your configuration before you ever run it in a terminal. When teams collaborate on infrastructure as code, formatting drift is inevitable: different editors insert different indentation, trailing whitespace, quote styles and brace placement, and pull requests quickly fill with noise that has nothing to do with the actual change. This previewer parses the pasted HCL with the same structural model Terraform uses and re-emits it in canonical, two-space-indented form so you can see exactly what a formatter would produce.
Beyond the normalized text, the tool reports a clear changed flag so you know at a glance whether the code would be rewritten, and it counts the original and formatted line totals so you can gauge the size of the layout shift. Because everything runs locally in your browser, no configuration, secrets, variable values or resource addresses ever leave the page. It is ideal for code review, for teaching contributors the canonical HCL style, and for quickly normalizing a snippet copied from a blog post or chat message before pasting it into a module.
The previewer is also useful as a sanity check before committing: paste a file from a teammate and confirm whether the formatter would touch it, which tells you whether review comments about style are even warranted. It complements linters that check deeper correctness, focusing purely on presentation so the two tools stay complementary rather than overlapping.