Skip to content
Cloudflare Docs

Browser Rendering

Browser automation for Cloudflare Workers and quick browser actions.

Available on Free and Paid plans

Browser Rendering enables developers to programmatically control and interact with headless browser instances running on Cloudflare’s global network. This facilitates tasks such as automating browser interactions, capturing screenshots, generating PDFs, and extracting data from web pages.

Integration Methods

You can integrate Browser Rendering into your applications using one of the following methods:

  • REST API: Ideal for simple, stateless tasks like capturing screenshots, generating PDFs, extracting HTML content, and more.
  • Workers Binding API: Suitable for advanced browser automation within Cloudflare Workers. This method provides greater control, enabling more complex workflows and persistent sessions.

Choose the method that best fits your use case. For example, use the REST API endpoints for straightforward tasks from external applications and the Workers Binding API for complex automation within the Cloudflare ecosystem.

Use Cases

Browser Rendering can be utilized for various purposes, including:

  • Fetch HTML content of a page.
  • Capture screenshot of a webpage.
  • Convert a webpage into a PDF document.
  • Take a webpage snapshot.
  • Scrape specified HTML elements from a webpage.
  • Retrieve data in a structured format.
  • Extract Markdown content from a webpage.
  • Gather all hyperlinks found on a webpage.
Workers

Build serverless applications and deploy instantly across the globe for exceptional performance, reliability, and scale.

Durable Objects

A globally distributed coordination API with strongly consistent storage.

Agents

Build and deploy AI-powered agents that can autonomously perform tasks.

More resources

Get started

Deploy your first Browser Rendering project using Wrangler and Cloudflare's version of Puppeteer.

Learning Path

New to Workers? Get started with the Workers Learning Path.

Limits

Learn about Browser Rendering limits.

Developer Discord

Connect with the Workers community on Discord to ask questions, show what you are building, and discuss the platform with other developers.

@CloudflareDev

Follow @CloudflareDev on Twitter to learn about product announcements, and what is new in Cloudflare Workers.