Dockerfile Formatter

Your workspaceProcessed on your device
A few things to know.

Uses the standard Dockerfile 1.x syntax subset and up to 250,000 characters or a 1 MB UTF-8 file. Only instruction casing and optional leading margins change. An unsupported frontend, unclear heredoc or selected syntax finding blocks export. Opening a file preserves its line endings while the editor stays unedited.

  1. Paste source, open a UTF-8 Dockerfile or select Load example.
  2. Choose whether to remove margins before instruction names, then select Format Dockerfile.
  3. Compare arguments, comments and heredoc body lines with the source. Copy the text or download Dockerfile.formatted.