html2shot

Screenshot any HTML element to PNG, JPEG, WebP, SVG or a canvas, in the browser. A faster, more accurate html2canvas alternative with a compatible API.

Try it

Pick something on this page, choose a format and take the screenshot.

🦊

Robin Fox

Product designer · Lisbon
1,284Followers
96Projects
4.9Rating

Weekly visits

Contact

Result

Your screenshot appears here.

Use it

npm install html2shot

import { toPng } from 'html2shot';
const png = await toPng(document.querySelector('#card'), { scale: 2 });

// Or as a drop-in for html2canvas:
import html2canvas from 'html2shot';
const canvas = await html2canvas(element);