ComfyUI > Nodes > ComfyUI-LogicUtils > Base64 Decode to Image

ComfyUI Node: Base64 Decode to Image

Class Name

Base64DecodeNode

Category
image
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

Install this extension via the ComfyUI Manager by searching for ComfyUI-LogicUtils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LogicUtils in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Base64 Decode to Image Description

Converts Base64-encoded strings to images using PIL, enabling image recovery for processing/display.

Base64 Decode to Image:

The Base64DecodeNode is designed to convert a Base64-encoded string back into an image format. This node is particularly useful when you have image data that has been encoded into a Base64 string, perhaps for storage or transmission purposes, and you need to revert it back to its original image form for further processing or display. The node leverages the capabilities of the PIL (Python Imaging Library) to handle the conversion seamlessly, ensuring that the output is a usable image object. This functionality is essential for workflows that involve data interchange where images are encoded as text strings, providing a bridge back to visual content.

Base64 Decode to Image Input Parameters:

base64_string

The base64_string parameter is a required input that represents the image data encoded in Base64 format. This string is the textual representation of the image, which needs to be decoded back into an image format. The parameter does not have a minimum or maximum length, but it must be a valid Base64 string for the node to function correctly. Providing an incorrect or malformed Base64 string will result in an error, as the node relies on this input to generate the image output.

Base64 Decode to Image Output Parameters:

IMAGE

The output of the Base64DecodeNode is an IMAGE, which is the decoded representation of the input Base64 string. This output is a PIL image object that can be used in subsequent image processing tasks or displayed directly. The conversion from Base64 to an image allows you to work with the visual data in its native format, making it suitable for a wide range of applications, from editing to analysis.

Base64 Decode to Image Usage Tips:

  • Ensure that the base64_string you provide is correctly formatted and represents valid image data to avoid errors during decoding.
  • Use this node in conjunction with nodes that handle Base64 encoding if you need to round-trip image data between encoded and decoded states.

Base64 Decode to Image Common Errors and Solutions:

Invalid Base64 string

  • Explanation: This error occurs when the input string is not a valid Base64-encoded string, which is necessary for decoding into an image.
  • Solution: Verify that the input string is correctly encoded in Base64 format and that it represents valid image data.

Decoding failed

  • Explanation: This error might happen if the Base64 string is corrupted or incomplete, leading to a failure in converting it back to an image.
  • Solution: Check the integrity of the Base64 string to ensure it is complete and correctly formatted before inputting it into the node.

Base64 Decode to Image Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Base64 Decode to Image