Squarespace to Code: How to Migrate to Astro, Next.js, or Payload CMS
Squarespace's export is a WordPress-oriented XML that drops store pages, portfolios, every blog after the first, custom CSS and all style settings. Squarespace also states you cannot import that file into another Squarespace site. Here is what survives.
MigrateLab Team
Migration Experts

The export is the whole argument
Most platform migration guides open with a case for leaving. This one does not need to, because Squarespace documents the case itself.
Squarespace offers one export path: Settings, then Advanced, then Import / Export. It produces a single WordPress-oriented XML file. Per Squarespace's own support documentation, that file contains layout pages, one blog page including its posts and up to 1,000 comments per post, text blocks, image blocks, the text from embed and Instagram blocks, and gallery pages. That list is exhaustive.
Everything else is named as excluded: album, cover, index, info, calendar, portfolio and store pages; page-specific headers, footers and sidebars; every blog page after the first; dropdowns; audio, video and product blocks; drafts; style settings; and custom CSS.
Read those two lists next to each other and the shape of the problem is clear. A portfolio site exports without its portfolio. An events business exports without its calendar. A store exports without its store pages. Every site exports without its design, because style settings and custom CSS are both on the exclusion list, and page-specific headers, footers and sidebars go with them. If you run more than one blog, one of them comes with you and the rest do not.
And then the fact that settles it. Squarespace states plainly that it is not possible to export content from one Squarespace site and import it into another.
That sentence is worth more than any argument we could make. The export file cannot round-trip inside the platform that produced it. It is not a backup, and it is not a portability guarantee. It is a partial WordPress importer, aimed at one specific destination, that drops most page types on the way.
What this means before you touch a destination
The practical consequence is that a Squarespace migration is a re-extraction project first and a rebuild project second. The XML is a convenience for your written text. The live rendered site is the actual source of truth.
That reverses the usual order of operations. Do not export and then plan. Crawl the site, list every page and page type, and check that list against what the export carries. The gap between the two is your real scope, and on a portfolio or commerce site the gap is most of the site.
It also puts a deadline on the work. Assets live on Squarespace's CDN, and those URLs stop being dependable once the subscription lapses. Download everything while the site is still up.
Products are a separate, also lossy, export
If you ran Squarespace Commerce, products do not travel in the XML. Store pages are on the exclusion list. Products have their own CSV export instead, capped at 10,000 per run, and Squarespace states that CSV omits additional product info, reviews, featured images, alt text and variant images.
So a store migration reconstructs product imagery, alt text, variant images and long-form descriptions from the live site, then rebuilds checkout on a dedicated service such as Stripe or a headless commerce platform. This is reliably the most expensive single piece of a Squarespace migration, and it is expensive for a documented reason rather than a vague one.
One cost note while you are still deciding. Squarespace charges a 2% commerce transaction fee on Basic, and 0% on Core, Plus and Advanced. If you are on Basic and selling, that fee is part of the comparison.
What Squarespace costs to stay on
As of July 2026, Squarespace plans start from $19 per month on annual billing, following a US price increase in the spring of 2026. Plenty of secondary sources still quote the older $16 entry price, and Squarespace also runs pricing tests, so check your own account and your own region rather than trusting a table in any article, including this one.
The subscription is rarely the deciding number anyway. It is a normal price for a hosted product. What the subscription buys you is a site whose export cannot be imported into another Squarespace site, which is the cost that only shows up on the day you want to leave.
The AI access gap is real here, specifically
We are cautious about the claim that closed platforms cannot be edited by AI, because for most of them it is now false. Webflow ships an official MCP server. Wix ships one. The WordPress core AI team ships an MCP adapter, with an Abilities API landing in Core 6.9.
Squarespace ships none as of July 2026. Third-party MCP servers built on Squarespace's public APIs do exist, so this is a gap in first-party support and coverage rather than a total blackout. Worth adding, since the naming invites it: developer.squareup.com belongs to Square, a different company. It is not a Squarespace developer platform.
The deeper difference is not the connector anyway, it is the artifact. Against a repo, an agent reads the entire site, changes it, runs the build to check its own work, and a bad change is one git revert away. Against a hosted builder API, it edits fields it can reach, with no build to verify against and no version history to roll back.
Choosing a destination
The destination matters less for price than people expect and more for fit.
Astro, for content sites
If your Squarespace site is a marketing site, blog or portfolio, Astro is usually the right answer. It is built for content-driven sites, ships zero JavaScript by default, and models each post as a Markdown or MDX file in a content collection. Images you host yourself get optimized at build time. For the majority of Squarespace sites this is the simplest landing spot.
Next.js, when the site is really an app
Choose Next.js when the site does more than present content: gated areas, dashboards, search, serious commerce, genuinely interactive features. Pages become React components, and a data layer backs the dynamic parts. It ships more JavaScript than Astro, which is the correct trade only when you need the interactivity.
Payload CMS, when editors need an admin UI
If non-technical people edit content daily, pair the frontend with Payload. Pages and collection items map to Payload Collections with typed fields, references and rich text, and editors get drafts, autosave and live preview. It is TypeScript end to end, and schema, content and frontend live in one repo.
Two things a technical buyer should know before choosing it. Payload was acquired by Figma in June 2025. And Payload Cloud has paused new deployments, so there is no first-party hosting product to sign up for. The software is MIT licensed and free. Hosting and a database are a separate bill, realistically $8 to $30 per month for a client-grade database.
What the running costs look like afterwards
Expect $0 to $20 per month on a static-first stack with Cloudflare Pages, or roughly $20 to $50 per month on Vercel with a managed database.
One warning, because it catches agencies and freelancers regularly. Vercel's Hobby tier is non-commercial only, and Vercel's own definition of commercial usage covers a paid employee or consultant writing the code, and receiving payment to create, update or host the site. A client site built on Hobby violates the terms. Vercel Pro at $20 per user per month is the floor for client work.
When you should stay on Squarespace
If your site is a handful of pages, you have no developer relationship, nobody is asking for anything the templates cannot do, and you are not selling at volume, stay. Squarespace is a well-built product and the export limits only bite on the day you leave. If that day is not visible from here, the migration is a cost with no return.
The trigger to move is usually one of four things. You need something the block system will not do. Performance is holding back a channel you can measure. You want the site in a repo so it can be changed by developers and agents rather than only through the editor. Or you have realised that the longer the site grows inside Squarespace, the more of it lives in page types the export refuses to carry.
The playbook
Crawl the live site and inventory every page type before exporting anything. Run the export, then diff it against the inventory so the omissions are on paper. Re-extract everything the XML drops, prioritising portfolio, calendar, index, album and store pages, since those are excluded wholesale. Export products to CSV if you sell, and reconstruct the imagery, alt text and variant images the CSV omits. Download every asset off the Squarespace CDN while the subscription is live. Rebuild content and design in your destination. Then map every old URL to its new path with 301 redirects and verify that map before cutting DNS.
The redirect map is the one step where a mistake is expensive and irreversible in the short term. Everything else can be fixed after launch.
Where to go next
If your site is a content or marketing site, read why Astro is the best framework for marketing websites, then the SEO migration survival guide. If non-technical editors must own content, the Payload playbook in our Webflow guide applies almost directly, since the destination work is the same regardless of what you are leaving.
If you are not sure how much of your site the export will actually carry, that is what a free migration review is for. We look at the real site, list the page types the XML will drop, and tell you honestly whether Astro, Next.js or Payload is the right landing spot.
$5K-$25K
Typical Migration Cost
For a 50 to 100 page site, roughly the same regardless of destination
3-7 weeks
Typical Timeline
Re-extraction, design rebuild, asset re-hosting, and SEO-safe redirects
MIT
Payload's License
The software is free. Hosting and a database are a separate bill, roughly $8 to $30 a month
1 blog
What the Export Carries
Only the first blog page. Store, portfolio, album, index, info and calendar pages are excluded
| Feature | Astro | Next.js vs Payload CMS |
|---|---|---|
| Best for | Content sites, blogs, portfolios | Apps (Next.js) or editor-driven content (Payload) |
| JavaScript shipped | Zero by default | More (Next.js); admin UI overhead (Payload) |
| Blog content model | Markdown / MDX collections | React + data layer (Next.js); Collections (Payload) |
| Admin UI for non-tech editors | Needs a paired CMS | Payload ships a full admin UI |
| Dynamic and interactive features | Limited by design | Next.js handles app-like features |
| Hosting cost | Static, Cloudflare Pages from $0 | $20-$50/mo on Vercel with a managed database |
| AI-editable code you own | Yes (Git repo) | Yes for both (Git repos you own) |
| Cheapest target for a typical Squarespace site | Usually yes | Only if you need apps or an editor UI |
Squarespace states you cannot export from one Squarespace site and import it into another. The XML also omits store, portfolio, album, index, info and calendar pages, every blog after the first, style settings and custom CSS. Download every asset and re-extract the missing pages before your subscription lapses, because the CDN URLs stop being reliable once the site is gone.
Leaving Squarespace for code: pros and cons
Pros
- +Content, schema and design in a Git repo you own, with real version control and staging
- +AI-editable by agents against the whole artifact, with a build to verify changes and git revert to undo them
- +Astro ships zero JavaScript by default, and self-hosted images are optimized at build time
- +No page-type ceiling, no block limitations, and no export that refuses to carry half your site
- +Running cost of $0 to $20 a month on Cloudflare Pages, or roughly $20 to $50 on Vercel with a database
Cons
- -The export carries text only, so portfolio, calendar, album, index and store pages are re-extracted by hand
- -Design and layout are rebuilt rather than ported, since style settings and custom CSS are excluded
- -Commerce is the most expensive piece: the product CSV drops reviews, featured images, alt text and variant images
- -You own hosting, backups and updates, and Payload Cloud has paused new deployments so you self-host
- -It is a real project: 3 to 7 weeks and $5,000 to $25,000 for a 50 to 100 page site
How to migrate from Squarespace to code
Inventory the live site, not just the dashboard
Crawl every page and list what exists: pages, blog posts, galleries, forms, products, custom code injections, and every external integration. This is your source of truth, because the export will not show you what it is about to drop.
Tip: Use a crawler to capture the full URL list now. You will need it later to build the redirect map.
Export the XML, then treat it as a draft
Run Settings, Advanced, Import / Export to get the WordPress-oriented XML. It carries layout pages, one blog page, text and image blocks, text from embed and Instagram blocks, and gallery pages. Everything else, including store, portfolio, album, index, info and calendar pages, is re-extracted from the live site.
Tip: If you run multiple blogs, only the first is in the file. Squarespace also states the export cannot be imported into another Squarespace site.
Re-host every asset off the Squarespace CDN
Download all images, files, and media and store them in your new repo or asset host. Squarespace CDN URLs become unreliable once the subscription lapses, so this is a hard deadline, not an optional cleanup step.
Tip: Astro and Next.js optimize locally hosted images at build time, which is a free performance win over Squarespace's served images.
Rebuild content and design in your destination
Convert posts to Markdown or MDX in Astro, React pages in Next.js, or Collections in Payload. Rebuild the layouts as clean components, since style settings and custom CSS do not export, and replace built-in features such as forms and commerce with dedicated services.
Tip: Pick Astro for content sites, Next.js for app-like sites, and pair with Payload when non-technical editors need an admin UI.
Map redirects, verify, and launch
Map every old Squarespace URL to its new path with 301 redirects, preserve title tags and meta descriptions, submit a fresh sitemap, and only then cut DNS. Keep the Squarespace site live for a short overlap so you can compare pages side by side.
Tip: Skipping redirects is the single most common way a migration tanks rankings. Never cut DNS without the redirect map verified.
1---2// Squarespace blog post -> Astro content collection3// src/content/config.ts4import { defineCollection, z } from 'astro:content'56const blog = defineCollection({7 type: 'content',8 schema: z.object({9 title: z.string(),10 pubDate: z.coerce.date(),11 description: z.string(),12 // Squarespace slug pattern, preserved for 301 redirects13 legacyPath: z.string(), // e.g. '/blog/my-post-title'14 cover: z.string().optional(),15 tags: z.array(z.string()).default([]),16 }),17})1819export const collections = { blog }
Thinking about leaving Squarespace?
Get a free migration review. We look at the real site, list the page types the Squarespace export will drop, and recommend honestly whether Astro, Next.js or Payload CMS is the right landing spot.
Frequently asked questions
- What does the Squarespace export actually include?
- Settings, then Advanced, then Import / Export produces a single WordPress-oriented XML file. Per Squarespace's own support documentation it contains layout pages, one blog page with its posts and up to 1,000 comments per post, text blocks, image blocks, the text from embed and Instagram blocks, and gallery pages. That list is exhaustive. Anything not on it, including form blocks and their configuration, does not come across. Treat the file as a text head start, not a backup.
- What does the Squarespace export leave out?
- Squarespace names the exclusions directly: album, cover, index, info, calendar, portfolio and store pages; page-specific headers, footers and sidebars; every blog page after the first; dropdowns; audio, video and product blocks; drafts; style settings; and custom CSS. So a portfolio site loses its portfolio pages, an events site loses its calendar, a store loses its store pages, and every site loses its entire visual layer. If you run more than one blog, only one of them is in the file.
- Can I move my Squarespace content to another Squarespace site?
- No. Squarespace's documentation states it is not possible to export content from one Squarespace site and import it into another. This is worth sitting with, because it is the clearest measure of how portable the format is: the export cannot even round-trip inside the platform that produced it. The XML targets WordPress, and it targets WordPress partially. Any other destination, including Astro, Next.js or Payload, involves the same re-extraction work.
- How do I migrate a Squarespace store?
- Products are a separate export from the site XML, and they come out as CSV. Squarespace caps a run at 10,000 products and states the CSV omits additional product info, reviews, featured images, alt text and variant images. Store pages themselves are excluded from the XML entirely. So a commerce migration means reconstructing product imagery and long-form descriptions from the live site, rebuilding variants, and moving checkout to a dedicated service such as Stripe or a headless commerce platform. Customers and orders are not part of a site migration and should be handled as a separate data task.
- Can AI tools like Claude Code edit my site after migrating?
- Yes, and Squarespace is one of the few platforms where the AI access gap is genuinely one-sided. Webflow ships an official MCP server, Wix ships one, and the WordPress core AI team ships an MCP adapter. Squarespace ships none as of July 2026. Third-party MCP servers built on Squarespace's public APIs do exist, so this is a question of first-party support and coverage rather than a total blackout. Once the site is a Git repo, the difference is structural: an agent gets the whole artifact, can run the build, and a bad change is one git revert away.
- How do I choose between Astro, Next.js and Payload CMS?
- Astro suits content-driven marketing sites, blogs and portfolios, which is what most Squarespace sites are. It ships zero JavaScript by default and models each post as a Markdown or MDX file. Next.js suits sites that are really applications: gated areas, dashboards, search, serious commerce. Payload suits the case where non-technical editors need a real admin UI, and it pairs with either frontend. Note for vendor assessment that Payload was acquired by Figma in June 2025, and that Payload Cloud has paused new deployments, so you self-host and pay for a database.
- What does it cost to migrate off Squarespace?
- Budget $5,000 to $25,000 for a 50 to 100 page site, with 3 to 7 weeks of elapsed time on a typical project. A brochure site with no store sits near the bottom. A portfolio-heavy or commerce site sits near the top, because those are exactly the page types the export drops, so the content has to be reconstructed rather than imported. The destination barely moves the number. The expensive work is re-extraction, design rebuild, asset re-hosting and redirects, and that is identical everywhere.
- Will I lose my SEO rankings migrating off Squarespace?
- Only if redirects are skipped. Squarespace uses specific slug patterns, for example /blog/post-title and collection paths, and if your new URLs differ, every old link and ranking points at a 404. Map every old URL to its new path with 301 redirects, preserve title tags and meta descriptions, keep the heading structure, and submit a fresh sitemap before you cut DNS. A crawl of the live site is the only reliable source for that map, because the export will not tell you which URLs it is about to omit.
Related Resources

Why No-Code Platforms Score Poorly on PageSpeed (And What Your Options Are)
An honest look at why Webflow, Wix, Squarespace, and WordPress page builders consistently score low on PageSpeed Insights, with data, and what you can realistically do about it.

Astro for Marketing Sites in 2026: Should You Commit?
Astro ships zero JavaScript to the browser by default, which is a real advantage for content-led sites. It is also the wrong call for app-like products, for React-heavy teams, and for teams with no developer. Here is how to tell which side you are on.

Webflow to Payload CMS: The Complete Migration Guide for 2026
Migrating from Webflow CMS to Payload keeps the design-first model of Collections, references and rich text, and adds code you own with TypeScript end to end. Payload's licence is free; hosting and a database are a separate bill. Typical: $5,000 to $25,000.

The SEO Migration Survival Guide: Keep Your Rankings When Switching Platforms
Platform migrations destroy SEO rankings if done wrong. Here's the checklist we use on every migration to protect (and improve) organic traffic.