Payload vs Sanity: Code-First CMS or Hosted Content Lake?

Pick Payload if you want the CMS inside your own Next.js codebase, with content in a Postgres or MongoDB database you run. Pick Sanity if you want content in a hosted store that you query from anywhere, a Studio editors can use together in real time, and no backend of your own to patch.

Both are code-first. In both, a developer defines the content schema in TypeScript or JavaScript, and both suit teams who would rather write a schema than click one together. Where they part ways is where the content lives and who runs it.

How do Payload and Sanity differ in architecture?

Payload is an open source, MIT licensed framework written in TypeScript. Since version 3 it installs into a Next.js app: the admin panel, the REST and GraphQL APIs and your public pages share one repository and one deploy. Server components can read content through Payload’s Local API without an HTTP round trip. Data sits in a database you choose and operate.

Sanity has two parts. The Content Lake is a hosted, real-time document store run by Sanity. The Studio is an open source React app you configure in code, deploy to Sanity’s hosting or embed in your own site. Your frontend queries the Content Lake with GROQ, Sanity’s query language, or through a GraphQL API.

PayloadSanity
Where content livesYour database (Postgres, MongoDB, SQLite)Sanity’s hosted Content Lake
LicenceMIT, whole CMSStudio MIT, Content Lake is a paid service
SchemaTypeScript config in your repoJavaScript or TypeScript schema in the Studio repo
QueryLocal API, REST, GraphQLGROQ, GraphQL
Admin UIReact admin inside your Next.js appStudio, customisable React app
Access controlFunctions per collection, field and operationRoles set by plan, 2 on the free plan
Who runs the backendYouSanity
Pricing modelHosting and engineering timeFree plan, then per seat with usage quotas

How does content modelling feel in each?

In Payload you write collections and globals as TypeScript objects. Fields, validation, access rules and hooks sit next to each other, and Payload generates TypeScript types from the config, so the frontend and the CMS agree on the shape of every document. Authentication is built in, which makes Payload a fit when the CMS also stores users, orders or other app data.

In Sanity you write document and object types in the Studio configuration. Rich text is stored as Portable Text, a JSON format your frontend renders with its own components. References between documents are first class, and GROQ lets one query follow them and reshape the result. Teams that need to slice the same content many ways tend to like GROQ once they have learned it.

Both handle localisation, drafts and live preview. Neither gives editors a page builder out of the box: you build one from blocks in either system.

What is the editor experience like?

Sanity’s Studio is the stronger tool for a group of editors working at once. It shows who is in a document and updates in real time, and its visual editing tools come on the free plan as of October 2026.

Payload’s admin is a clean form-based UI that lives on your own domain. Live preview and versions with drafts are built in. Because the admin is React inside your app, custom fields and views are ordinary components your team already knows how to write.

What changed for Payload in 2025?

Payload announced on June 17, 2025 that its team was joining Figma. The post says Payload remains open source and that self-hosting does not change. As of October 2026, Payload’s get-started page lists self-hosting, deploy templates for Vercel and Cloudflare, and an Enterprise tier, and its Cloud new-project page says project creation is only available for Enterprise teams. In practice, plan to self-host Payload on your own cloud account unless you buy Enterprise.

What does each cost to run?

Payload has no licence fee when you self-host. Your costs are a Node host, a managed database, file storage, backups and the engineering hours to keep them patched. Those hours are usually the biggest line item.

Sanity prices the hosted service. As of October 2026, from Sanity’s pricing page:

Sanity planPriceSeatsDocumentsAPI CDN requests a monthAPI requests a month
Free$02010k1m250k
Growth$15 per seat a month5025k1m250k
EnterpriseCustomCustomCustomCustomCustom

On Growth, overage is $1 per 250k CDN requests and $1 per 25k API requests, and an extra dataset costs $999 a month. Free datasets are public only. So Sanity’s bill grows with editors and traffic; Payload’s grows with the time your team spends running infrastructure.

How locked in are you with each?

With Payload the exit cost is low on the data side: the content is rows or documents in your own database, and the schema is code in your repository. What ties you in is the admin, the hooks and the access rules you write against Payload’s API.

With Sanity the Studio code is yours, but the content sits in a service you rent. The CLI command sanity datasets export writes a dataset to a gzipped tarball with its assets, so leaving is possible. The cost is rewriting every GROQ query in the frontend and converting Portable Text for the next system.

Which one did we use for a B2B SaaS marketing site?

A European mid-market B2B SaaS company had outgrown its WordPress site: plugin debt, custom PHP overrides, and a developer needed to ship every content change. It also needed feature comparison tables, localised landing pages for five European markets and versioned release notes.

We built the content layer in Payload, with each content type as a typed collection with field validation, a custom plugin for localisation, and Docker plus GitHub Actions for staging to production. The frontend is Next.js. Results from the Payload build case study:

  • ~65% reduction in time-to-publish
  • LCP of 1.7s on the primary landing page, down from 4.2s
  • ~40% fewer engineering hours on content tasks monthly
  • Lighthouse performance score of 96 on mobile

