Moving a Webflow site to Astro is two exports, the code and the CMS, and then a rebuild of what neither one includes. Astro turns your site into fast, plain HTML, keeps your CMS content as files in your project, and runs on almost any host. The risky part isn't the design. It's keeping the URLs, metadata and redirects that hold your search rankings. This guide covers what Webflow gives you, what to preserve, and each step in order. Sherpa will also do the whole move for free, covered at the end.
What Webflow's export gives you
What comes out of Webflow
- HTML, CSS and JavaScript for every static page
- Images from the Assets panel
- CMS items, one CSV per collection
- Class names and styles, as built
- CMS pages, which export blank
- CMS images, which are links you download
- Form handling
- Site search and password pages
- Every language after the first
- 301 redirects from site settings
Webflow's code export is only available on a paid Workspace plan, not a Site plan. You get a folder of .html files, along with your CSS, JavaScript and images. According to Webflow's export docs, CMS content is not included. Collection lists will show their empty state, and Collection pages will be blank. Form handling, site search, password protection, Ecommerce, user accounts, code components and any language other than the primary one are also not included.
The CMS content is exported separately, as a CSV for each collection. Rich text is exported as HTML, reference fields as plain text, and images as links to Webflow's servers. When your site is gone, those links won't work, so Webflow recommends downloading them before you go.
Will a migration hurt your SEO?
Not if you migrate it correctly. There are a lot of rules, and this section covers them in order of importance. The design is the easy part of leaving Webflow. What a move can quietly lose is everything search engines and AI assistants already know about your site. Rankings are attached to your URLs and to the metadata on each page. Lose either, and traffic can drop for months even when the new site looks identical. So before you rebuild a single page, write down what has to survive. The graphic below is that list.
- 1URLsEvery page stays at the same address
/pricing stays /pricing - 2RedirectsA 301 for anything that moves, plus the old ones
/plans 301 /pricing - 3Titles and descriptionsCopied word for word, page by page
<title> and meta description - 4Social imagesWhat shows when a link is shared
og:image - 5Canonical tagsEach page points at itself
rel="canonical" - 6Structured dataArticle, FAQ and Organization markup
"@type": "FAQPage" - 7Sitemap and robots.txtRebuilt, then resubmitted to Google
/sitemap.xml - 8Image alt textTravels with every image
alt="Team dashboard" - 9Analytics and pixelsEvery script back on the pages that had it
GA4, Meta pixel, HubSpot
Done right, a move to Astro usually helps SEO. Astro sends plain HTML with very little JavaScript, so pages load faster, and page speed is one of the things Google looks at. Lindy’s mobile Lighthouse score went from around 50 to over 90 the night it left Webflow. A month later every core SEO metric was the same or better, and some collections were getting 50% more organic traffic. Bolto’s Lighthouse scores went up more than 20 points, and three weeks in every SEO metric was holding steady. Pillar gained 21 points when it left Webflow.
URLs and redirects
The most important thing is to keep every page at the same URL it has today. A page that keeps its address needs no redirect and keeps everything it has earned. If you do need to change a URL, use a permanent 301 redirect from the old URL. Google's site move guide says that 301 and other permanent redirects don't cause a loss in PageRank. Google's John Mueller says to keep redirects for at least a year.
Don't forget to include any redirects you already have in Webflow's site settings. You may have links from years ago that point to them. Webflow Collection pages have a URL prefix like /blog/ or /customers/. Use the same prefixes in your Astro src/pages folders so every item keeps its URL.
Titles, descriptions and social images
Every page has a title tag and a meta description, which are the two lines people see in Google. They're set in Webflow's page settings, and for Collection pages they're built from CMS fields. Copy them over word for word, and map the CMS fields into the template for Collection pages since they're in the CSV. Do the same for the Open Graph title, description and image, which is what shows when someone shares a link in Slack, LinkedIn or iMessage. In Astro, all of this lives in one head component that every page uses.
---
const { title, description, image, canonical = Astro.url.href } = Astro.props;
---
<title>{title}</title>
<meta name="description" content={description} />
<link rel="canonical" href={canonical} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />Canonicals, structured data, sitemap and robots.txt
Webflow adds a canonical tag to every page and generates a sitemap for you. You'll need to do both yourself after you migrate. Make sure the canonical tag on each page points to itself, and run npx astro add sitemap and set the site option in astro.config to have Astro generate a sitemap-index.xml on every build.
Bring over your robots.txt file, and submit your sitemap in Google Search Console when your new site is live. If you had structured data on your old site, like Article, FAQ or Organization JSON-LD, bring those script tags over to the relevant templates. Structured data is how you get rich results, and it helps AI assistants understand your page.
Alt text, analytics and tracking
Image alt text is easy to lose when moving a site, because it's on the image itself, not in the page settings. Bring it over with your images.
Make a list of every script on the old site (Google Analytics, Tag Manager, ad pixels, chat, HubSpot tracking), and add each one back to the pages that had it. Keep the Search Console verification tag or file in place, or the property stops being verified after the switch. Google's site move guide calls this out. Finally, send a test conversion after launch and find it in the analytics tool before trusting the numbers.
How to do it, step by step
1. Take stock of the site
Before you export anything, take stock of everything your site does. It's easier to check things off than to notice something is missing after the switch.
- Every URL, from yoursite.com/sitemap.xml
- Every CMS collection and how many items each has
- Every form and where its submissions go
- Custom code in site settings and on individual pages
- Embeds such as schedulers, videos and job boards
- Interactions and animations
- The 301 redirects in Webflow's site settings
2. Export the code and the CMS
Export the code from the Designer and each collection as a CSV from the CMS panel. Download all images from the CMS and add them to your project. For large collections, the same content is available as JSON from Webflow's Data API, which is easier to work with in scripts. Don't delete the JavaScript files Webflow exports. Your site's interactions, navbars, sliders and tabs rely on them.
3. Set up Astro and move the pages
Create a new Astro project and copy the CSS, JavaScript and images you exported into the public folder. Then create a page in src/pages for each HTML page you exported. index.html becomes index.astro and about.html becomes about.astro. This keeps every page at the same address it was on Webflow.
Start by moving the nav and footer into components, because they're repeated on every page. That way, you only need to make changes in one place. Leave the class names from Webflow for now. With webflow.css and your site's CSS loaded, the pages will look the same. Then you can clean up the code one section at a time.
4. Rebuild the CMS as content collections
Astro stores CMS content as files in the project, as described in its content collections docs. Each row in your CSV becomes its own JSON file. A few lines of Python will do the conversion.
import csv, json, pathlib
out = pathlib.Path("src/data/blog")
out.mkdir(parents=True, exist_ok=True)
with open("blog.csv", newline="", encoding="utf-8") as f:
for row in csv.DictReader(f):
(out / f"{row['Slug']}.json").write_text(json.dumps(row, indent=2))Then tell Astro where the files live, in src/content.config.ts.
import { defineCollection } from 'astro:content';
import { glob } from 'astro/loaders';
const blog = defineCollection({
loader: glob({ pattern: '**/*.json', base: './src/data/blog' }),
});
export const collections = { blog };Make a page template for each collection, like src/pages/blog/[slug].astro. Use getCollection to create a page for each entry. The HTML from the rich text fields in Webflow can be dropped right into the template. Make sure the images are pointing to the files you downloaded in step 2. The CSV also includes the slug and SEO fields for each item. Use the slug as the URL so nothing changes.
5. Reconnect forms and add redirects
Webflow handled form submissions for you, and that stops when you leave. Export your old submissions first. If your team uses HubSpot, swap in its embed and new submissions will go straight there. Otherwise use a form service or your host's form handling.
Pages that kept their address don't need a redirect. For anything that moved, add one in astro.config like this, following Astro's redirect docs.
import { defineConfig } from 'astro/config';
export default defineConfig({
site: 'https://www.yoursite.com',
redirects: {
'/old-page': '/new-page',
'/blog/[...slug]': '/articles/[...slug]',
},
});If you're using a host adapter, Astro will send real 301s. A plain static build writes a small page that redirects in the browser, with no 301 status. Set redirects at your host in that case.
6. Check everything, then switch
Open every URL from your old sitemap on the new site. Each one should either load or redirect, and this is the single most valuable check you can do. Compare the page titles and descriptions between the old site and the new site for your top 20 pages by traffic. Count your pages and CMS items on both sides, and submit every form to find the test where it should land. Run Lighthouse on the homepage and the heaviest pages.
When all of that passes, point your domain's DNS at the new host. Keep your Webflow plan for a few weeks in case you need to fetch something, then cancel it. Watch your Search Console's Pages report for 404s for the first month.
Clean up the code so agents can work with it
A visual editor writes code for itself, not for whoever edits the site next. Webflow's export comes with class names like div-block-27, styles repeated across pages and the same nav pasted into every file. It works in a browser, and an AI agent has a hard time working in it.
Rename classes and styles to say what they are, like pricing-card. Pull anything repeated into a component, so the nav, the footer and each card live in one file. Move colors, fonts and spacing into shared variables. Then Claude or ChatGPT can change one component and it updates everywhere, with no hunting through copies.
Or have Sherpa do the move for free
Do it yourself6 steps, all yours
- Take stock
- Export code and CMS
- Move pages
- Rebuild CMS
- Forms and redirects
- Check and switch
Sherpa does itFree
- Send your URL
- Preview in about 24 hours
- Review it together
- Switch DNS when ready
Sherpa has a free migration tool that does everything above, and you can run it yourself. You see the whole migration for free. Sign up, enter the URL of the Webflow site and Sherpa rebuilds it as an Astro site with clean class names and real components, from what's public today. No export, no login to share. A preview of the whole site is ready in as little as 24 hours. Pages keep their URLs, anything that moves is redirected, and titles, descriptions, social images, CMS content, forms and scripts are carried across. Sherpa's team walks through it with you against a checklist.
Lindy moved more than 2,000 pages off Webflow in under 24 hours, CMS collections, forms and SEO metadata included, and its mobile Lighthouse score went from 50 to over 90. The Webflow site stays live the whole time. The switch is a DNS change you make when the preview has passed your review.
After the move you get Astro code that you own forever, synced to GitHub and ready to take anywhere. Sherpa hosts the site and gives Claude or ChatGPT 150+ tools over MCP to run it. Anyone on your team can ask for a change, get a preview link, and a person presses publish. And Sherpa keeps watching for the things this guide is about. On the Growth plan its proactive improvements review the site every week, SEO included, and hand over fixes that take one click to ship. Clone your site to see it on Sherpa, or read how migration works.




