Skip to main content
HTML to Screenshot turns an HTML string into an image using Cloudflare Browser Rendering. It can capture either the configured viewport or the full height of the rendered document.

Inputs

Output

With Full Page off, viewport width and height define the capture area. With it on, the width still affects responsive layout while the page height expands to include the full document.

Example: generate a social card

Build a fixed-size HTML card with inline CSS, select a 1200 by 630 viewport, and leave Full Page off. Connect Screenshot to an upload, email, or image-processing action.

Troubleshooting

Change Viewport Width before capture. The viewport controls which CSS media queries apply.
Enable Full Page, or increase Viewport Height when you intentionally want a fixed-size capture.