Skip to content
Cloudflare Docs

Browser Rendering

Run headless Chrome on Cloudflare's global network for browser automation, web scraping, testing, and content generation.

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.

Use cases

Programmatically load and fully render dynamic webpages or raw HTML and capture specific outputs such as:

Key features

  • Scale to thousands of browsers: Instant access to a global pool of browsers with low cold-start time, ideal for high-volume screenshot generation, data extraction, or automation at scale
  • Global by default: Browser sessions run on Cloudflare's edge network, opening close to your users for better speed and availability worldwide
  • Easy to integrate: REST APIs for common actions, while Puppeteer and Playwright provide familiar automation libraries for complex workflows
  • Session management: Reuse browser sessions across requests to improve performance and reduce cold-start overhead
  • Flexible pricing: Pay only for browser time used with generous free tier (view pricing)

Integration methods

You can integrate Browser Rendering into your applications using the method that best suits your needs:

  • REST API: Ideal for simple, stateless tasks like capturing screenshots, generating PDFs, extracting HTML content, and more.
  • Workers Bindings: Suitable for advanced browser automation within Cloudflare Workers. This method provides greater control, enabling more complex workflows and persistent sessions. Use one of the following libraries:
    • Puppeteer: Industry-standard Chrome automation API, ideal for porting existing scripts to the Cloudflare global network.
    • Playwright: Modern browser automation with a developer-friendly API. The MCP integration enables AI agents to autonomously browse and extract data.
    • Stagehand: AI-native SDK using natural language selectors instead of brittle code selectors, ensuring workflows stay resilient when websites change.
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. Using Durable Objects to persist browser sessions improves performance by eliminating the time that it takes to spin up a new browser session.

Agents

Build AI-powered agents that autonomously navigate websites and perform tasks using Playwright MCP or Stagehand.

More resources

Get started

Choose between REST API and Workers Bindings, then deploy your first project.

Limits

Learn about Browser Rendering limits.

Pricing

Learn about Browser Rendering pricing.

Playwright API

Use Cloudflare's fork of Playwright for testing and automation.

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.