Format Dockerfile Online — Instruction Normalizer
Normalize Dockerfile instruction casing and spacing with dockerfile-utils — browser-local formatting.
Developer notes
• Loads dockerfile-utils on demand. • Normalizes instruction casing even when format returns no TextEdits. • Does not run Hadolint or ShellCheck. • Syntax errors may surface from the formatter validator.
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.