Skip to main content

HTML to Image

Convert HTML content to an image. Automatically extracts clean HTML from text, markdown code blocks, or mixed content.

The HTML to Image node allows you to convert HTML content into an image. Useful for generating visual representations of web content, articles, or any HTML-based data. The node automatically extracts clean HTML from text, markdown code blocks, or mixed content to ensure optimal rendering in the output image.

HTML to Image
HTML Content*Text (multiline)
Width (pixels)Number
Height (pixels)Number
Output FormatSelect
Fields marked * are required. Dots are connection handles.

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
HTML ContentText (multiline)RequiredThe HTML content you want to convert to an image. Can include introductory text or markdown code blocks.
Width (pixels)NumberOptionalThe width of the output image in pixels (1-7680).
Height (pixels)NumberOptionalThe height of the output image in pixels (1-4320).

Settings

SettingTypeDefaultDescription
Output FormatSelectPNGThe format of the output image file.

Output Format options

OptionDefault
PNG
JPG
WEBP

Output