Dockerfile Formatter & Linter
Normalize Dockerfile instructions and catch common build mistakes before you ship. · Updated
Options
Output mode:
dockerfile
Formatted Outputdockerfile
Draft saved locally.
Options
| Option | Description |
|---|---|
| Output mode | Choose normalized Dockerfile output or a JSON report with diagnostics. |
FAQ
Does this tool build my Docker image?
No. It formats text and performs lightweight static checks without running Docker.
Which instructions are recognized?
Standard Dockerfile instructions such as FROM, RUN, COPY, WORKDIR, ENV, CMD, and ENTRYPOINT are recognized.
Does formatting change shell commands?
No. Arguments and commands are preserved; instruction names and whitespace are normalized.
What does the linter check?
It reports missing FROM instructions, unknown lines, and instructions without required arguments.
Related tools
YAML to JSON
Convert YAML configuration files into structured JSON documents (or JSON to YAML) instantly.
JSON Formatter
Format, validate, and explore JSON with a collapsible tree view.
OpenAPI Formatter & Validator
Validate OpenAPI 3 and Swagger 2 documents, then format them as readable JSON or YAML.
HTTP Headers & Security Inspector
Parse HTTP headers, audit critical security headers (HSTS, CSP, X-Frame-Options, CORS), and calculate a security grade.
Docker Run to Compose
Turn a docker run command into a compose.yaml service, with ports and environment values quoted so YAML can't retype them.