Contentful vs Sanity

Pick Contentful for a hosted headless CMS with a managed content API. Pick Sanity if developers want an MIT-licensed studio and accept content in Sanity's hosted Content Lake. Pick a self-hosted CMS when content must stay on your servers.

On this page

Contentful vs Sanity: which fits your team now

If a renewal, a pricing change or a data residency concern has you comparing these two products, the short answer is that Contentful fits teams that want a hosted content API and do not want to run any content storage, while Sanity fits developers who want schemas defined in code and an editing studio they can read and extend. Neither option changes where your content lives until you decide that question first, so start there. Before the renewal, pull the terms you would actually sign, including seat counts, API request limits, asset storage and the data residency options offered, because these drive the cost more than the feature list does.

Contentful fits when editors and front-end teams consume content through a hosted API and nobody on staff wants to operate databases, media storage or upgrades. Its CLI space export produces a JSON copy of the content model, entries and assets, which helps an exit plan, but a copy you have never restored is not yet a tested exit. Sanity fits developers who want content types written as code under version control and who value a Studio whose source code is MIT licensed. The catch is that the Studio is only the editing interface. The content itself sits in Content Lake, a real-time data store that Sanity hosts, so ask Sanity in writing where that data is stored and how a dataset can be exported before you commit.

The decision turns on three questions. First, where must content live? If policy requires storage in your own cloud account or data center, confirm with each vendor whether any hosted option meets that requirement, and if none does, compare self-hosted platforms instead. Second, how will your team model content? If developers want schemas reviewed in pull requests, Sanity's code-defined approach suits that workflow, while teams whose editors change content types themselves should test that workflow in each product. Third, who will operate the platform? A hosted service moves upgrades, backups and uptime to the vendor, and any self-run option moves them to your staff. Write down your answers to all three before you request a quote.

Contentful vs Sanity by team scenario

This table maps six buying scenarios to the platform that fits better, using the published Contentful and Sanity facts and flagging where the answer depends on a figure you still need to confirm. Read each row as a condition: the advantage holds only while the stated requirement holds. Where the published information cannot separate the two, the row says what to confirm instead of naming a winner.

Team scenarioBetter fitWhy it holds and when it stops holding
Developer-led team building a custom frontendSanity, for teams that want the editing studio in codeSanity Studio is MIT licensed, so you can extend it in your own repository. The edge ends if content must stay outside the hosted Content Lake.
Content team wanting a hosted editing serviceEither hosted service, pending a trialBoth products are hosted, and the published facts do not rank their editor experience. Run a trial with your own content model before choosing.
Regulated team that must control data locationSelf-hosted open source, such as Drupal or PayloadHolds only if your team can run the database and media storage. Sanity lists data residency options under its Enterprise plan, so confirm regions.
Team with a small seat countSanity Free, if the seat and document counts fitHolds while editors stay within 20 seats and 10,000 documents on Sanity's Free plan. Confirm Contentful's seat and record limits before comparing.
Team expecting heavy API trafficNeither, until traffic is measuredSanity's Free and Growth plans include 250,000 API and 1 million CDN requests a month. Confirm Contentful's limits and overage terms.
Team planning an exit or full exportSanity, for an export that keeps document historyMatters if you need history after leaving. Contentful's CLI export leaves out roles and permissions, and Sanity skips assets returning 401, 403 or 404.

How Contentful and Sanity charge, and what moves the bill

Both vendors bill against overlapping meters: seats, records, API traffic and how much history you keep. Sanity publishes its limits, so its tiers can be compared line by line below. Contentful's plan terms fall outside this comparison, so confirm them with Contentful before you set a budget.

Seats and editor access

Sanity's Free plan includes up to 20 seats, and its Growth plan charges $15 per seat per month for up to 50 seats, so each added editor, developer or reviewer changes the invoice. Ask Contentful how it counts seats, including read-only users and service accounts. Map who edits content, who only reads it and who builds the frontend before you compare. A self-hosted CMS replaces per-seat fees with hosting and staff costs, so the question becomes how many people your own team must support.

Sanity pricing page

Documents and content records

Sanity meters documents: up to 10,000 on Free, 25,000 on Growth, and custom pricing on Enterprise. Count your current records, then ask Sanity whether drafts and localized variants count toward the document limit. Confirm Contentful's entry and asset limits for your plan before comparing, since its metering is outside this comparison. A self-hosted CMS has no vendor document meter, so the cost moves to database size, storage growth and the backup window you must plan.

API requests and CDN calls

