How to Read the Prompt and Workflow From an AI Image

Updated October 28, 2026

Many AI image tools save the prompt and settings inside the image file. If you made an image with ComfyUI or a Stable Diffusion app, you can often get the prompt back, and with ComfyUI you can rebuild the whole workflow.

The short answer

Open the ComfyUI & Stable Diffusion Workflow Extractor, choose Workflow or Prompt, and drop the original image. Nothing is uploaded.

What is saved in the image

  • ComfyUI saves its workflow in PNG files by default. This is the full graph of nodes and connections.
  • AUTOMATIC1111 and similar apps save a plain text block with the prompt and settings.
  • Some tools save the same kind of data in WebP and JPG files too.

Get the workflow or the prompt

  1. Open the extractor and choose Workflow or Prompt at the top.
  2. Drop a PNG, WebP or JPG image.
  3. Copy the result, or download the workflow as a .json file.
  4. For a ComfyUI workflow, drop the original image onto ComfyUI, or load the .json file there, to open it again.

Which option to choose

  • Workflow returns the full ComfyUI workflow, ready to load back in. Images from apps that save only plain text have no workflow.
  • Prompt returns the positive and negative prompt text and the main settings, such as model, seed, steps, CFG and sampler.
  • With custom nodes, or prompts built from several nodes, Prompt may say it could not find the text. Use Workflow in that case, because it always returns the raw data.

Why you may find nothing

  • A website re-compressed or stripped the image. Many sites remove this data on upload. Use the original file.
  • It is a screenshot. A screenshot is a new picture with no saved data.
  • The image was edited and exported. Some editors drop the data when they save.
  • It was made in a different tool. Not every tool saves a prompt or a workflow in the file.
  • Someone cleaned it. A metadata cleaner removes it on purpose.

Before you share an image or a workflow

Workflows can contain file paths, model names, and your prompts. Look through them before you share. To share the image without this data, use Remove Image Metadata. To see everything else a file holds, use Edit Image Metadata.

A simple routine

  1. Keep your original PNG files from ComfyUI somewhere safe, because they contain the workflow.
  2. Extract the workflow when you want to reproduce or improve an image.
  3. Make a cleaned copy for posting online, and keep the original.

FAQ

Is my image uploaded?

No. The extractor runs entirely in your browser.

Does it change my image?

No. It only reads the file.

Does it work for Midjourney images?

Not for a ComfyUI workflow. Those images do not carry one.

Can I do this for many images?

Yes, with Pro, which handles up to 50 images at once. Everything is free until Pro launches.

Can it read video?

Not yet. It supports PNG, WebP and JPG images.

Try it free

Extract the workflowFree, no signup, and your files never leave your browser.