Skip to content
,

ComfyUI Batch Process a Folder of Images (2026): Built-in, Inspire, VHS and KJNodes

8–12 minutes
Woman in a brick-walled loft holding a tablet with a BATCH FOLDER card, hook batch process whole folders

Need to upscale 300 product photos, remove the background from a whole shoot, or run img2img over every frame in a folder? Dragging images into a Load Image node one at a time doesn’t scale.

ComfyUI can load a whole folder and process every image in one run, and in 2026 you can do it with a built-in node or with one of three popular custom node packs.

This guide shows exactly how to batch process a folder of images in ComfyUI: the built-in Load Image (from Folder) node, Inspire Pack’s folder loaders, VideoHelperSuite’s Load Images (Path), and KJNodes.

It explains the key difference between an image batch and an image list (the cause of most errors), how to keep the original file names, how to process huge folders in chunks, and how to fix the common problems.

TL;DR

  • No custom nodes: put the images in a subfolder of ComfyUI/input/ and use Load Image (from Folder). It outputs a list, so each image is processed on its own.
  • Any folder path: Load Image List From Dir (Inspire) keeps each image’s size and gives you the file path too.
  • Batch vs list: a batch forces every image to the same size and is processed at once (more VRAM). A list runs the downstream nodes once per image.
  • Big folders: use image_load_cap plus start_index (Inspire) or skip_first_images (VHS) to work in chunks.
  • Keep names: feed the file path through the built-in text nodes into Save Image’s filename_prefix.

New to ComfyUI? Start with my ComfyUI guide, which covers install, nodes and workflows in one place.

Image Batch vs Image List: Read This First

ComfyUI can pass many images between nodes in two different ways, and the folder loaders differ on which one they use.

Image batch Image list
What it is One tensor holding N images N separate images
Image sizes Must all match (loaders resize to the first image) Can all differ
How downstream nodes run Once, on all images together Once per image, automatically
VRAM use High: every image is in memory together Low: one image at a time
Best for Video frames, same-size sets, AnimateDiff Mixed photos, upscaling, background removal

For a folder of everyday photos, a list is almost always what you want. A batch of 200 photos at 4000 px would need far more memory than most GPUs have, and it would squash every photo to the first one’s size.

When a node receives a list, ComfyUI simply runs it once per item, and the Save Image node at the end saves one file per item. You don’t need loops or extra logic.

Which Folder Loader to Use

Node Pack Output Folder Best for
Load Image (from Folder) Built in List A subfolder of ComfyUI/input/ No-install setups
Load Image List From Dir (Inspire) Inspire Pack List, plus mask and file path Any path Mixed photo folders, keeping names
Load Image Batch From Dir (Inspire) Inspire Pack Batch (resized to the first image) Any path Same-size sets
Load Images (Path) VideoHelperSuite Batch, plus frame count Any path Image sequences and video frames
Load Images From Folder (KJ) KJNodes Batch Any path, optional subfolders Quick batch loads

All three custom packs install from ComfyUI Manager → Custom Nodes Manager. Restart ComfyUI afterwards. See how to install ComfyUI Manager if you don’t have it.

Method 1: Built-in Load Image (from Folder)

Recent ComfyUI versions include a dataset node called Load Image (from Folder). Its description: “Load a dataset of images from a specified folder and return a list of images.” It supports PNG, JPG, JPEG and WEBP.

  1. Create a folder inside ComfyUI/input/, for example ComfyUI/input/products/, and copy your images there.
  2. Update ComfyUI if you can’t find the node.
  3. Double-click the canvas and search “load folder” or “Load Image (from Folder)”.
  4. Pick products in its folder dropdown. It lists the subfolders of your input folder. Refresh the page if a new folder doesn’t appear.
  5. Connect its images output to whatever processing you want, then to Save Image.
  6. Queue once. Every image in the folder is processed and saved.

The limit is that the folder must live under input. To read from anywhere on your drives, use one of the custom loaders.

Method 2: Inspire Pack Folder Loaders

Inspire Pack (by the author of Impact Pack and ComfyUI Manager) has two folder loaders.

Load Image List From Dir (Inspire)

This is the one I recommend for most jobs. Inspire’s README says it “loads data in a list format, not as a batch, so it returns images at their original size.”

Input What it does
directory Full folder path, for example D:/photos/shoot1
image_load_cap Maximum images to load. 0 = all
start_index Skip this many files first (for chunking)
load_always Reload every run, even if ComfyUI thinks nothing changed
sort_method None, Alphabetical, Numerical or Datetime (ascending or descending)

Outputs: IMAGE (list), MASK (from the alpha channel) and FILE PATH (list), which you can use to keep names.

Load Image Batch From Dir (Inspire)

Same inputs, but it outputs a single batch. The README warns that it “forcibly normalizes the size of the loaded image to match the size of the first image.” Use it only for same-size images, such as rendered frames.

Use Numerical sorting for numbered files (frame_2 before frame_10). Alphabetical would put frame_10 before frame_2.

Method 3: VideoHelperSuite Load Images (Path)