Sanity's Free and Growth plans each include 250,000 API requests and 1 million API CDN requests a month. Public site traffic, preview builds and scheduled jobs can draw on the same allowance, so count the queries your frontend and build pipeline make per page view. Confirm with Contentful its request quotas, CDN treatment and overage rules before you compare. A self-hosted option moves that load to your own load balancer, database and cache, which you size, monitor and pay for.

Content history retention

Sanity's history window is 3 days on Free, 90 days on Growth and 365 days on Enterprise. Retention sets how far back an editor can recover a version and how far back an audit can look, so check it against your recovery and audit requirements before choosing a tier. Confirm with Contentful how long version history is kept on your plan and whether that window can be extended. When you self-host, retention becomes a database sizing and backup decision, and the retention policy is yours to write, test and document.

Enterprise-only controls

Sanity's custom-priced Enterprise plan adds SSO, custom roles, audit trail, backups and data residency, along with the 365-day history. List which of these your security and compliance teams require before requesting a quote, since they decide whether a tier fits. Confirm with Contentful which SSO, role, audit, backup and data residency features sit on which plan. In a self-hosted deployment these controls become configuration you own: SSO through your identity provider, role mapping, audit logging and backup storage in a region you choose.

Sanity pricing page

Contentful vs Sanity capabilities from published facts

This table compares Contentful and Sanity on six capabilities, using only published facts from each vendor's CLI, repository and documentation. Where a Contentful detail is not covered by those sources, the cell says to confirm it with Contentful. The main takeaway is that both platforms host content as a service, so the export tool and its known gaps determine how portable your content is.

CapabilityContentfulSanity
Content model definitionContent types are included in the CLI space export as JSON. Confirm authoring and versioning workflow with Contentful.Schemas are defined in code alongside Studio. Confirm the schema deployment workflow with Sanity.
Editing interfaceWeb app with editor interfaces, which the CLI export carries over. Confirm editor customization options with Contentful.Sanity Studio, the editing interface, with MIT-licensed source code.
Content storage locationHosted by Contentful as a SaaS service. Confirm storage regions and data residency options with Contentful.Content Lake, a real-time data store hosted by Sanity.
Export toolingCLI space export covers content types, entries, assets, locales, webhooks and editor interfaces, and can download asset files. Roles and permissions are not exported.CLI dataset export creates a gzipped tarball with document history and assets. Assets returning 401, 403 or 404 are skipped.
Licensing of the editing layerHosted web app. Confirm the license terms that apply to the editing layer with Contentful.Sanity Studio is MIT licensed. Content Lake is a Sanity-hosted service, separate from the Studio license.
HostingContentful hosts the headless CMS. Confirm self-hosting options, if any, with Contentful.Content Lake is hosted by Sanity. Confirm where you deploy Studio and whether self-hosting is offered.

Where content lives in Contentful and Sanity, and what leaving involves

Both platforms keep content on infrastructure the vendor operates, so an exit plan starts with what each export tool takes out and what you must rebuild by hand. The cards separate the editing code you can keep from the hosted store, the Sanity and Contentful export paths, and the residency terms you need in writing before a renewal.

Editor code versus hosted content

Sanity Studio, the editing interface, is MIT licensed, so you can host and change that code yourself. Your content does not sit in that code, though. It lives in Content Lake, a data store that Sanity hosts, so the stored documents and the API that serves them stay with the vendor unless you move them out. Contentful raises the same question about where its hosted space lives and how its API is consumed. Check whether your frontends query the hosted API directly, because those queries are the lock-in that a code export does not change.

Sanity repository

Sanity dataset export coverage

The sanity dataset export command writes a dataset to a local gzipped tarball that includes document history and asset files. It skips any asset that returns a 401, 403 or 404 response, so the archive can look complete while files are missing. Review the run output for skipped assets, compare asset counts, and spot-check a sample of downloaded files before you treat the archive as a full copy. Store the tarball in infrastructure you control, since it may be the only complete copy you hold after the subscription ends.

Sanity dataset docs

What contentful-export carries over

The MIT-licensed contentful-export library exports content models, entries, assets, locales, tags, webhooks, roles, editor interfaces and releases. That set covers the schema and content your new CMS needs. It fetches up to 1,000 items per request by default, so large spaces make many calls and need a complete run check. Roles arrive as data, but you still have to map them to the access model of the target platform yourself.

contentful-export repository

What the export leaves behind

Space memberships are not exported, so every person who needs access to the new system must be added again from your identity records. Webhook credentials must be re-added manually, and custom UI extensions need reinstalling in the new environment. Write these three items down before cutover, assign an owner to each, and confirm each one in the target system before you switch traffic.

Embargoed assets need a flag

