Format Dockerfile Online — Instruction Normalizer
Normalize Dockerfile instruction casing and spacing with dockerfile-utils — browser-local formatting.
Developer notes
• Uses dockerfile-utils for instruction casing and spacing. • Live formatted output updates ~300 ms after typing stops — no Format click. • Not a substitute for Hadolint best-practice linting — use lint-dockerfile. • Processing stays in the browser.
When teams pick this route
• Normalize Dockerfiles copied from blog posts (often lowercase). • Prepare a Dockerfile snippet for internal style guides. • Quick format before lint-dockerfile for DL rules. • Clean up hand-edited multi-stage files.
Worked examples
Lowercase instructions from a tutorial
Before
After format
Multi-stage build skeleton
Before
After format
Navigate related DevOps tools
Run lint Dockerfile for DL rules, or open the DevOps hub.
Dockerfile formatter FAQ
Layout and casing
Same as hadolint?
No — this tool formats layout and casing. Use lint-dockerfile for best-practice DL rules.
Does it fix JSON CMD form?
It normalizes keywords; switch shell-form CMD to JSON manually or via lint suggestions.
Multi-stage builds?
Yes — each stage is formatted in place.
More DevOps tools in this cluster
Looking for converters, encoders, formatters, and minifiers in one place? Developer tools hub Open the curated developer tools catalogue.