Skip to content
BENIBIX Learn

Headless Browser

Development🔗 Integration & AutomationWeb Automation

Also known as Headless Chrome, Headless Firefox, Headless Mode (Browser)

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

Think of it like

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

Example

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

Why it matters

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

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 code

bash
chrome --headless --screenshot https://example.com
Chrome loads the page with no window and saves it as screenshot.png.
The browser in the middle has no window: it is headless.

Common mistake

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

Key takeaways

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