A headless CMS is a content management system without the "head": the part that turns content into web pages. Editors still write and organize content in an admin screen. But instead of a theme building the pages, the CMS hands out content as structured data through an API. Developers then build the website, app or other front end that fetches that content and displays it.
A traditional content management system, such as WordPress with a theme, does both jobs: you edit content and the same system renders the pages. Some traditional systems can also run headless. WordPress, for example, offers a REST API that separate apps can read content from.
Headless and traditional CMS side by side
| Traditional CMS | Headless CMS | |
|---|---|---|
| Who builds the pages | The CMS and its theme | Your developers, in a separate front end |
| What leaves the CMS | Finished HTML pages | Content as data, usually JSON |
| Where content can appear | Mainly the website | Website, apps and other channels, from one source |
| Titles, sitemaps, redirects | Often built in or added by plugins | The front end has to produce them |
| Editor preview | Usually built in | Has to be set up |
When headless makes sense
Headless suits teams that need one of these:
- One source for many outputs. The same product descriptions feed the website, a mobile app and in-store screens.
- Freedom for developers. The front end can use any framework, and you can rebuild it without moving the content.
- Separate teams. Editors work in the CMS while developers ship the site on their own schedule.
It's a poor fit for a small site without developers. Editors lose the "what you see is what you get" page view unless someone builds a preview. And every SEO feature a plugin used to handle becomes a development task.
What headless means for SEO
Search engines never see your CMS. They see the HTML and status codes your front end sends. So the SEO risk in a headless setup sits in the front end, and in what the content model lets editors fill in.
Make sure crawlers get the content
If the front end builds pages in the browser with JavaScript, Google has to render them before it sees the content. Google can do that, but pages wait in a rendering queue that can take longer than a few seconds. Google still calls server-side or pre-rendering "a great idea" because it's faster for users and crawlers, and not all bots can run JavaScript. Google JavaScript SEO basics
Dynamic rendering, serving bots a different pre-rendered version, is no longer recommended. Google calls it a workaround and suggests server-side rendering, static rendering or hydration instead. See web rendering for how these differ.
Give editors the SEO fields
Add these fields to your content model so editors can set them per page, and have the front end print them in the HTML:
- SEO title and meta description
- URL slug
- Canonical URL, set in the HTML rather than changed later by JavaScript
- A noindex switch for pages that shouldn't appear in search
- Social sharing image and image alt text
- Structured data, where the page type uses it
Have the front end do the site-wide jobs
A plugin can't do these for you any more, so plan them as features:
- Status codes. Return a real 404 for missing pages. In a single-page app with client-side routing, that can be impractical; Google suggests redirecting to a URL that returns 404, or adding a
noindexrobots meta tag to the error view, to avoid soft 404s. - Redirects. When a slug changes, the old URL should redirect to the new one.
- XML sitemap. Generate it from the CMS content so new pages appear in it.
- Links. Use real
<a href>links so crawlers can follow them.
How to check a headless site
Open a page, view its source and search for a sentence from the main text. If it's there, the content is in the HTML. If it's missing, the page depends on rendering.
Then inspect the URL in Google Search Console. The URL Inspection tool shows the rendered page and its code as Google sees it, and its live test checks the current version after you fix something.