FindSoftware

html2canvas

JavaScript library that renders a page's DOM to a canvas, so the page or part of it can be captured as a screenshot in the browser.

html2canvas is a JavaScript library that renders a page, or part of it, to a canvas element so the result can be captured as a screenshot. It reads the DOM and the styles applied to its elements and builds the image in the visitor’s browser, so no server renders it. Ready builds are downloaded from the GitHub releases page. Niklas von Hertzen created it.

Worth knowing

The image is built from the DOM rather than captured from pixels, so it may differ from the page as shown. Images must be on the same origin as the page unless a proxy is used. The README calls the library experimental and says it is not suitable for Node.js.

Identity

Status
Stub
Maintainer
Niklas von Hertzen4
Maintained by
Individual
First release
20116

Rendering and deploy

Runs as
In the browser5
Install with
download15

Releases

Current major version
17
Last release
2022-01-227

Adoption

GitHub stars
31,9252
npm downloads a week
26,892,7709
Contributors
458
Dependent repositories
30,55910
Dependent packages
2,59710

Why these figures do not compare

Sources

  1. 2026-11-09: links, Install with, License model
    html2canvas.hertzen.com/
  2. 2026-11-09: links, Written in, License, GitHub stars
    api.github.com/repos/niklasvh/html2canvas
  3. 2026-11-09: links
    html2canvas.hertzen.com/documentation
  4. 2026-11-09: Maintainer
    raw.githubusercontent.com/niklasvh/html2canvas/master/LICENSE
  5. 2026-11-09: Categories, Runs as, Install with
    github.com/niklasvh/html2canvas/blob/master/README.md
  6. 2026-11-09: First release
    api.github.com/repos/niklasvh/html2canvas/git/commits/45ad98e73c75931ebc5bdc9f504f37274f1175c3
  7. 2026-11-09: Current major version, Last release
    api.github.com/repos/niklasvh/html2canvas/releases
  8. 2026-11-09: Contributors
    api.github.com/repos/niklasvh/html2canvas/contributors?per_page=1
  9. 2026-11-09: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/html2canvas
  10. 2026-11-09: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/html2canvas

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON