
Once you decide to build your site in code, the next question is where the content lives. A headless CMS holds your words, images and structured content, and your site pulls it in. There are a lot of options. This guide compares the ones small teams usually consider, and explains why we use Sanity.
The short answer: Sanity is the most flexible choice for a small team that wants a tailored editing experience, with a generous free plan. Storyblok is worth a look if a page-builder style editor matters most. Payload suits developers who want to self-host. Contentful is built for larger organisations and priced like it.
What to look for
- Editing experience. Can your team find and change things without training? Is there a preview of the real page?
- Content model. Can you shape content around your business, not just pages?
- Price as you grow. What happens at 10 editors, 10,000 items or a second language?
- Guardrails. Can you set required fields, character limits and protected documents so editors can't break things?
- Working with AI. Is the content structured and the schema in code, so an assistant can read it and help?
The options
Sanity
Sanity stores content as structured data, and the editing app, called the Studio, is configured in code. That means it can be shaped exactly around your site: the right fields, the right order, help text in plain words and validation that catches mistakes before they go live. Visual editing lets editors click text on a preview of the real page and change it.
On price, Sanity's free plan includes 20 seats and 10,000 documents, with hard caps rather than surprise bills. The Growth plan is priced per seat. Most small business sites stay on the free plan.
Because the schema is code, an AI assistant can read and extend it safely. Here is what a content type looks like, with the kind of guardrails we add:
import { defineType, defineField } from 'sanity';
export const post = defineType({
name: 'post',
title: 'Blog post',
type: 'document',
fields: [
defineField({ name: 'title', type: 'string', validation: (r) => r.required().max(90) }),
defineField({ name: 'slug', type: 'slug', options: { source: 'title' }, validation: (r) => r.required() }),
defineField({
name: 'seoDescription',
title: 'Search description',
type: 'text',
rows: 3,
description: 'What Google shows under the title. Aim for 150 characters.',
validation: (r) => r.max(160).warning('Long descriptions get cut off in search results.'),
}),
defineField({ name: 'body', type: 'array', of: [{ type: 'block' }] }),
],
});Contentful
A mature, enterprise-focused CMS with strong governance and integrations. The free tier is fine for experiments, but the first paid plan costs several hundred dollars a month, which is a big step for a small team. Editing is form-based and less tailored out of the box.
Storyblok
Known for its visual editor, which feels closer to a page builder. A good fit if your marketers want to assemble pages from blocks visually. Less flexible than Sanity for deeply structured content.
Payload
Open source and code-first, and you host it yourself alongside your app. Great for developers who want full control and no per-seat pricing. It means running and maintaining a server and database, which is more than most marketing sites need.
Git-based CMSs
Tools like Decap and TinaCMS store content as Markdown files in your repository. Simple and free, and handy for documentation or small blogs. They get awkward with lots of editors, images or relationships between content.
Quick comparison
- Best editing experience you can tailor: Sanity.
- Most page-builder-like: Storyblok.
- Self-hosted and code-first: Payload.
- Enterprise governance: Contentful.
- Simplest, content in Git: Decap or TinaCMS.
Why we use Sanity
We build a custom Sanity Studio for every site: fields named in your words, help text on every field, required fields, character limits, protected pages and checks for broken links and missing alt text. Editors get visual editing on a live preview, and publishing rebuilds the site in about a minute. It is the same set-up we run on our own site.
If you are choosing a CMS for a new build or a migration, our Astro and Sanity development service covers the content model, the Studio and the guardrails.