Documentation · updated

How import files for other platforms are produced

Surge Migrate moves a website from any CMS to any CMS, and Adobe is its deepest area. The same converted pages are also written as import files for WordPress, Drupal, Contentful, Sitecore, Optimizely, Contentstack or Sanity, each in the format that system's own import tool reads. WordPress and Drupal were proven by real imports on demo sites, and Contentful by a real import of five made-up sample pages into an empty test space. The other four were checked against the format only and have not been imported.

Who does what

StepAutomaticChecked by a personHand work
Read the converted pagesOne walk over each document gives a neutral model: pages, sections, items and blocks.What the model could not carry is listed per page.Nothing.
Write the import filesA writer per target system, plus a README, a per-page report, an asset list and a redirect list.Each writer checks its own output against the target's format.Nothing.
Import and reviewThe target system's own import tool loads the files.Content arrives as drafts or unpublished for a person to review. Sanity is the exception: its import publishes, so it goes into a test dataset first.Design, menus, forms, redirects as installed rules, publishing.

In plain words

Once a page is a neutral document, writing it for another system is a contained job. Each target has a writer that produces the file that system already knows how to import. Nothing is pushed into your system by us: you, or we with you, run the system's standard import tool on the files.

The neutral model

The converted document is read once into plain data: a page with its path, parent, title and description, then its sections, each a list of items. An item is a heading, a block of text, an image, a button, an embed, a video or a block with its rows and cells. An address counts as an article when it has a folder named blog, news, articles, posts, stories or press with a page name after it, or a year and month in it. Everything else is a page.

What is written for each system

TargetWhat is writtenLoaded withProof
WordPressOne import file in WordPress's own export format, with pages and their hierarchy, posts for articles, and an attachment per image carrying the image's original address. Page content is block-editor markup, so pages arrive as editable blocks.The standard WordPress Importer.Imported for real.
DrupalA small module with no PHP in it: CSV files with the content and migration definitions for Drupal's own Migrate tools. Basic pages, articles, path aliases, images as files.Drush with the Migrate Source CSV module.Imported for real.
ContentfulOne JSON file in the shape Contentful's export tool writes: content types, entries with rich text, assets and locales.Contentful's own import tool.Imported for real.
Sitecore XM CloudOne YAML file per item in Sitecore Content Serialization format, with a module file: pages under the site's Home item, a data folder per page, and the layout built from the Title, RichText, Image, Promo, Container and Column Splitter renderings of Headless SXA.The Sitecore CLI (dotnet sitecore ser push).Format checked against the vendor's documentation; not yet imported into a live Sitecore instance.
Optimizely CMS (SaaS)The request bodies for Optimizely's REST API as JSON files, in load order: content types, images, then pages with their sections written inside each page.A small Node script in the download, run on your own computer with your own API key. Everything arrives as a draft.Format checked against the vendor's documentation; not yet imported into a live Optimizely instance.
ContentstackA folder in the layout the Contentstack CLI's own export writes: one content type with modular blocks, entries with text in the JSON Rich Text Editor format, assets and the language.The Contentstack CLI (csdx cm:stacks:import).Format checked against the vendor's documentation; not yet imported into a live Contentstack instance.
SanityOne file with a JSON document per line: a document per page with text as Portable Text and images by the address of the original file. Schema type files for a Sanity Studio come with it.Sanity's own dataset import command.Format checked against the vendor's documentation; not yet imported into a live Sanity instance.

Every output comes with a README of the import steps, a per-page conversion report, an asset list and a list of old and new addresses for redirects. Content arrives as drafts or unpublished, except in Sanity, where the import tool creates published documents.

Checked against the format, not imported

Four of the seven outputs have never been loaded into the system they are written for: Sitecore, Optimizely, Contentstack and Sanity. Each needs an account, an environment or a licence, and we have not set one up for tests. What was done instead, on 13 November 2026: each format was compared with what the vendor publishes, and each output passes a checker of our own that reads every file back.

  • Sitecore: compared with serialized items in Sitecore's public demo repositories, byte for byte for one text item. Rendering, template and field IDs were read from those repositories. Four values of your own site (two IDs and two names) are written as named placeholders.
  • Optimizely: compared with the REST API pages of Optimizely's documentation for CMS (SaaS). The sending script was run against a local stand-in server that records the calls, not against Optimizely.
  • Contentstack: compared with the import code of the Contentstack CLI, version 2.0.2.
  • Sanity: compared with Sanity's documentation and the source of its import tool.
  • For all four the first real import may show something the documentation does not. Load the files into an empty test environment first.

Real imports on demo sites and sample pages

Each row is loaded with the target system's standard import tool. For WordPress and Drupal each row is a fresh copy of the system on our own machine: the demo-site rows on 13 November 2026, the sample-page rows on 16 November 2026. The Contentful row is a new, empty test space on Contentful's free plan, on 16 November 2026.