Asset files download only when you set the downloadAssets option, and that option is required for embargoed assets. Without it, a JSON export can contain the asset records while the binary files your pages depend on are absent. Run a test export into a scratch environment and confirm that embargoed images and documents open correctly before you plan the final run.

Residency terms need written confirmation

Sanity lists data residency options only on its custom-priced Enterprise plan, which also adds SSO, 365-day history, custom roles, audit trail and backups. If residency is a requirement, get the Sanity hosting region confirmed in writing and do not assume a lower tier meets it. For Contentful, ask your account team to confirm data location and residency terms in writing, and request the same for any renewal quote.

Sanity pricing

What your team operates under each hosted option

The heaviest recurring work under either hosted option is schema change management. In Sanity, content types are defined as schema code in the Studio project, so a field change normally goes through code review, a Studio deploy and a plan for existing documents that no longer match the new shape. In Contentful, content types are edited in the web app, so model changes happen outside your code review unless you add a process for them. The burden grows with the number of content types, locales and frontends that read the same fields. Before each change, confirm how your preview and staging environments will show the new model, and name who signs off on a breaking change to a field that a website, app or search index depends on.

Role and permission configuration and webhook upkeep follow the same pattern: the work grows with the number of teams and integrations, and your audit requirements decide how much of it you must prove. The Sanity pricing page lists SSO, custom roles, audit trail and data residency only on its custom-priced Enterprise plan, and document history runs 3 days on Free, 90 days on Growth and 365 days on Enterprise, so a team with audit obligations should map each control it needs to a plan before it commits. Contentful's CLI space export does not carry roles and permissions, so a rebuilt space needs its roles recreated from your own records. Webhooks need the same attention: the contentful-export library does not carry space memberships, webhook credentials must be re-entered and custom UI extensions must be reinstalled after an import.

Export rehearsals come last, and they are the check that proves the exit path works. Run the Sanity dataset export, which writes a gzipped tarball with document history and asset files, or the Contentful space export into a scratch environment before any renewal date. Record what came back, including any Sanity assets that returned 401, 403 or 404 and were skipped, as described in the Sanity CLI dataset reference. Compare entry and asset counts against the source, confirm that embargoed Contentful assets were downloaded with the downloadAssets option, and time the run against your change window. A self-hosted option moves all of this onto your team: hosting, database and media storage, backups and restore tests, upgrades, SSO and audit logging, and the export path itself. Those tasks recur, so assign an owner to each before you choose.

How the choice between Contentful, Sanity and a self-hosted CMS runs

The path starts with one question: must the content stay on your own servers? If it can leave them, the next choice is a hosted content API, which leads to Contentful, or a code-defined studio, which leads to Sanity. Sanity Studio is MIT licensed, but content sits in Content Lake, a store Sanity hosts, so confirm where your data lives before you pick it. If content must stay on your servers, check whether your team can run a database and media storage. If it can, the page-based or PHP stack question sends you to Drupal, WordPress or Payload, and if it cannot, only a hosted option fits. Check residency and staffing at each hand-off.

Decision path from data residency to Contentful, Sanity, Drupal, WordPress or Payload.

When Drupal, WordPress or Payload fits better than either product

Consider Drupal, WordPress or Payload when the deciding factor is where content lives and who controls the code. Three conditions point this way: content must stay on servers you control, the license must allow running the software without a per-seat or usage bill, or your team needs a CMS it can host and audit itself. Drupal and WordPress are both GPL, and the Drupal.org licensing page notes that the GPL does not require sharing code that is only used to run a website. Running either one internally adds no license fee, but hosting, staff time and upgrades remain your cost. Payload is MIT licensed, which is a permissive license, and it runs inside your own Next.js application.

For Drupal, start any new build on Drupal 11. Drupal 10 reaches end of life on December 9, 2026, and Drupal 12 is scheduled for the week of December 7, 2026, so confirm your upgrade path before you set a go-live date. Drupal has no paid edition of its own, so the cost question is the team that will patch, upgrade and test it. WordPress is GPLv2 or later, and plugins and themes are treated as derivative works that must also be GPL. Only the most recent 7.1 release is maintained, and 7.1.3 was released on October 6, 2026, so confirm you are on the latest 7.1 point release. Check the WordPress requirements page for PHP 8.3 or greater, MySQL 8.0 or greater or MariaDB 10.11 or greater, HTTPS, and Apache or Nginx before you size your servers.

Payload is a TypeScript CMS that supports self-hosted PostgreSQL, MongoDB or SQLite, and it includes versions and drafts, localization and live preview. The trade-off is that your developers own the schema, the editing experience and the frontend, and your team runs the database, media storage, backups and preview environment. Before choosing Payload, confirm that your engineers can review collection changes in pull requests, that someone owns database backups and restores, and that editors accept the admin panel. For Drupal and WordPress, ask the same questions about who reviews modules and plugins, who applies core updates and who tests them before release.

