Skip to main content
>_devtools

Dockerfile Formatter

Normalize instruction case, break RUN && chains onto separate lines and tidy blank lines in a Dockerfile.

Normalizes instruction case and layout while preserving arguments, comments, and here-document content. Paste a Dockerfile or open a file, then copy or download the formatted result.

Example

Input
from node:20
run npm ci

Output
FROM node:20
RUN npm ci

Limits and behavior

  • Input is limited to 1 MB.
  • The formatter does not validate image availability or build behavior.