---
title: "Headless browser"
url: https://www.daytona.com/definitions/h/headless-browser
---

# Headless browser

A headless browser is a web browser that runs without a visible window and is controlled by a program instead of a person.

A headless browser is a web browser that runs without showing a window. It loads pages, runs their scripts, and renders them, just like a normal browser. A program controls it through an automation interface instead of a person with a mouse and a keyboard. Chrome, Firefox, and other browsers can run in a headless mode.

Automation libraries, such as Playwright and Puppeteer, send commands to a headless browser. They open pages, click elements, fill in forms, read text, and take screenshots. Headless browsers are common in automated testing, in web scraping, and in generating PDFs or previews. Because they draw no window, they use fewer resources and run on servers without a screen.

AI agents use headless browsers for browser use, to work with websites that have no API. A browser is a large program that loads content from many sources, so agents often run it inside a sandbox. Each task can get its own browser in its own sandbox, with a separate profile, cookies, and network rules. Many browser sessions can then run in parallel without sharing any state.

## Related terms

- [Browser use](https://www.daytona.com/definitions/b/browser-use.md)
- [Computer use](https://www.daytona.com/definitions/c/computer-use.md)
- [Process](https://www.daytona.com/definitions/p/process.md)
- [Tool](https://www.daytona.com/definitions/t/tool.md)
- [Code execution](https://www.daytona.com/definitions/c/code-execution.md)