What a move between Contentful and Sanity involves

The sequence moves your content model, entries, assets and delivery integrations from a hosted Contentful space into a Sanity dataset with a code-defined schema, and ends with a tested cutover. Each step closes with a check you can record, so the team can see what has carried over and what still needs manual rebuilding. Time and effort depend on the number of content types, locales, assets and integrations, and no duration is given here.

  1. Inventory content types and editing workflow

    Editors, developers and the content lead list every content type, field, locale, asset collection and editorial workflow in the Contentful space. They also list each frontend, webhook and third-party service that reads from it, and note which assets carry embargo or access restrictions. The output is a written inventory signed off by the content owner and the engineering lead, with counts of content types, locales, assets and integrations. Those counts drive the effort in every later step, so confirm them in writing before any work starts.

  2. Export the space with the CLI

    Run the Contentful CLI space export to write the published content model, content, locales, webhooks and editor interfaces to JSON, and include the option that downloads asset files. Confirm that embargoed assets are fetched, since the library's downloadAssets option is the one that covers them. Then record what the export leaves out: roles and permissions are not exported by the CLI, and the contentful-export library does not carry space memberships, webhook credentials or custom UI extensions. Confirm how draft entries will be handled. The check passes when entry and asset counts in the JSON match the inventory.

  3. Map the content model to Sanity schema

    Translate each Contentful content type into a Sanity schema type in the Studio codebase, which is MIT licensed. Content itself is stored in Sanity's hosted Content Lake, so the team should confirm hosting and data residency terms in the same review. Decide how references, rich text, locale-specific fields and asset fields become Sanity equivalents, and write down each field whose shape changes. Review the mapping with editors using a sample of entries before running the full import. The step is done when every content type has a schema definition and a mapping table the content owner has approved.

  4. Import entries and assets, then verify counts

    Load entries and assets into a Sanity dataset using the import tooling your team selects, and confirm exact commands and asset handling in Sanity's CLI reference before running them at volume. Import one content type at a time so failures are easy to trace. Compare document counts, asset counts and per-locale totals against the export. Check that embargoed assets arrived and open a sample of each to confirm it loads. Note that Sanity's dataset export skips assets that return 401, 403 or 404, so apply the same scrutiny to any future exit. The step is done when every count matches or each gap has a logged reason.

  5. Rebuild webhooks, permissions and frontend integrations

    Re-create each webhook and re-enter its credentials, because the export does not carry them. Rebuild any editor UI extensions inside the Studio code. Rebuild roles and access in Sanity, and check Sanity's pricing page to see which plan includes the controls you need, such as SSO, custom roles and audit trail. Point each frontend, build hook and search indexer at the Sanity dataset and API, then publish a test change end to end. The step is done when a test publish reaches every frontend and each integration receives the events it received before.

  6. Run a parallel period and cut over

    Run the new frontends against Sanity in a staging environment alongside the live Contentful setup for an agreed window. Compare published output on the same pages and log every mismatch, fixing each one at its source. Keep the Contentful export archived for audit and rollback. Cut over only after the comparison has been clean for the window agreed in the written scope, then move editors to Sanity and retire the old webhooks and frontend keys in order. The step is done when the frontends render from Sanity, Contentful no longer receives edits, and the archive has been verified.

Contentful vs Sanity questions buyers ask before a renewal

What drives Contentful and Sanity costs before a renewal?

Both products bill for a plan plus usage, so the quote depends on seats, content volume, API traffic, history retention and the features in your tier. Sanity's published pricing lists a Free plan with up to 20 seats, 10,000 documents and 3-day draft history, and a Growth plan at $15 per seat per month with up to 50 seats, 25,000 documents and 90-day history. Free and Growth include 250,000 API requests and 1 million API CDN requests a month. Enterprise is custom-priced and adds SSO, 365-day history, custom roles, audit trail, backups and data residency options. For Contentful, get current seat, usage and overage rates from your order form or its current pricing terms. Ask both vendors for seat counts by role, document and asset limits, API and CDN allowances, overage rates, history length and which features sit in your tier. Self-hosting moves those costs to hosting, database and media storage, CDN, upgrades and staff time, and most of them recur every year.

Does my Contentful or Sanity renewal date force a migration timeline?

