8 Best Vanilla JavaScript HTML-to-Image Libraries

List hand-picked by Openbase Experts
Learn More

hti

html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.7/ 5
3
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
2K
Weekly Downloads
65K
Last Commit
2mos ago
dti

dom-to-image

Generates an image from a DOM node using HTML5 canvas

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
3
Top Feedback
2Great Documentation
1Easy to Use
1Performant
GitHub Stars
8K
Weekly Downloads
89K
Last Commit
5yrs ago
bli

blueimp-load-image

Load images provided as File or Blob objects or via URL. Retrieve an optionally scaled, cropped or rotated HTML img or canvas element. Use methods to parse image metadata to extract IPTC and Exif tags as well as embedded thumbnail images, to overwrite the Exif Orientation value and to restore the complete image header after resizing.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4K
Weekly Downloads
206K
Last Commit
3mos ago
sha

save-html-as-image

Download the HTML (DOM) to Image (JPG, PNG)

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
13
Weekly Downloads
369
Last Commit
4mos ago

imagely

Convert any HTML, SVG, or JS to an image.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
17
Weekly Downloads
28
Last Commit
3yrs ago
htm

html2image

convert html to image/pdf by phantomjs

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
9
Weekly Downloads
19
Last Commit
4yrs ago
het

html-element-to-image

📷 Capture an image of any given HTML element.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
11
Weekly Downloads
18
Last Commit
2yrs ago
htm

html2img

select a html node to convert to an image with all styles

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
7
Weekly Downloads
8
Last Commit
5yrs ago