html2canvas

This library allows web pages or certain HTML elements to be visualized on the browser by reading the DOM structure and the CSS styles applied. It runs entirely on the client side without the need for any processing on the server side. The project is in the experimental stage, and some CSS features are not yet supported.

HT

niklasvh · Graphic Design & Vector

STARS31.9K
FORKS4.9K
COMMITS—
CONTRIBUTORS56
VERSIONv1.4.1
UPDATED2 yr ago
screenshotcanvashtmljavascriptMIT

Common commercial products in this category: Adobe Photoshop, Adobe Illustrator, Canva

What can it do?
  • You take a screenshot of the entire web page or a specific part of it on the browser.
  • You convert DOM elements into a canvas image within the browser.
  • You include cross-origin content in the visualization process using a proxy.
Heads up
  • • Last update 2 years ago
  • • High number of open issues (1,055)
User reviews
  • • NeutralHacker News

    Benchmark: snapDOM vs html2canvas

    “Yes, the default capture output is a svg dataurl. But there many other export options. This lib was made as an internal tool for another project called Zumly that is zoomable engine and the svg format was the faster output I found. But then I realized that could be an…”

  • • NeutralHacker News

    Benchmark: snapDOM vs html2canvas

    “For the 1st example, snapdom is not only faster, but actually correct, while html2canvas has some artifacts (on Linux/Firefox)”

Verified against README · Oct 26, 2026 · source

My note

Alternative pages

More in: Graphic Design & Vector