Yes, the renewal date sets your deadline, so plan any move or renegotiation before it arrives. Check the notice period, any auto-renewal clause, the minimum commitment and the tier you pay for. Put these questions to each vendor in writing: the notice deadline, how long read and API access continues after termination, which export formats they provide, and whether you can move to a lower tier during the term. Read any transition or data-return clause for its time window, because a migration that runs past it can leave you paying for overlap. Start the export early, since a full copy lets your team build the new site while the current contract runs and keeps the cutover independent of the last contract day. Exact dates and windows come from your own agreement and the vendor's current terms, so confirm them before you set the calendar.

How long does moving content out of Contentful or Sanity take?

Duration depends on content volume and complexity, and the export itself is usually a small part of the work. The main drivers are the number of content types and references, locales, asset count and size, rich text that needs converting, embargoed or access-restricted assets, webhooks, and the frontend and API consumers that must be rewired. Contentful's CLI can export a space's content model, content, assets and locales as JSON and download asset files. Sanity's dataset export creates a gzipped tarball with document history and assets, and it skips any asset that returns a 401, 403 or 404, so list those assets before you export. A reliable timeline comes from a test run on a single content type of your own content, followed by a written scope that covers the remaining types. Ask any migration partner to base its timeline on that test.

What does a CMS migration need from our own team?

Your team supplies the decisions and checks that no export tool can make. Content owners confirm which content types, fields and locales move, and editors test entries and assets after the move. Engineers map the schema, rebuild frontend queries and reconnect webhooks, while platform or DevOps staff provision hosting, databases, storage and backups. Security or IT covers SSO, admin roles and audit logging, and a product owner sets the content freeze and cutover date. Expect to recreate items the exports leave out. The contentful-export library does not carry space memberships, webhook credentials must be re-added by hand, and custom UI extensions need reinstalling. Sanity Studio's code is MIT licensed, but content lives in Sanity's hosted Content Lake, so the schema code is only part of the move. Ask any vendor or partner which of these items its scope covers.

Can an internal team move off Sanity or Contentful without an outside partner?

Yes, an internal team can do the move without outside help if it has engineers who know the target stack, time for schema mapping, a test environment and a documented cutover and rollback plan. The hard parts are the items the export tools leave behind, the rewiring of frontend and API consumers, and the testing of every content type before the freeze. Ask whether the team has run a content migration before, whether it has capacity alongside its normal work, and who signs off each step. If any answer is no, an outside engagement can cover the gap. DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. It can scope a move to one of them and agree deliverables and timelines in writing before work starts. A quote follows from that written scope.

Do Sanity Enterprise data residency or Contentful data location terms settle compliance?

Not on their own. Sanity's Enterprise plan lists data residency options, and Contentful's data location terms sit in its contract, so the answer depends on where the data is stored, what the terms cover and what your regulator requires. Ask Sanity which residency options your plan includes, where Content Lake keeps documents, assets, history and backups, and whether the option covers its processing agreement and subprocessors. Ask Contentful for its current data location terms in writing, including where content, assets, backups and logs are kept. Your compliance team then checks those answers against your obligations. Self-hosting in your own cloud account or data center gives you direct control over where data sits, but it also makes your team responsible for the controls. DeployOpen prepares systems, controls and evidence for compliance assessments. Independent auditors and certification bodies issue the reports and certifications.

How DeployOpen helps you evaluate, implement or integrate

DeployOpen approaches Contentful vs Sanity as an implementation project inside your own infrastructure. We plan the export, the target platform and the cutover order in writing, then build and test each step with your teams. Whether you are evaluating a self-hosted option or integrating one alongside your current stack, the deliverables are documented and agreed before work starts.

How we scope

  • The written scope names which Contentful spaces or Sanity datasets move, plus their content types and assets.
  • We map the Contentful content model and Sanity schema to the target platform's data model before any build starts.
  • Engagements are fixed-scope, and ongoing support is available as a retainer.

How we build

  • Export scripts pull the Contentful space or Sanity dataset, including assets, into a versioned repository you control.
  • Sanity Studio is MIT licensed, but content lives in Sanity-hosted Content Lake; plan that split explicitly.
  • Security testing covers the rebuilt API, roles and access rules before content is cut over.

How we hand over

  • Handover includes the export log, the field mapping, and a runbook for the target platform's upgrades and backups.
  • Reconcile asset counts against the export, since the Sanity CLI skips assets that return 401, 403 or 404.
  • Record what does not move, such as Contentful roles and permissions, so access is rebuilt deliberately.

How we support

  • Upgrades, backups and continuous testing of the self-hosted platform can run under a retainer agreed in writing.
  • Security findings come with documented fixes, and the affected area is retested after remediation.
  • Compliance evidence for the self-hosted CMS is prepared for your independent auditors, who issue any attestation.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.