VLANlab
Catalog
About
VLANlab
Cloud
9 tools
Cloud VPC PlannerCloud IP RangeSecurity GroupsIAM AnalyzerK8s CIDR PlannerFirewall BuilderHCL FormatterEgress Cost CalcCloud DNS Zone
VM Cost EstimatorSoon
VLANlab

CALCULATE • LOOKUP • VERIFY

What Is My IP?IPv6 TestSpeed Test
DNS LookupDNS PropagationDNS Health CheckerSPF AnalyzerPTR LookupCAA RecordSRV RecordDNS TraceDNS PrivacyDANE / TLSADNSSEC CheckerSPF BuilderDKIM GeneratorZone DiffPTR Zone Generator
Subnet CalculatorCIDR Range ViewerVLSM CalculatorVLAN PlannerBandwidth CalcIPv6 Subnet CalcIP ↔ BinarySupernet CalcCIDR MergeCIDR to IP RangeCIDR SplitIPv4 → IPv6CIDR OverlapFree IP Space FinderDHCP CalculatorMTU Calculator
WHOIS LookupDomain Age CheckerSubdomain FinderIP GeolocationASN / BGP LookupIP Blacklist CheckReverse IP LookupMAC Address LookupBGP Prefix LookupRPKI / ROA CheckDomain Availability
Email InspectorDKIM CheckerEmail HeadersSMTP TestSMTP TLS CheckMX Health CheckEmail SecurityDMARC Generator
Temp MailSoon
Is It Down?SSL/TLS CheckerOpen Port CheckerOG Tag CheckerOCSP CheckerPing / LatencyHTTP InspectorRedirect ChainCSP AnalyzerTech Stack CheckerBetaTracerouteBetaHTTP/2 + HTTP/3robots.txt ViewerSSL Cert DecoderBanner GrabberWebSocket TesterCORS TesterDomain MonitoringHTTP TimingStructured DataPWA ManifestSEO Auditor
One-Time SecretHash GeneratorPassword StrengthSecurity.txtCT Log SearchAXFR Zone Test
HTTP Sec ScoreSoon
WebRTC Leak TestIP Reputation
JSON FormatterYAML FormatterBase64 / URL EncodeJWT DecoderRegex TesterUnix TimestampCron BuilderUUID / ULIDPunycode / IDNBase ConverterACL Generator
CSS Unit ConverterColor ToolkitGradient GeneratorcURL BuilderURL ParserURL Encoder/DecoderHTTP Status CodesBox Shadow GenFavicon GeneratorFlex & Gridrobots.txt Tester
Text CompareCase ConverterText CleanerText AnalyzerText TransformerList ToolsLorem GeneratorSlug Generator
Cloud VPC PlannerCloud IP RangeSecurity GroupsIAM AnalyzerK8s CIDR PlannerFirewall BuilderHCL FormatterEgress Cost CalcCloud DNS Zone
VM Cost EstimatorSoon
Proxmox Net ConfigVMware Port GroupHyper-V vSwitchVXLAN VNI PlannerKVM Net ConfigXCP-ng NetworkNSX-T Segment
Disposable Email DetectorPhone InspectorTor Exit NodeVPN/Proxy DetectDomain ReputationTyposquat DetectUsername SearchFavicon Hash
GitHub ActionsDockerfile Gendocker-composeArgoCD AppK8s Manifests
About

© 2026 VLANlab

No login · No ads · No tracking

Terraform HCL Formatter

2.34.5697db8

HCL Formatter

Format and beautify Terraform HCL code instantly. Aligns equals signs, fixes indentation, and normalizes whitespace - same output as terraform fmt. No install needed.

Input
1
Formatted Output
1
tools.hcl-format.note

Related Tools

Cloud VPC Planner

Plan your cloud network layout for AWS, Azure, or GCP. Define subnets, get provider-aware usable host counts, and generate ready-to-run CLI commands and Terraform HCL.

K8s CIDR Planner

Plan Kubernetes pod CIDR, service CIDR, and node ranges for EKS, AKS, and GKE. Avoid overlap conflicts before cluster creation with instant validation and kubeadm output.

JSON Formatter

Paste JSON to format, minify, or validate it instantly. All processing happens in your browser - no data is transmitted.

About this tool

About HCL Formatter

The HCL Formatter applies the same formatting rules as the <code>terraform fmt</code> command without requiring Terraform to be installed. It normalizes indentation to two spaces, aligns the equals signs within blocks of consecutive assignments, removes trailing whitespace, and ensures consistent spacing around operators. The result is idiomatic HCL that passes code review and diff tools cleanly.

How to use

Paste your Terraform or OpenTofu HCL into the left pane. The formatted output appears in the right pane instantly. Click Copy to copy the result to your clipboard. The formatter handles nested blocks, heredoc strings, and multiline values without modifying their content.

Equals signs are aligned within contiguous groups of single-line assignments. A blank line, a block opener, or a heredoc boundary flushes the alignment group. Meta-argument ordering (source before other arguments) is not changed - the formatter only adjusts whitespace, never reorders lines.