All articles

Workflow privacy

How to remove ComfyUI workflow and prompt metadata from PNGs

Updated

For a supported static PNG, you can remove embedded workflow and prompt/execution fields locally without re-encoding the image. Keep your original, clean a delivery copy with the ComfyUI tool, then inspect the downloaded copy. Animated comf metadata and unreadable or oversized text can remain. Cleaning metadata does not remove invisible watermarks or guarantee a different platform label.

FieldWhat it can containWhat to check
workflowThe graph used to restore nodes and their layout.Check this separately from prompt.
promptExecution nodes and their inputs; not necessarily a sentence.Removing workflow alone may leave execution details.
parametersGeneration settings commonly associated with Stable Diffusion exports.Use the Stable Diffusion tool for this separate task.

Clean an existing static PNG

1. Keep an original and inspect the export

Save a separate master copy. Open Metadata Checker and choose the actual exported PNG. Review the workflow and prompt findings locally; do not assume that a renamed extension changes the format.

2. Use the ComfyUI workflow tool

Open the dedicated tool and choose the PNG. It automatically creates a separate copy targeting recognized workflow fields. This focused task leaves unrelated privacy fields and Content Credentials for review.

3. Read both workflow results

Check Workflow data and Prompt / execution data separately. A missing field is not evidence that every possible workflow field has been inspected. Review any unresolved findings.

4. Download and inspect the copy

Download only after reviewing the result, then open that downloaded file in Metadata Checker. Keep the original or a separately saved workflow JSON for your own future editing.

A removed recipe cannot restore your original project

ComfyUI can load embedded workflow information from an output file. Once those supported records have been removed from a delivery copy, do not rely on that copy to recover your original graph. Your separately saved project and original image are unchanged.

The downloadable example below contains deliberately constructed workflow and prompt fields. It tests those structures only: it is not a real ComfyUI export or a runnable example workflow.

Control metadata in future ComfyUI exports

ComfyUI documents a startup option for disabling metadata: in the terminal where you normally start ComfyUI, add --disable-metadata to the launch command, for example python main.py --disable-metadata. Save your workflow separately before using this option.

For ComfyUI Desktop, the documented path is Settings > Server-Config; enable Disable saving prompt metadata in files. Check a newly exported file afterward. This changes future saves, not files already exported, and custom save nodes may have their own behavior.

When a PNG still needs review

The cleaner supports recognized plain PNG text and supported compressed text that expands within 1 MB per block. Invalid or larger compressed text is retained and reported. Animated ComfyUI comf chunks remain unresolved.

The focused tool preserves unrelated metadata. If the delivery also needs GPS or other supported private fields removed, review the general cleaner and its settings instead of assuming the workflow-only task removed them.

Free allowance and batch work

Guests can clean 5 images per day. Google sign-in gives Free users 10 single-image cleans per day in total. Pro supports batches of up to 10 and ZIP downloads; Yearly can split up to 30 images across three batches within device limits. Built-in samples are free to try.

What this tool cannot promise

  • Only supported fields in the tested file structures are covered.
  • Removing workflow records does not remove visible content, invisible watermarks or platform-side records.
  • Keep the original if you need to recover the workflow later.

Common questions

Is removing workflow enough to remove prompt data?

Not necessarily. They are separate fields. Check both results and review other recognized or unresolved text.

Does this alter the nodes in my saved ComfyUI project?

No. The tool creates a separate image copy. It does not connect to or edit your ComfyUI project.

Primary sources: ComfyUI: workflow metadata and export settings