The best headless CMS is the one whose hosting, database and price fit the team that will run it. Pick Payload if your site is built in Next.js and your developers want the content model in code, inside the same app. Pick Strapi if you want an open source CMS with its own admin app, on a SQL database you host yourself or on Strapi Cloud. Pick a hosted CMS such as Sanity if nobody on your side should run a server or a database.
Our own website runs on Payload. Below: what a headless CMS changes, the three compared side by side on the prices each vendor publishes, and what running a site on Payload has shown us.
What is a headless CMS?
A CMS (content management system) is where editors write pages, upload images and press publish. A headless CMS stores that content and hands it out through an API, without deciding how any page looks. An API here is a set of web addresses your code calls to get the content, usually through REST or GraphQL, the two common ways of asking for data.
Your developers build the front end (the part visitors see) on its own, often in Next.js, a React framework for websites. When the front end builds or renders a page, it asks the CMS for the content. The same content can feed a website and a mobile app at once.
Editors still get an admin panel to write, upload images and publish. What they lose by default is the theme: every page design is code your team owns.
Headless CMS vs traditional CMS: what changes?
A traditional CMS such as WordPress keeps the content, the design and the page rendering in one system. You install a theme, add plugins, and the CMS serves the finished pages.
A headless CMS does only the first part. That split lets your developers build any front end they like, and gives you one content source for every channel. In return, the front end, its hosting and features such as draft preview become a build your team owns.
| Traditional CMS | Headless CMS | |
|---|---|---|
| Who renders the pages | The CMS, through a theme | Your own front end, such as a Next.js app |
| Design changes | Theme settings and plugins | Code in the front end |
| Preview of a draft page | Built in | Set up for each project |
| What you host | One system | The CMS and the front end, sometimes in one app |
How do you choose a headless CMS?
Five questions settle most choices. Ask them in this order.
- Who will run it? A self-hosted CMS runs on your server with your database. A hosted (cloud) CMS is run by the vendor, and you pay by seats, projects or usage. A seat is one person's login.
- Which database does your team already know? Strapi 5 runs on SQL databases only. Payload runs on MongoDB, Postgres or SQLite. A hosted CMS keeps the database for you.
- Where should the content model live? The content model is the list of content types and their fields, such as a blog post with a title, a date and a body. It can live in code, reviewed like any other change, or in an admin screen where someone can add a field without a developer.
- How does the price grow? Count the editors, the projects and the volume of content you expect in two years. Then read each plan against those numbers.
- How would you leave? With a self-hosted CMS the database is already yours. With a hosted one, read how its export works before you commit.
Payload vs Strapi vs Sanity: a headless CMS comparison
Payload calls itself the Next.js fullstack framework. You install it into a new or an existing Next.js app. One TypeScript config file then gives you the admin panel, REST and GraphQL APIs, authentication (logins), access control (who can read or change what), file storage and live preview (seeing a draft as it will look). It is open source under the MIT licence, which lets you use, change and ship the code. It runs on MongoDB, Postgres or SQLite. The content model is code in your repository. (Payload docs)
Strapi is an open source Node.js CMS with its own admin panel. You can build content types in its Content-Type Builder, a screen in the admin. The Community Edition is MIT licensed. Its database documentation lists PostgreSQL, MySQL, MariaDB and SQLite for Strapi 5. It lists no MongoDB or other NoSQL database (NoSQL means a database that stores documents instead of tables); only Strapi version 3 supported those. You host it yourself or pay for Strapi Cloud.
Sanity is a hosted service. Sanity runs the content database, so there is no CMS server or database for you to look after. The plan counts seats, documents and API requests.
| Payload | Strapi | Sanity | |
|---|---|---|---|
| The software | Open source, MIT licence | Open source, MIT licence for the Community Edition | A hosted service |
| Who runs it | You, inside your Next.js app | You, or Strapi Cloud | Sanity |
| Databases | MongoDB, Postgres or SQLite | PostgreSQL, MySQL, MariaDB or SQLite | Run by Sanity |
| Content model | TypeScript config in your code | Content-Type Builder in the admin | Set up in your Sanity project |
| Free to start | Free to self-host | Free Community plan | Free plan, up to 20 seats and 10,000 documents |
| First paid plan | No public price | US$45 a month self-hosted, or US$35 a project a month on Strapi Cloud | US$15 per seat a month |
Want an open source headless CMS? Two of the three fit: Payload and Strapi. Want a cloud or hosted headless CMS with no server of your own? That is the Sanity column, or Strapi Cloud.
How much does a headless CMS cost?
These are the prices each vendor published when we read their pages on 23 October 2026.
| Plan | Price | What you get |
|---|---|---|
| Strapi Community (self-hosted) | Free | The open source CMS |
| Strapi Growth (self-hosted) | US$45 a month, 3 users included, then US$15 a month per extra user | Adds live preview, releases and 14 days of content history |
| Strapi Cloud Starter | US$35 per project a month | Sleeps when idle, no backups |
| Strapi Cloud Pro | US$90 a month | Stays on, weekly backups |
| Sanity Free | Free | Up to 20 seats and 10,000 documents |
| Sanity Growth | US$15 per seat a month | Up to 50 seats and 25,000 documents, pay as you go above the quota |
| Payload (self-hosted) | Free | Open source; enterprise features through a sales demo, no public plan price |
Sources: Strapi self-hosted pricing, Strapi Cloud pricing, Sanity pricing.
On Payload or a self-hosted Strapi, you pay for the server and the database instead of a plan. On all three, the build is usually the larger cost.
What is it like to run a website on Payload CMS?
We can answer this one from our own site. As of October 2026, boffincoders.com runs on Payload 3 inside its Next.js 16 app, on MongoDB, with 23 collections and 2 globals. In Payload, a collection is a content type with many entries, such as posts or pages. A global is a single item, such as the site settings.
User roles live in the config too. A collection can be read-only for one role or hidden from another, set in code rather than in admin settings.
Two things stood out.
The database. We added four collections in October, and none of them needed a migration file. A migration is a script that changes the database structure, run on every copy of the database. Payload's database guide describes this as the MongoDB trade-off: no schema changes to keep production and staging databases in step. A team that wants the database to enforce the structure would pick Postgres and write migrations.
The deploy. Because Payload lives inside the Next.js app, the admin panel, the API and the website build and restart as one. A failed build must never replace the running site. So our deploy builds into a separate folder, swaps it in only when the build succeeds, and keeps the previous build for a rollback. On Strapi or Sanity the CMS runs apart from the website, and the two deploy separately.
When is Payload the better choice?
- Your website is built in Next.js, or will be.
- Your developers want the content model, access rules and hooks (code that runs when content is saved or read) in TypeScript, reviewed in pull requests.
- You want the admin, the API and the website in one app with one deploy.
- You want MongoDB, or Postgres with migrations, on hosting you choose.
When is Strapi the better choice?
- Your team already runs Node.js services and a PostgreSQL or MySQL database.
- Someone should be able to add content types in the admin, through the Content-Type Builder.
- The CMS should run apart from the front end, with a website and a mobile app reading the same API.
- You may want hosting handed over later, because Strapi Cloud runs the same CMS for you.
When is a hosted CMS such as Sanity the better choice?
- Nobody on your side should run a server, a database or backups for the CMS.
- You have many editors, and a price per seat suits the budget better than paying for hosting.
- Your content fits the plan's document and request quotas, or the budget allows paying above them.
Which headless CMS should you choose?
Start from who will run it and which database your team knows. If the site is a Next.js build and your developers want everything in code, Payload keeps the CMS inside the app. If you want a separate open source CMS on a SQL database, with paid plans when you need more users and live preview, Strapi fits. If you want no CMS servers at all, a hosted service such as Sanity charges by seat instead.
| Your project | Choose |
|---|---|
| A Next.js site, with the content model in code | Payload |
| One app and one deploy for the admin and the website | Payload |
| MongoDB as the database | Payload |
| A separate CMS on PostgreSQL or MySQL | Strapi |
| Content types added in an admin screen | Strapi |
| No CMS server or database to run | Sanity |
Questions about this
What is the best headless CMS?
No single headless CMS is best for every site. Payload suits Next.js sites whose developers want the content model in TypeScript inside the same app. Strapi suits teams that want a separate open source CMS on PostgreSQL, MySQL, MariaDB or SQLite. A hosted service such as Sanity suits teams that do not want to run a server or a database. Start from who will run it and which database your team already knows.
What is the best open source headless CMS?
Of the three compared here, Payload and Strapi are open source, both under the MIT licence (for Strapi, the Community Edition). Payload fits when the CMS should live inside a Next.js app, with the content model in code. Strapi fits when the CMS should run on its own, with content types built in the admin.
What is the difference between a headless CMS and a traditional CMS?
A traditional CMS such as WordPress stores the content and also renders the pages through a theme. A headless CMS only stores the content and serves it through an API, and a separate front end, such as a Next.js app or a mobile app, builds the pages. Headless gives more freedom in the design and one content source for several channels, and asks you to build and host the front end.
Is Payload CMS free?
Yes, to self-host. Payload is open source under the MIT licence, and you install it into your own Next.js app with MongoDB, Postgres or SQLite as the database. You pay for the hosting and the database. Payload offers enterprise features through a sales demo, and on 23 October 2026 its website published no plan price.
Does Strapi support MongoDB?
No. Strapi 5 supports PostgreSQL, MySQL, MariaDB and SQLite, and no MongoDB or other NoSQL database. NoSQL support existed only in Strapi version 3. If your content already lives in MongoDB and you want to keep it there, Payload works with MongoDB through its official adapter, and so does our website, which runs on Payload.
Which headless CMS works best with Next.js?
Any headless CMS with an API works with Next.js, because the front end fetches content over REST or GraphQL. Payload goes further: it installs into the Next.js app itself, so the admin panel, the API and the website share one codebase and one deploy. Strapi and hosted services run separately, and your Next.js app fetches content from them.
Originally published on Boffin Coders. If you would rather have it built for you, you can hire Payload CMS developers for a Next.js site with the CMS inside it, or hire Strapi developers for a CMS that runs on its own.

