Headless software is a program that works without its own user interface — the “head”. It keeps the logic and the data but shows no window or page; you use it through an API, the command line or scripts. Below: what the term means, the four common types with real tools, and when headless is worth it.
What is headless software
Almost every program has two halves. One half does the work: stores data, calculates prices, loads web pages, converts files. The other half shows that work to a person: windows, buttons, web pages, a mobile screen. In software jargon the second half is the head, and the first half is the body, often called the back end.
Headless software is the body without the head. The program does everything it normally does, but it does not draw an interface of its own. Instead it offers a way in for other programs: an API (usually HTTP with JSON or GraphQL), command-line flags or a scripting interface. Whatever needs to be shown to people is built separately — or not at all, if the job runs on its own.
The word came from hardware. A headless computer is a machine without a monitor, keyboard and mouse: think of a server in a data center that you only reach over the network with SSH. Later the same idea moved to software. A “headless browser” is a browser without a window, a “headless CMS” is a content system without a website, “headless commerce” is an online store engine without a storefront.
The opposite is sometimes called headful (a browser with a visible window) or a monolith (a CMS or a store platform that ships the back end and the front end as one product). Neither is better by default — they solve different problems.
4 types of headless software
The word “headless” shows up in very different corners of IT. What unites them is the same pattern: the interface is removed, and the useful core is exposed through an API or a command line.
| Type | What is cut off | Example tools | Who needs it |
|---|---|---|---|
| Headless CMS | The website and its themes | Strapi, Contentful, Sanity, Directus, Storyblok | Teams with a developer building a site or app on their own stack |
| Headless commerce | The storefront (catalog, cart, checkout pages) | Shopify Storefront API and Hydrogen, commercetools, Medusa | Stores that need a custom storefront, an app or several sales channels |
| Headless browser | The browser window | Chrome with --headless, Firefox -headless, Puppeteer, Playwright | QA engineers, developers, anyone automating screenshots, PDFs or tests |
| Headless server and apps without a GUI | Monitor, desktop, graphical interface | Linux servers in text mode, CLI tools, LibreOffice with --headless, bots | Hosting, back ends, background jobs and automation |
Headless CMS
A content management system that stores texts, images and prices but does not build a website. A developer builds the site with React, Next.js, Vue or anything else and fetches the content through an API. The same content can feed a website, a mobile app and a screen in a shop. Strapi calls itself an open-source headless CMS; Contentful and Sanity are cloud services; Directus and Payload can be installed on your own server.
We have a separate, detailed guide on this type — how it works, REST vs. GraphQL, the editor problem and a comparison with traditional CMSs: what is a headless CMS. Here is only what is needed for the big picture.
One option from us, briefly: Sitecog works as a headless CMS where content is also edited right on the live page. The developer fetches content with a plain REST request, adds one script tag and marks editable elements with a data attribute; after that, the team clicks a heading or an image on the real site and changes it. There is no GraphQL, no SDK and no webhooks, so it suits sites where on-page editing matters more than a large content platform.
Headless commerce
The same idea applied to an online store. The commerce engine keeps the products, prices, stock, cart, orders and payments; the storefront that customers see is built separately and talks to the engine through an API. Shopify’s official docs describe headless commerce as separating the storefront’s front end from its back end.
- Shopify — the Storefront API, which is available only in GraphQL, plus Hydrogen, Shopify’s toolkit for building a full custom storefront, and Oxygen for hosting it. A storefront on any other stack connects through the Headless channel.
- commercetools — an enterprise platform built from modular APIs, which it markets as headless and composable: each commerce capability can be swapped separately.
- Medusa — an open-source commerce platform with a framework for custom features and an admin dashboard; developers work with it in JavaScript or TypeScript on Node.js.
Headless commerce makes sense when the standard theme of a store platform is too tight: a unique design, very fast pages, a mobile app that shares the cart with the website, or selling through several channels at once. For a typical small store, a ready-made theme is simpler and cheaper.
Headless browser
A real browser engine that loads pages, runs JavaScript, sets cookies and renders the layout — but never shows a window. You control it from code or the command line. It is the backbone of automated testing: a test opens the site, clicks “Add to cart”, fills in the form and checks the result, all on a CI server that has no screen at all.
- Chrome — the
--headlessflag. Since Chrome 112 headless mode is the same browser as regular Chrome, it just does not display windows. The old, separate implementation now ships as its own binary,chrome-headless-shell; since Chrome 132 it is no longer inside the main Chrome binary. - Firefox — the
-headlessflag. - Puppeteer — a Node.js library that drives Chrome and Firefox. By default it starts the browser headless;
headless: falseopens a visible window,headless: 'shell'uses the lightweight old mode. - Playwright — a library for Chromium, Firefox and WebKit, with the
headlesslaunch option set totrueby default. It is popular for end-to-end tests across all three engines.
Typical jobs: end-to-end tests, screenshots of pages for reports or link previews, generating PDF invoices from HTML, checking what a page looks like after JavaScript has run, uptime monitoring that goes beyond “the server answered 200”.
Headless server and apps without a GUI
The original meaning of the word. A headless server has no monitor, keyboard or graphical desktop: you connect over SSH and manage it with commands. Most Linux servers that host websites work exactly like this — a desktop would only waste memory and add things to update. In systemd terms, such a machine boots into multi-user.target, which the documentation describes as a non-graphical multi-user system, instead of graphical.target.
The same applies to programs. A command-line tool (git, ffmpeg, curl), a background service, a cron job or a chat bot is headless software: it does its work without a window of its own. Even desktop programs often have a headless mode. LibreOffice, for example, can start with --headless and convert a folder of documents to PDF without opening anything on screen. A Telegram or WhatsApp bot is a nice illustration too: the bot itself is a headless program on a server, and the messenger plays the role of its “head”.
How headless works
In every type the scheme is the same three layers:
- The core — data and logic: content, products, a browser engine, a document converter.
- The interface between them — an API (HTTP with JSON, GraphQL), command-line flags or a programming library. This is the only door into the core.
- One or many “heads” — a website, a mobile app, a test script, a cron job, another service. Each head is built for its own job and talks to the core through that door.
Because the door is standard, the heads are interchangeable. You can redesign the website, add an app or replace a testing tool without touching the core. That is the whole promise of headless — and the source of its cost, because somebody has to build and maintain each head.
Example: fetching data from a headless CMS
The site does not get finished pages from the CMS, only data. Here is a plain request; the URL and the token are placeholders, every CMS has its own address format:
// Any framework or plain JavaScript: the site asks the headless CMS for data over HTTP
const res = await fetch('https://cms.example.com/api/articles?locale=en', {
headers: { Authorization: 'Bearer ' + API_TOKEN },
});
const { data } = await res.json();
// The interface is your own code. The CMS knows nothing about how it looks.
document.querySelector('#news').innerHTML = data
.map((item) => '<li><a href="/news/' + item.slug + '">' + item.title + '</a></li>')
.join('');In a real project the same request usually runs on the server or at build time (in Next.js, Nuxt or Astro), so that search engines receive finished HTML and the token never reaches the browser.
Example: Chrome in headless mode
For one-off jobs you do not need any library — Chrome has flags for the most common tasks:
# The same Chrome, but no window is ever shown
google-chrome --headless --screenshot https://example.com # saves screenshot.png
google-chrome --headless --print-to-pdf https://example.com # saves output.pdf
google-chrome --headless --dump-dom https://example.com > page.html
# Windows: start chrome --headless ...
# macOS: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless ...For anything with clicks and checks, a library is more convenient:
import puppeteer from 'puppeteer';
const browser = await puppeteer.launch(); // headless: true is the default
const page = await browser.newPage();
await page.goto('https://example.com');
console.log(await page.title());
await page.screenshot({ path: 'example.png' });
await browser.close();Example: a server and a desktop program without a GUI
# Linux server: boot into text mode, no graphical desktop
sudo systemctl set-default multi-user.target
# LibreOffice without a window: convert every .docx in the folder to PDF
soffice --headless --convert-to pdf *.docxPros and cons of headless
Pros
- Freedom of the front end. The interface is written on whatever stack fits the job and the team, not on what the platform dictates.
- One core, many channels. The same content or the same cart serves a website, an app, a kiosk, a chat bot.
- Automation. A program without a window runs on servers and in CI pipelines, at night, in thousands of copies — no person has to click anything.
- Fewer resources. A server without a desktop and a browser without a window use less memory and have fewer parts to update.
- Replaceable parts. A redesign or a new framework does not mean migrating data; the core stays where it is.
Cons
- A developer is required. No head means somebody has to build it — and keep building it as the business changes.
- More moving parts. The core, the front end, hosting, builds, keys and caches all have to be wired together and monitored.
- No ready-made extras. Things a monolith gives you with a plugin — forms, search, previews, a page builder — have to be built or bought separately.
- Harder for non-technical people. An editor in a headless CMS often sees form fields instead of the page; a headless test fails without a picture of what went wrong unless you save screenshots.
- Debugging is less visual. When there is no window, you rely on logs, traces and screenshots. Playwright and Puppeteer can run headful precisely for this reason.
When you don’t need headless
Headless is an architecture choice, not an upgrade. It pays off when you have developers and a reason to separate the interface from the core. It gets in the way in these cases:
- A small website without a developer. A brochure site, a portfolio, a local service. A site builder or WordPress with a theme gives you pages, forms and an editor out of the box.
- A standard online store. If the platform’s themes cover your design and you sell on one website, headless commerce adds cost without adding sales.
- One channel, no plans for more. The main benefit — one core for many heads — does not apply when there is only one head.
- The team cannot maintain a custom front end. A headless site that nobody updates ages faster than a monolith with automatic updates.
- You need to debug visually. When a test fails in a confusing way, run the browser with a window first; switch to headless when the script is stable.
Headless vs. monolith
| Monolith | Headless | |
|---|---|---|
| Interface | Comes with the product: themes, templates, windows | Built separately, or not needed at all |
| How you work with it | Through its own admin or window | Through an API, CLI or library |
| Start | Fast: install and pick a theme | Slower: the front end has to be built |
| Flexibility of design | Within what the platform allows | Anything the developer can build |
| Channels | Usually one | Website, app, bots, other services |
| Who maintains it | Often the owner, with plugins and updates | A developer or a team |
| Automation | Limited by the interface | Natural: everything is available to scripts |
| Typical choice for | Small sites and stores, teams without developers | Products with a dev team, several channels, CI and automation |
There is also a middle ground. Many monoliths have an API and can be used headless — WordPress through its REST API is the classic example — and many headless products add visual editors and previews so that non-developers are not left with bare forms.
Related terms you will meet
- Headful — the opposite of headless for browsers: a visible window.
- Decoupled — the front end is separate from the back end, but the product still ships one. Headless has none.
- API-first — the product is designed around its API; it says nothing about whether there is an interface.
- Composable — the system is assembled from separate services (CMS, search, payments, commerce), usually all headless.
- Jamstack — sites generated in advance and served as static files, which often take their data from a headless CMS.
Where to go next: if your interest is websites, read what a headless CMS is and what a CMS is in general. If you are choosing a platform for a team without developers, start with WordPress alternatives.
Frequently asked questions
What does headless mean in software?
It means the program runs without its own user interface — the “head”. The logic and the data are there, but there is no window, page or screen of its own. People or other programs work with it through an API, the command line or scripts.
What is an example of headless software?
Chrome started with the --headless flag, a Linux server without a desktop, a headless CMS such as Strapi or Contentful, Shopify’s Storefront API used by a custom storefront, LibreOffice converting documents with --headless. All of them work fully but draw nothing on screen.
Is headless the same as API-first?
Not quite. API-first describes how a product is designed: the API comes first and every function is available through it. Headless describes what is missing: the product ships without a front end of its own. Most headless products are API-first, but an API-first product can still come with a ready-made interface.
What is the difference between headless and decoupled?
A decoupled system keeps the front end separate from the back end but still ships a front end, often optional. A headless system has no front end at all: you build it yourself or connect several. In everyday speech the two words are often used as synonyms.
What is a headless browser used for?
Automated testing of websites, screenshots and PDFs of pages, checking how a page renders for search engines, monitoring and collecting public data. The browser loads pages and runs JavaScript exactly like the normal one, it just does not show a window.
Is headless better for SEO?
Headless by itself neither helps nor hurts. What matters is how the pages are rendered: if the front end produces finished HTML on the server or at build time, search engines see everything. If content appears only after JavaScript runs in the browser, indexing is slower and less reliable.
Do I need headless for a small website?
Usually not. A headless setup means a developer has to build and maintain the front end. For a small business site without a developer, a site builder or WordPress with a theme is cheaper and simpler.
