Developer

HCL Formatter✓

Format HCL block indentation and attribute spacing while preserving expressions, strings and comments.

Tools will load when you run.
Input method
Plain Text
0 characters

How to use HCL Formatter

  1. Choose your HCL, plain text or paste text into the editor.
  2. Choose your HCL source or paste it into the editor and review the supported parser or engine.
  3. Run the HCL formatter and download the result.

Process multiple files

Use a workflow to apply the same settings to each file.

Formats and requirements

Input formats
HCL, plain text
Output
Depends on the selected output options
Availability
Free in your browser and through the CLI
Files per operation
1
Browser file limit
1 MiB per file, 16 MiB total

What to expect

Normalizes HCL block indentation and attribute spacing. Expressions, strings and comments are preserved; this is not a replacement for all terraform fmt rules. up to 1 MiB per input file.

Do my files leave my device?

No. Thanks to advanced file-processing technology, your files are processed directly on your device, inside your browser. OneKit does not receive your input files or results. Required public processing libraries may download when you first use the tool.

File privacy and local processing →

Install OneKit

Keep OneKit in its own app window, with a shortcut on your device.