How-to Guides / How-to Guide

How to Migrate from Webflow to Custom Code

When a Webflow site has outgrown its plan, and how to move it to Astro or Next.js with a headless CMS without losing URLs or rankings.

A step-by-step guide to moving a Webflow marketing site to custom code, covering the CMS export, code export limits, redirects, localisation and parity checks.

Audience

  • Founders
  • CMO
  • Head of Marketing
  • CTO

Topics

  • Webflow to Code
  • Website Migration
  • Headless CMS
  • Astro
  • Next.js
  • SEO Continuity

How to Migrate from Webflow to Custom Code

The short answer: export each Webflow CMS collection as CSV, rebuild the templates as components in Astro or Next.js, import the content into a headless CMS or Markdown by script, keep every slug, copy every 301 redirect, and compare the new site with the old one URL by URL before switching DNS. For a B2B marketing site this usually takes 2 to 4 weeks.

When to leave Webflow

Webflow is a mature visual builder with a solid CMS. Teams usually move to code when:

  • Plan costs grow with the site. Localisation, extra CMS items and editor seats add up on large sites.
  • The CMS model gets in the way. Item limits, reference limits and collections that can’t express the content the team needs.
  • The site needs logic. Personalisation, data from your own systems, calculators or gated content that need a server.
  • Performance and SEO need more control. Custom JSON-LD per page, hreflang, response headers and llms.txt.

If your team edits layouts visually every week and the site is small, Webflow may still be the better fit.

Step 1: Inventory

Crawl the site and save, for each URL: status code, title, meta description, canonical, H1, Open Graph tags and structured data. List every CMS collection with its fields and item count, every form, every embed and custom code block, and every redirect in the hosting settings. Export 12 months of Search Console data.

Step 2: Export content and assets

  • Export each CMS collection as CSV from the collection settings.
  • Download images and files referenced in the content and self-host them; links to Webflow’s asset CDN can stop working once the site is unpublished.
  • Use the code export (on paid workspace plans) only as a reference for markup and styles. It does not include CMS content.

Step 3: Choose the stack and content model

  • Astro for content-heavy marketing sites that should load fast and ship little JavaScript.
  • Next.js when the site shares components or data with a React product app.

Map Webflow collections to content types in the new CMS. Turn multi-reference fields into references, and fix collections that duplicate each other.

Step 4: Rebuild templates

Rebuild each template as components. Move Webflow’s classes and variables into design tokens (CSS variables for color, type and spacing). Interactions built in Webflow’s timeline usually become CSS transitions plus small scripts.

Step 5: Localisation

If the Webflow site uses localisation, decide the URL pattern in the new setup (for example /de/ folders), keep the same paths, and output hreflang tags for every language pair, including x-default.

Step 6: Redirects and parity

Copy every 301 from Webflow into the new host’s redirect file and add new ones for any changed URL. Crawl the staging site (set to noindex) and compare it with the baseline: status, title, meta, canonical, H1, schema and hreflang. Test forms, CRM connections and analytics.

Step 7: Launch and monitor

Switch DNS, submit the sitemap and check Search Console daily for two weeks for new 404s and indexing errors.

How Allsite can help

Allsite is a design and development studio for marketing websites. We move Webflow sites to custom code (or to Framer, when a visual editor fits the team better) at a fixed price, typically in 2 to 4 weeks. See the full website migration process, website migration or request a project.

Frequently asked questions

Can I export my Webflow site as code?

Webflow's code export gives static HTML, CSS and JavaScript, but it does not include CMS content or dynamic pages. Export each CMS collection as CSV and rebuild the templates as components in the new framework.

Why move from Webflow to custom code?

Common reasons are rising plan and localisation costs, CMS item and collection limits, page speed, integrations that need a server, and wanting full control over schema, hreflang and llms.txt.

How long does a Webflow to custom code migration take?

For a typical B2B marketing site, 2 to 4 weeks: inventory and setup in week 1, templates, content import and redirects in weeks 2 to 3, then launch and monitoring.

Which headless CMS should replace the Webflow CMS?

Markdown files in the repository for small teams; Sanity, Contentful or Storyblok when several editors publish every week or content feeds more than one site.

Work with us

Need a website that explains your product this clearly?

Tell us where you are and what you need. You get a reply within one business day and a proposal within 24 hours of our call.

Notes on websites, brand and AI search

One email a month with what we learn building sites for tech companies. No fluff, unsubscribe anytime.