# Headless Browser

> A web browser with no window. A program drives it, not a person.

**Field:** Software Development  
**Category:** Integration & Automation  
**Also known as:** Headless Chrome, Headless Firefox, Headless Mode (Browser)

## Think of it like

Think of it like a radio with no screen. It still plays the whole show, you just cannot see it.

## Definition

A headless browser is a web browser with no window on the screen. It still loads pages, runs their JavaScript and builds the full page. A program controls it instead of a person. That makes it fast and easy to run on a server. Chrome and Firefox can both run this way.

## Example

A test server runs 200 checks in headless Chrome each night. No screen is needed, so the tests run fast.

## Example code

```bash
chrome --headless --screenshot https://example.com
```

Chrome loads the page with no window and saves it as screenshot.png.

## Why it matters

Servers have no screen. A headless browser lets tests and scrapers run there.

## Common mistake

Assuming a page looks the same headless. Some sites spot headless browsers and act differently.

## Three principles

- **No window.** Nothing is drawn on a screen.
- **Full browser.** It still runs the page's code.
- **Made for servers.** Tests and scrapers run there.

## Related terms

- [Browser Automation](https://learn.benibix.com/term/development/browser-automation)
- [Puppeteer](https://learn.benibix.com/term/development/puppeteer)
- [Playwright](https://learn.benibix.com/term/development/playwright)
- [Web Scraping](https://learn.benibix.com/term/development/web-scraping)
- [Web Browser](https://learn.benibix.com/term/general/web-browser)

![A script on the left drives a browser in the middle that has no window, labelled headless. The browser loads a web page on the right. Two outputs come back: web scraping pulls prices out of the page into a table, and browser automation clicks buttons and fills in a form. Below, a separate row shows a software robot doing the same clicks across desktop apps, labelled RPA.](https://learn.benibix.com/diagrams/dev3-web-automation.svg)

---

Source: https://learn.benibix.com/term/development/headless-browser
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
