Table of Contents

Umbraco to Sanity Migration: A Step-by-Step Guide

Planning an Umbraco to Sanity migration? Learn how content trees, schemas, rich text, media, and URLs move, plus what really determines migration effort.

Umbraco to Sanity Migration

If you’re considering a move from Umbraco to Sanity, one of the first questions is likely to be what actually happens to everything you’ve already built. Sanity provides a more flexible setup that can make publishing faster and give your editorial teams more freedom, but it also organizes your content differently from Umbraco. The biggest difference is the content tree. Umbraco uses one to organize the entire site, while Sanity has no tree at all. So rather than simply copying your existing structure across, the migration involves deliberately rethinking how that structure works in Sanity.

That difference shapes much of the migration. In this guide, we’ll walk through how the tree gets re-expressed, how document types become schemas, how rich text converts to Sanity’s Portable Text format, how media and URLs move, and what ultimately determines how much effort your specific migration will take.

How Do Umbraco and Sanity Model Content?

Umbraco stores content as nodes in a relational .NET database, whereas Sanity stores flat documents in the Content Lake. That structural difference is what lets one piece of content get reused across a homepage, a campaign page, and a future app without being copied and re-edited three times. For marketing teams, this difference matters because it changes how easily content can be reused across channels, campaigns, and digital experiences.

Rather than defining content by where it sits in a hierarchy, Sanity connects documents through references and queries them with GROQ, its own query language designed specifically for this kind of structured, reference-based model.

Umbraco’s tree structure represents content as a hierarchy of parent and child nodes, meaning that on deeply hierarchical sites, a page’s position relative to its parent carries real meaning, both structurally and often for navigation.

That’s why moving to Sanity requires rethinking that structure rather than replicating it, as well as understanding what Sanity CMS is and how it works.

Can Sanity Keep the Umbraco Content Tree?

No. Because Sanity has no content tree, the Umbraco hierarchy needs to become explicit fields or references instead.

This is where much of the real work in this migration happens. Everything the tree previously handled implicitly – a page’s position, its URL, its parent relationships, ordering among siblings, and any settings inherited from a parent node – now needs a deliberate and definitive home in the new Sanity model. None of it carries over automatically just because the content itself has moved.

A useful way to test whether your model will work is to ask what breaks if every page loses its parent. In Umbraco, that parent relationship often carries information the page itself doesn’t state specifically, including inherited settings, breadcrumb position, and sometimes even permissions. If your Sanity model can’t answer those same questions without relying on that parent relationship, there’s still work to do.

In practice, nesting becomes references and arrays. A page that once sat three levels deep in an Umbraco tree becomes a document with an explicit reference back to whatever “parent” means for that content going forward, plus an array field if it needs to list its own children.

How Do Umbraco Document Types Become Schemas?

Umbraco document types become Sanity schemas, defined directly in Sanity Studio, with each document type’s properties becoming typed fields within that schema. This is where the migration starts to affect everyday publishing: the structures your team uses to create content in Umbraco need to be redesigned around how that content will be managed and reused in Sanity.

Compositions, Umbraco’s way of sharing property groups across multiple document types, and nested content both need to be translated too. In Sanity’s schema migration model, these become objects and references instead, giving Sanity its own way to handle reusable and nested structures.

It’s understandable to want to mirror document types one to one, but that’s rarely the best approach. This migration gives you a genuine opportunity to redesign the content model around how your team actually works, rather than simply recreating whatever structure Umbraco has accumulated over time. That plays well to Sanity, where schemas and editorial workflows can be shaped around the way content is actually created and reused. Getting that structure right during the migration can reduce unnecessary editing and rework later. It’s also important that any assumptions about how Umbraco document types behave hold across versions rather than reflecting one specific release, since estates built on different Umbraco versions can have meaningful structural differences that need to be accounted for during a full audit.


How Should Multilingual Umbraco Content Be Localized in Sanity?

Multilingual Umbraco content needs a clear localization strategy when moving to Sanity. Teams can use field-level localization when only certain fields need translating, or document-level localization when each language needs its own separate document. Whichever approach fits the content best, it should be built into the Sanity content model before the migration begins.

How Does Umbraco Rich Text Become Portable Text?

Umbraco rich text converts to Portable Text, Sanity’s structured text format. The complication is that “rich text” in Umbraco isn’t one consistent format you can convert in one go. For content teams, the goal is to preserve the formatting and embedded content they rely on without carrying unnecessary legacy markup into the new CMS.

Grid content, the Block List editor, and raw HTML fields are each structured differently and need their own conversion rules as a result. A field storing raw HTML needs HTML parsing logic. A Block List field, which is already semi-structured, needs a different mapping that preserves its existing structure rather than flattening it unnecessarily.

Before scripting any of this, take a proper inventory of the formats your site actually uses. A site built entirely with modern Block List editors has a meaningfully simpler conversion path than one carrying years of legacy Grid content alongside raw HTML fields nobody has touched since the original build. Knowing that upfront changes the real scope of the work, not just its theoretical complexity.

How Do You Extract Umbraco Content and Media?

The business benefit here is a controlled, repeatable cutover rather than a manual copy-paste job, so the migration date doesn’t turn into a scramble. There’s no one-click Umbraco-to-Sanity migration tool, so extraction typically runs through Umbraco’s own APIs or, for teams comfortable working directly with the database, a direct database query against the underlying content tables.

Umbraco Deploy is worth knowing about here too. It exports content and schema together and can convert legacy editors (Nested Content into Block List, for example) when that content is imported. 