FromToWhat arrived
Drupal demo (Umami)WordPress 7.1.46 pages, 1 post, 20 of 20 images. 0 importer failures. 393 blocks, none invalid in the block editor.
WordPress demo (Twenty Twenty-Four)WordPress 7.1.49 pages, 18 of 18 images. 0 importer failures. 297 blocks, none invalid in the block editor.
WordPress demo (Twenty Twenty-Four)Drupal 11.4.129 pages, 18 of 18 files. 0 failed, 0 messages.
Drupal demo (Umami)Drupal 11.4.126 pages, 1 article with its image, 20 of 20 files. 0 failed, 0 messages.
Five made-up sample pages (16 November 2026)WordPress 7.1.45 pages (one an empty parent, kept as a draft), 1 post, 12 of 12 images. 0 importer failures. 96 of 96 blocks read by WordPress's own block parser.
Five made-up sample pages (16 November 2026)Drupal 11.4.124 pages, 1 article with its image, 12 of 12 files. 0 failed, 0 messages.
Five made-up sample pages (16 November 2026)Contentful (contentful-import 10.6.0)9 content types (published), 39 entries and 12 of 12 images (as drafts). 39 of 39 entries read back the same as the file, 49 of 49 links between entries resolve.

Demo sites, not clients, and only the versions named. In the Drupal to WordPress run a second import of the same file added no pages, posts or images, and in the WordPress to Drupal run a second run created nothing. In the WordPress sample-page run of 16 November 2026 a second import added no pages either, but it added each custom field again.

What the import files leave out

TargetLeft out or changed
Every targetDesign, header, navigation and footer, forms, shared fragments, tags, menus, users and comments. Redirects come as a list, not as installed rules.
WordPressTabs, carousels and unknown blocks become headings and plain blocks in a group, and are reported. Articles become posts and lose their folder in the address.
DrupalThe body is one HTML field, so heroes, cards, columns and accordions keep their content and order but not their layout. Images are files, not media entities. Embeds and video become links.
ContentfulUnknown blocks become rich text. Entries and assets arrive as drafts. Linked images lose their link.
SitecoreFour values of your own site (the Home item ID, the Page template ID, the tenant name and the site name) must be filled in before a push. Image fields are empty until the files are in the media library; a list says which item wants which file. Accordions, tabs, carousels and unknown blocks become rich text, images and promos in the old order. Videos and embeds become links. Description, browser title and tags are listed beside the files, not set.
OptimizelySections are written inside each page, not as shared blocks. The content types have no templates, so the site that shows them still has to be built. Links between pages are the new paths, not Optimizely's own references. The start page is set by hand. The files do not fit CMS 12 as they are.
ContentstackQuote, table and unknown blocks become rich text. Entries and assets arrive unpublished. Image files are fetched by a script you run before the import. One language.
SanityUnknown blocks become plain content in the section. Documents arrive published, so import into a test dataset first. Images are fetched from the old site during the import. The style of a block (its variants) is left out.

One thing the Drupal run taught us: on Drupal 11.4 the Standard install has no content types until you add them, and without them pages arrive with a title and no body. The README says to check that first.

One thing the Contentful run taught us: its first try stopped before importing anything, because Contentful's import library reads an id on every locale and our file's locale had none. The writer now gives the locale one, and our own check reports a locale without it. For that run each image address was pointed at a public stand-in image on surgemigrate.com, because the made-up site has no images and Contentful fetches each one from its address.

Questions

Is this as far along as the moves to Adobe?

No. Moves to Adobe are our deepest area, with a free scan, a free trial on your own pages and worked examples. Of these writers, WordPress and Drupal are proven on demo sites only, Contentful on made-up sample pages only, and the other four have not been imported at all. The other-platforms page says what you can run yourself today.

Why Drupal's Migrate tools and not an API script?

Migrations are Drupal's standard way to load content. They are tracked, can be rolled back and run again, they download files and set path aliases, and a person can open the CSV in a spreadsheet and check it.

Can you write files for a system not listed?

The pages are held in one neutral model, so a writer for another target is a contained piece of work. Tell us which system you need. No price is published for these runs.

Where this comes from

Each statement on this page describes code that exists or repeats a page of this site:

  • The neutral model (src/targets/model.ts) and what the writers share (src/targets/shared.ts)
  • The writers (src/targets/wordpress, drupal, contentful, sitecore, optimizely, contentstack and sanity)
  • The recorded imports

Surge Migrate is not affiliated with Adobe or with any other vendor named in this documentation. No prices are listed here: see the pricing page and the self-serve prices page, or ask.

Next: How we check a migration: parity checks →