Description
html2canvas is a JavaScript library that takes screenshots of a web page, or part of one, directly in the user's browser. It does not capture the screen. Instead it reads the DOM and the styles applied to each element and draws the result onto a canvas, so the output is built from the page's information rather than a true capture. The project says that this means the image may not match the real rendering in every detail. Because the image is built on the client, no rendering happens on the server, but the library depends heavily on the browser, and the README notes that browser compatibility is limited. It is useful for features such as saving a view of a dashboard, creating a shareable image of a part of a page, or generating a preview on the client. The project provides a homepage with downloads, a list of questions, and a browser compatibility section, and its source is on GitHub under niklasvh.…
Highlights
- Captures a web page or part of it in the browser
- Builds the image from the DOM and computed styles
- No server-side rendering needed
- Output may differ from the real page in some details
Ratings & Reviews
No ratings yet
Be the first to rate html2canvas.
People also visit

Screenshot Engine API
Queue-less Screenshot API (Removes banners, JS hydration, Caching, CSS selector)
html2canvas FAQ
What does html2canvas do?
It renders a web page, or part of it, onto a canvas in the browser, producing a screenshot-like image.
Is it a real screenshot?
No. The project says it builds the image from the DOM and styles, so it may not be 100% accurate.
Does it need a server?
No. The whole image is created on the client's browser.
Does it work in every browser?
The README says the library is heavily dependent on the browser and has compatibility limits, so check the browser section before relying on it.
Where can I find the source?
On GitHub under niklasvh/html2canvas, with a homepage and downloads listed in the README.