From there, the process is fairly familiar: transform the extracted content into NDJSON, then import it with the Sanity CLI using dataset import. Validate the NDJSON file first with sanity documents validate –file, then test the import in a non-production dataset before touching your live one. Always test with a dry run before touching a live dataset. Media moves in its own separate pass, distinct from content extraction, because images and files need to go through Sanity’s asset pipeline rather than being bundled into the same NDJSON transform as text content.


How Should Migration IDs Be Mapped?

Keep a clear mapping between Umbraco IDs and Sanity document and asset IDs throughout the migration. This makes it easier to resolve references accurately, update internal links, troubleshoot any issues that arise, and safely rerun the migration if needed.


How Should the Migration Be Validated?

Once the content has been imported, validate the migration by checking document counts, fields, references, assets, URLs, and any missing content. Comparing these checks against both the source and migrated datasets helps you catch incomplete or incorrectly mapped content before the final cutover.

What Determines Migration Effort?

Effort here comes down to four things: 

  1. Tree depth.
  2. How much meaning a page’s position in that tree carries.
  3. The complexity of your rich text and embedded content.
  4. Media volume.

Timeline follows the same four factors. A shallow site with one rich text format can realistically move in weeks, while a deep tree carrying Grid, Block List, and raw HTML content stretches into months, regardless of how many pages either site has.

None of these are obvious from page count alone, which is exactly why counting pages is a poor way to estimate this kind of work.

Deeper trees tend to increase effort the most, and for good reason. Every level of nesting in the original Umbraco tree represents a modeling decision that needs to be made explicitly in Sanity, as covered earlier. A shallow, two-level site has far fewer of those decisions to work through than one with six or seven levels of nested pages, each carrying inherited settings that need an explicit new home.

Multiple rich text formats add to that effort. A site running Grid content, Block List, and raw HTML fields at the same time needs three separate conversion rules built and tested rather than one. Media volume matters too, although usually in a more linear way: more images and files means more assets to route through the pipeline, without introducing the same structural complexity as tree depth and format variety.

Platform licensing is a separate question from migration effort and worth costing per plan for your own setup, but it’s tree depth, format variety, and media volume that determine how much the migration itself takes.

What Happens to Umbraco URLs and Redirects?

Umbraco derives URLs directly from a page’s position in the content tree, so flattening that tree during migration changes URLs by default. For marketing teams, URL migration is primarily about protecting existing traffic and avoiding preventable disruption at launch.

That makes redirect mapping something to tackle during the migration itself, rather than a cleanup task for afterward. Leave redirects until launch, and you’re trying to reconstruct the old structure from memory, instead of working from the actual tree while you still have full access to it.

The practical work involves mapping 301 redirects from every old Umbraco path to wherever that content lives in the new structure. Although getting this mapping right is essential groundwork, it doesn’t guarantee how search rankings or traffic will respond once the new site is live.


What SEO Content Should Be Migrated?

An SEO migration needs to account for more than URLs and redirects. Existing SEO titles, meta descriptions, canonical URLs, robots settings, Open Graph data, and structured data should all be identified and migrated where applicable. This helps preserve the search and social metadata already associated with the site and its content.


Internal links within rich text and content blocks may still reference old Umbraco URLs or the previous content structure. These should be identified as part of the migration and updated to point to the appropriate Sanity URLs or document references, helping prevent broken links and ensuring users and search engines are directed to the right content.

What Changes for Editors and the Frontend?

Editors move from the Umbraco back office to Sanity Studio – a real-time, collaborative workspace where several people can edit the same document at once, so the change is an upgrade in editorial speed, not just a new tool.

The frontend changes just as substantially. Instead of Razor views rendering server-side, the site runs on a headless framework like Next.js or Astro, pulling content through Sanity’s API rather than rendering directly from the CMS.

Multidots builds these headless frontends as an official Sanity partner, wiring Next.js or Astro to the Sanity API.

Who Should Handle Your Umbraco to Sanity Migration?

There are three realistic routes here: in-house scripting, community tooling, or a specialist migration agency. The right one depends on your particular Umbraco estate.

In-house scripting or community tooling can work well for shallow trees and teams with strong existing engineering skills. Even then, rich text conversion and media handling still require bespoke work, since neither challenge disappears simply because your team chooses to build the migration itself rather than bring in outside help.

Umbraco Heartcore is Umbraco’s managed headless SaaS: it retains the familiar Umbraco backoffice and content-tree model while exposing content through APIs. By preserving this structure, it offers a different approach from Sanity’s flexible, schema-driven content modeling rather than simply being a lighter version of the same transition.

Sanity involves a more fundamental change. Rather than carrying the Umbraco content tree forward, content is restructured into reusable, independently queryable documents, which can create a more flexible foundation but also make the migration itself more involved.

For most teams, a headless Sanity build is the stronger long-term fit, while a specialist agency such as Multidots can meaningfully reduce the risks involved, particularly with deep trees or sites that simply can’t afford to go dark during the transition. That becomes increasingly valuable as the tree gets deeper and the consequences of getting URL and redirect mapping wrong get higher.

Plan Your Umbraco to Sanity Migration with Multidots

Sanity is the more flexible, composable destination, and the migration pays off when it’s planned and handled properly rather than pieced together under pressure.

Multidots migrates enterprise estates to Sanity as an official Sanity partner, handling the tree modeling, content model redesign, and realistic timeline upfront, backed by experience from more than 1,000 completed migrations.

Bring your tree and content model to our team to scope exactly what your migration will involve.

Nishit Langaliya
Author Nishit Langaliya

Nishit Langaliya is a Project Manager and Sanity Certified Developer with 10+ years of experience supporting the delivery of modern content platforms. He works closely with engineering and business teams to manage scope, execution, and delivery alignment. His practical understanding of both traditional and headless CMS workflows enables clients to make informed decisions and ensures that platforms are implemented in a way that supports long-term business needs.