Docker Compose Formatter

Paste a compose file on the left, pick a profile, and format it to a consistent house style: key ordering, spacing, sorting and more. Everything runs in your browser; nothing is uploaded.

not formatted yet

Custom profiles are stored in this browser only. Export one to keep a copy or move it to another device. The file you paste is kept only until you close this tab.

Formatting options
Layout
Service key order

Drag to reorder. Keys not listed here follow the "Unknown keys" rule.

  • image
  • build
  • container_name
  • hostname
  • restart
  • depends_on
  • env_file
  • environment
  • ports
  • expose
  • volumes
  • networks
  • labels
  • healthcheck
  • command
  • entrypoint
Transforms
Inputpaste your compose · nothing is uploaded