The schema lives in version control next to the frontend, and a content model change ships through CI like any other code change.

Which one we would pick for whom

  • Product teams on Next.js who want one repo and one deploy: Payload. Even more so when the CMS also holds users or app data.
  • Regulated companies that must keep content in their own database or region: Payload, self-hosted where your compliance team wants it.
  • Content teams with many editors working at once: Sanity, for real-time collaboration in the Studio.
  • Teams that query the same content into a site, an app and other tools: Sanity, because GROQ and the hosted Content Lake make each new consumer cheap.
  • Teams with no one to run servers: Sanity, or a managed host for Payload if you accept that work.

We go deeper on each platform on the Payload development and Sanity development pages. To add people to your own team, you can hire a Payload developer or bring in a Sanity developer. For a third option in the same space, compare Strapi vs Payload and Strapi vs Sanity.

If you want a second opinion before committing, our headless CMS services overview lists what a build covers, and our page on working with a team that builds on both platforms explains how we scope one.

Payload vs Sanity FAQ

Is Payload or Sanity better for Next.js?

Both work well with Next.js. Payload installs into the Next.js app itself, so the admin, the API and your pages share one codebase and one deploy. Sanity keeps content in its hosted Content Lake and your Next.js app queries it with GROQ. Choose Payload to own the data, Sanity to avoid running a backend.

Is Payload still open source after joining Figma?

Yes. Payload announced on June 17, 2025 that it was joining Figma and said Payload remains open source, with self-hosting unchanged. Its get-started page states that Figma is committed to maintaining and investing in the open source core. The GitHub repository is MIT licensed as of October 2026.

Can I self-host Sanity?

You can host the Studio yourself, since it is an open source React app you can deploy anywhere or embed in your own site. The content itself always lives in the Content Lake, which Sanity runs. If your requirement is that the data sits in your own database, Sanity does not meet it and Payload does.

Which is cheaper, Payload or Sanity?

Payload has no licence fee when self-hosted, so you pay for servers, a database and the engineering time to run them. Sanity has a free plan and a Growth plan at $15 per seat per month as of October 2026, with request overages on top. Team size and traffic decide which total ends up lower.

Can we move from Sanity to Payload, or the other way, later?

Yes, with a migration project. Sanity exports a dataset as a tarball of documents and assets, and Payload data sits in your own database. The work is mapping schemas, converting rich text between Portable Text and the format Payload uses, and moving assets. Frontend queries change too, since GROQ and Payload queries differ.

Related services

Other Services We Provide

Testimonials

What our clients say

Direct feedback from teams we've shipped with.

HTML CSS Hugo +5

Alpina tech did a good job during the discovery phase of our project

4.9 / 5
J
John C. Delivery Manager Headless CMS rebuild and frontend integration
Strapi Next.js React +9

I had the opportunity to work with Alpina Tech and the experience was very positive. He successfully achieved the goals set, demonstrating talent and commitment at every stage of the work. Moreover, he was always attentive to my instructions and consistently available, which greatly facilitated communication and the de...

5.0 / 5
M
Michael A. Delivery Manager Rebuild Strapi Cloud CMS, migrate content, and integrate with Next.js frontend (Render)
Next.js React JavaScript +5

Alpina Tech is not only a very talented dev, but he's a fantastic partner who has a rich business acumen and is quick to complete anything you throw at him. He knocked out work in a single day that I wasn't expecting for a week. Will definitely work with him again.

5.0 / 5
D
David R. Technical Project Manager Fix Netlify Functions & Assessment Tool for Next.js Website
React Native React Node.js +7

Alpina Tech always responded promptly and got a lot done in the limited environment we had. If things weren’t clear, he’d message and make sure he has the scope right. I highly recommend him for full stack development.

5.0 / 5
J
James K. Technical Project Manager React Native + Node.js Developer for Collectibles App with GPT-4 Integration
UX/UI Design Figma Landing Pages +4

I had the opportunity to work with Alpina Tech on the design of several landing pages and a UI kit, and I couldn’t be happier with the results. He managed to deliver high-quality designs in a very short time. The landing pages were beautifully crafted, and the UI kit was exactly what we needed to streamline the project...

5.0 / 5
R
Robert N. Delivery Manager UX/UI design for landing + UI kit
React.js React Next.js +12

Working with Alpina Tech on a headless CMS project built with Strapi, Node.js, and Next.js was a great experience. His deep understanding of modern frontend frameworks, API development, and server-side rendering (SSR) ensured a smooth and efficient development process. Alpina Tech showcased excellent React.js and Next....

5.0 / 5
W
William P. Project Manager React Developer Needed for Headless CMS with Strapi, Shadcn, and TypeScript
Swift SwiftUI UIKit +8

We worked with Alpina Tech, a top-tier Apple ecosystem developer specializing in Swift, SwiftUI, UIKit, and Combine. Delivered a seamless, high-performance app with Core Data, iCloud Sync, AVKit, MapKit, and Push Notifications. Optimized for iOS, watchOS, and macOS, ensuring smooth performance and App Store compliance....

