MetaRinse AI
100% Client-Side · Free
MetaRinse AI

How to Remove Metadata and Workflows from ComfyUI Images

ComfyUI saves your entire node workflow as JSON inside every PNG. Learn what it exposes, where it hides, and how to strip it free in your browser.

Removing a node workflow from a ComfyUI PNG image
Removing a node workflow from a ComfyUI PNG image

ComfyUI is the most powerful way to generate images with Stable Diffusion, and also the most revealing. Every PNG it saves can contain your entire node graph as JSON: every prompt, every model, every LoRA, every seed, and every connection between nodes. Drag that PNG back into ComfyUI and the whole workflow reappears. Post it online, and anyone can do the same. Here is how to strip it out before you share.

What ComfyUI Embeds in Your Images

ComfyUI writes two JSON text chunks into a standard PNG. The first, usually called prompt, is a compact JSON record of the exact execution: each node, its inputs, its widget values, and the links between nodes. The second, usually called workflow, is the full graph as you see it in the interface, including node positions, titles, and layout. Together they describe not only what you prompted, but how you built the image: which checkpoint loaded, which CLIP text encoder ran, which sampler and scheduler you chose, which VAE decoded the result, and which LoRAs, ControlNets, upscalers, or custom nodes were involved.

The detail is far richer than a single prompt line. A workflow can expose a private LoRA trained on your own artwork, a client name written into a text node, a local file path, a custom node that reveals your pipeline, and the seed for every sampling node. It can also expose the exact resolution, batch settings, and denoise strength of an img2img pass. For a creator who sells a workflow, a studio with a proprietary pipeline, or anyone who uses personal photos in a LoRA, that JSON is intellectual property and private information, not harmless file padding.

Where the Workflow JSON Lives

Both JSON records live in PNG tEXt chunks, the same kind of ancillary chunk that Automatic1111 uses for its parameters field, but with far more content. A PNG is a chain of chunks: the header, the colour and profile chunks, the IDAT chunks that hold the compressed pixels, and the text chunks that hold metadata. The prompt and workflow chunks sit in that text area, separate from the pixels, which is why they can be removed without changing the image at all. A JPEG export is different: ComfyUI JPEGs typically carry less workflow data, but they can still hold EXIF and XMP fields, including software names and generation notes added by a later editor.

Because the workflow is plain JSON, it is trivially easy to read. Dragging a ComfyUI PNG into a fresh ComfyUI window rebuilds the graph automatically, and many free prompt readers do the same in a browser. The file does not need to be decoded or decrypted, and no special permission is required. That convenience is the point for personal use: you can recover a workflow months later from the image alone. It becomes a problem only when the image leaves your computer, because the same convenience applies to every stranger who downloads it.

PNG tEXt chunk: prompt (JSON, shortened) {"3": {"inputs": {"seed": 88120417, "steps": 30, "cfg": 7.5, "sampler_name": "dpmpp_2m", "scheduler": "karras", "denoise": 1.0}, "class_type": "KSampler"}} PNG tEXt chunk: workflow (JSON, shortened) {"nodes": [{"type": "CheckpointLoaderSimple", "widgets_values": ["myPrivateLoRA.safetensors"]}]}

Why a Leaked Workflow Matters

A leaked workflow gives away more than a style. It gives away the method. A competitor can load your graph, swap in their own subject, and reproduce your look without doing the weeks of testing that built it. A buyer on a marketplace can see the LoRA and checkpoint names behind a listing image and judge it as assembled rather than crafted. A client can find their own project name, a private model, or an internal file path inside a node, which is embarrassing at best and a confidentiality breach at worst. If your workflow includes a node that calls a paid API or a local service, the JSON can even hint at infrastructure you did not intend to publish.

Platforms add a second cost. Social networks and marketplaces scan PNG text chunks for generation data and may label the image as AI-generated or route it to extra review. A workflow that mentions a trademarked character or a real person in a text node can create a text trail the image alone would never leave. The fix is not to stop using ComfyUI; it is to separate the working file from the sharing file. Keep the workflow where it belongs, in your own project folder, and send the world a picture that contains only the picture. Our guide to Stripping Automatic1111 & ComfyUI data explains the shared PNG mechanics behind both tools in more depth.

How to Remove ComfyUI Metadata

Open the MetaRinse AI image cleaner in your browser and drop in the ComfyUI PNG you want to share. The tool runs entirely on your device, so your workflow JSON never uploads to a server, which matters when the graph contains private model names or client details. Choose a lossless-style clean for a normal share: the cleaner parses the PNG chunk list, drops the prompt and workflow tEXt chunks along with EXIF, XMP, IPTC, and any C2PA chunks, and rebuilds the file with the same pixels. The picture looks identical, but dragging it into ComfyUI will no longer restore your graph.

For a commercial listing, a client delivery, or a competition entry, use a deeper clean instead. A deep clean re-encodes the image and writes a fresh file with a new hash, which is useful when you want no trace of the original container at all. After cleaning, verify the result before you post. Drop the cleaned PNG into a prompt reader or back into ComfyUI: it should find no workflow. Check the image size and quality, then upload the cleaned copy only. Keep the original PNG in a private folder, because it is your backup of the workflow, and label it clearly so you never upload it by mistake.

What Metadata Removal Cannot Do

Removing file metadata cannot remove an invisible pixel watermark baked into the pixels, and it cannot change what an AI detector reads from the picture itself. ComfyUI images do not carry Google SynthID, but visual detectors can still analyse diffusion artefacts, texture patterns, and style signals in the artwork. A metadata cleaner changes the container around the image, not the image content, so it is not watermark removal and it cannot make a cleaned image undetectable as AI-made. No honest tool will claim otherwise.

Timing is equally important. If you already posted the original PNG, a platform may have stored a copy of the workflow JSON on its own servers, and other people may have already downloaded it. Cleaning your local file afterwards does not erase those copies, and a leaked workflow cannot be un-shared. Clean before the first upload, every time. If a workflow has already leaked, change any private model name, API detail, or client reference it exposed, and treat the graph as public from now on. For images made in a simpler hosted tool, the risks are different but related, so also see how to remove metadata from Midjourney images before posting those.

A Safer Way to Share ComfyUI Work

Make two folders part of your routine: a private working folder for original ComfyUI PNGs, with workflows intact, and a share folder that only ever holds cleaned copies. Export the final image, clean that exact file after the last edit, and upload only from the share folder. If you upscale, inpaint, or edit the image afterwards, clean it again, because each new tool can add fresh EXIF, XMP, or C2PA data to the file.

Also tidy the workflow itself before you export a version you might share by accident. Avoid putting client names, private paths, or API keys in text nodes, and give custom LoRAs neutral filenames when you plan to publish the result. Save the workflow as a separate JSON file in your project folder, so you do not need the PNG to recover it. With that habit in place, you keep the best part of ComfyUI, a fully recoverable graph for yourself, without handing the same graph to everyone who sees your picture.

Frequently Asked Questions

It stores two JSON text chunks: a prompt record of the executed nodes and settings, and a workflow record of the full node graph, including model, LoRA, sampler, seed and node layout.
Yes. Dragging an original ComfyUI PNG into ComfyUI, or opening it in a prompt reader, restores the graph. Cleaning removes those JSON chunks so that no longer works.
A lossless metadata clean leaves the pixels untouched, so the image looks identical. Only the text chunks and provenance data are removed.
A JPEG usually carries less workflow JSON, but it can still hold EXIF and XMP data. Clean the final file in either format before you post it.

Keep reading