VideoHelperSuite (VHS) is the standard pack for video work, so many people already have it. Its Load Images (Path) node loads a folder as a batch, which is ideal for image sequences.

  • directory: the folder path.
  • image_load_cap: maximum images (0 = all).
  • skip_first_images: skip N images from the start.
  • select_every_nth: take every Nth image (2 = every other frame).

It also outputs frame_count. There’s a sibling node, Load Images (Upload), that picks a folder from inside input. Pair it with VHS’s Video Combine to turn processed frames back into a video. My ComfyUI frame interpolation guide uses the same pattern.

Method 4: KJNodes Load Images From Folder

KJNodes’ Load Images From Folder (KJ) loads a folder as a batch and can include subfolders. It’s a good quick option if KJNodes is already installed (it comes with many video workflows). Like any batch loader, it needs images of the same size or resizes them.

Example: Batch Upscale a Folder

Here’s a complete, practical workflow: upscale every photo in a folder 2x with an ESRGAN model.

Load Image List From Dir (Inspire) → Upscale Image (using Model) → Upscale Image By (0.5) → Save Image
Load Upscale Model (4x model) → upscale_model input of Upscale Image (using Model)
  1. Add Load Image List From Dir (Inspire) and set directory to your folder.
  2. Add Load Upscale Model with a 4x model from models/upscale_models/.
  3. Add Upscale Image (using Model), then Upscale Image By at 0.5 to land on 2x.
  4. Add Save Image with prefix upscaled/photo to save into output/upscaled/.
  5. Queue once.

Because the loader outputs a list, each photo is upscaled on its own at its original aspect ratio. See my ComfyUI upscale guide for model choices.

Other jobs that fit the same pattern

  • Background removal: loader → an RMBG node → Save Image (PNG keeps transparency).
  • img2img restyle: loader → VAE Encode → KSampler at denoise 0.4-0.6 → VAE Decode → Save. See my img2img guide.
  • Face fix: loader → Face Detailer → Save.
  • Captioning for LoRA training: loader → a vision LLM node → save text files.

For img2img on a list of differently sized photos, the list format matters even more: each image gets encoded at its own size, so nothing is stretched.

Keep the Original File Names

By default, Save Image names files prefix_00001_.png, prefix_00002_.png and so on. To keep the original names, use Inspire’s FILE PATH output and ComfyUI’s built-in text nodes:

  1. Take FILE PATH from Load Image List From Dir (Inspire).
  2. Add the built-in Extract Text node (a regex node) to pull out the file name without folder or extension. A pattern like ([^\\/]+)\.[^.]+$ captures it.
  3. Optionally add Concatenate Text to add a folder or suffix, for example upscaled/ + name + _2x.
  4. Convert Save Image’s filename_prefix to an input (or drag the text output onto it) and connect it.

Because the paths are a list in the same order as the images, each image gets its own name. Save Image still adds its counter suffix (_00001_). If you need exact names with no suffix, use a save node from a pack that offers that option.

Process Huge Folders in Chunks

Thousands of images in one queue can take hours, and a crash halfway through means starting over. Split the job instead:

Run image_load_cap start_index (Inspire) / skip_first_images (VHS)
1 100 0
2 100 100
3 100 200

Keep the same sort method on every run so the order doesn’t change. Change start_index and queue again for each chunk. ComfyUI queues jobs back to back, so you can line up several chunks at once.

Speed tips: drop Preview Image nodes you don’t need, use a lighter model for the job, and see how to speed up ComfyUI.

Troubleshooting

Out of memory with a batch loader

A batch puts every image in VRAM at once. Switch to a list loader (Load Image List From Dir or the built-in folder node), or reduce image_load_cap. See the CUDA out of memory fix.

All images come out the same size or squashed

You used a batch loader, which resizes everything to the first image. Use a list loader.

The workflow doesn’t re-run after I add files

ComfyUI caches nodes whose inputs haven’t changed. Turn on load_always (Inspire), or change a setting and change it back.

“No images found” or the folder is empty

Check the path (forward slashes work on Windows: D:/photos/shoot1), and that the files are supported image types. For the built-in node, the folder must be inside ComfyUI/input/.

Files processed in the wrong order

Use Numerical sorting for numbered files, or rename them with leading zeros (0001.png).

A node errors on the list

A few custom nodes expect a single batch. Put an Image List to Image Batch node (Impact Pack) before them, keeping in mind the same-size rule.

FAQ

Can ComfyUI batch process images without custom nodes?

Yes. Recent versions include Load Image (from Folder), which loads a subfolder of input as a list. Custom packs add any-path loading, sorting and file names.

Do I need to queue once per image?

No. With a list loader, one queue processes the whole folder. ComfyUI runs the downstream nodes once per image automatically.

How do I batch process a video?

Load the video with VHS’s Load Video, process the frames, and save with Video Combine. Or extract frames to a folder and use Load Images (Path).

Is the WAS Node Suite “Load Image Batch” still a good option?

Many older tutorials use it, and it can still work. For new workflows, the built-in node, Inspire Pack or VHS cover the same job and are the ones I’d build on.

Can I process subfolders too?

KJNodes’ loader has an include_subfolders option. With the other loaders, run each subfolder separately.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a brick-walled loft holding a tablet with a BATCH FOLDER card, hook batch process whole folders