5.0 / 5
D
Daniel O. Delivery Manager Develop iOS mobile app
JAMstack Hugo Next.js +10

I hired Alpina Tech to build a custom Hugo website. He was a pleasure to work with. He took the time to understand exactly what I wanted at the beginning of the project, and he then proposed a much better way of achieving that. He communicated regularly, provided clear and timely updates, offered ongoing support with m...

5.0 / 5
M
Matthew M. Project Manager Installing a custom theme for Hugo website
Next.js React Sanity +7

Alpina Tech was incredibly helpful and a pleasure to work with! He not only assisted with improving the SEO of my startup but also fixed a challenging Sanity bug with great patience and professionalism. His expertise and attention to detail were invaluable, and he did an excellent job overall. Highly recommended!

4.9 / 5
A
Anthony L. Technical Project Manager SEO Technical Expert for Next.js & Sanity.io Blog Integration
UI/UX Design Figma Web Design +3

I had the pleasure of working with Alpina Tech on the UI/UX design for my public website, and I am extremely impressed with his work. He significantly expanded and improved upon the original design I already had, seamlessly integrating enhancements that perfectly matched the existing style. His ability to develop great...

5.0 / 5
B
Brian D. Delivery Manager UI/UX Designer for AI Startup
Jekyll JAMstack HTML +5

Working with Alpina Tech was a great experience. He is knowledgeable and delivers high-quality work. The agency boasts a wide range of talent, making it a good choice for various projects. Communication was consistently excellent, and Alpina Tech ensured that every aspect of the project worked as expected. The work was...

5.0 / 5
K
Kevin F. Project Manager Web Developer Needed to Convert Figma Landing Page Design to Jekyll Static Site
UI/UX Design Figma Landing Pages +4

Alpina Tech and the team have completed the design quickly and it looks great. They are very responsive and were able to quickly make adjustments that I have requested.

5.0 / 5
L
Lauren E. Delivery Manager Landing page and public site pages design
iOS Swift SwiftUI +3

Alpina Tech is awesome, he fixed a complicated bug on VPN iOS app in two hours.

5.0 / 5
R
Rachel Y. Technical Project Manager ASAP iOS Developer Swift/SwiftUI (Fix VPN Mobile App)
Hugo JAMstack HTML +3

Alpina Tech did an excellent job guiding us through the process and helping us achieve our project goals.

5.0 / 5
B
Brandon A. Project Manager hugo site work
GitHub Pages HTML CSS +4

Alpina Tech helped us launch a research project website. Thank you for being available on short notice!

5.0 / 5
E
Eric B. Delivery Manager Fix github.io page issue
Technical SEO Web Strategy Management

I had the pleasure of working with Alpina Tech on leadership and technical projects. The team is highly motivated, strategically minded, and has exceptional technical SEO expertise. Their approach significantly boosted our digital presence. I highly recommend Alpina Tech for engineering and leadership-driven projects –...

5.0 / 5
S
Steven T. CEO AT CLAWBUSTER GAME PROVIDER Leadership & Technical SEO Optimization
HTML CSS JavaScript +4

Alpina Tech demonstrates all the right qualities of a strong development team – deep frontend expertise, great communication, and a proactive work attitude. A reliable partner for any technical project.

5.0 / 5
S
Scott M. Delivery Manager Frontend Development & Collaboration
Web Development Frontend HTML +3

Alpina Tech is a very professional and reliable team. Working together on web projects was extremely successful. The team showed strong technical knowledge and excellent organizational skills.

5.0 / 5
J
Jonathan N. Business Analyst - Playtech Web Development Collaboration

Keep exploring

More on Headless CMS

Our team

The team you'll actually work with

We pair deep technical expertise with the kind of ownership you'd expect from your own in-house crew.

  • Same team from discovery to launch
  • Daily standups, Slack, and full transparency
  • Senior-only engineering, design, and QA
  • Long-term collaboration, not staffing
10+ years in the field
EU-based UTC+0 → UTC+3
Senior-only no juniors
Alpina Tech Team

Book a session

Let's just
{ Make it together! }

Learn how our services can improve your business processes, customer experience, and drive growth.

Schedule a meeting

Get a lightning-fast, SEO-optimized, high-performance web app for:

  • SaaS platforms
  • Marketplaces
  • Marketing websites
  • News portals
  • Catalogs & listings

Meeting agenda

  1. 01 Define goals & product scope
  2. 02 Quick technical SEO check-up
  3. 03 Outline your development roadmap
30 min
Web conferencing details provided upon confirmation.

Meet our team

Team member 1Team member 2Team member 3Team member 4Team member 5Team member 6

Success!

Form was sent to our team. We will contact you soon.

Get Your Estimate

Tell us about your project and we'll get back to you with an estimate.

Your Name
Solutions
Contact Email
Estimated Budget
Attach File