EasyUse/Imagegenerated
Image To Base64(imageToBase64)
Converts an input image into a Base64-encoded string.
image To Base64
image
STRING
Easy Use
Description
Converts an input image into a Base64-encoded string. This is useful for passing image data directly into workflows that require inline Base64, such as API requests, data URIs, or custom nodes that expect encoded image payloads.
Inputs
image
- Type:
IMAGE - Required: Yes
The image to be encoded. Any standard image tensor accepted by ComfyUI can be used.
Outputs
string
- Type:
STRING
The Base64-encoded representation of the input image.
Usage Notes
- The output is a single string containing the Base64 data. It can be passed to other nodes that expect a string input.
- If you need a data URI (for example,
data:image/png;base64,...), you may need to prepend the appropriate MIME type based on the intended image format. - This node belongs to the
EasyUse/Imagecategory and is designed to be used inline in automation and API-oriented workflows.
Comments
Sign in with GitHub to join the discussion.