Framer migration series
- Framer to Code: migrate to Next.js, React or Astro
- Export your Framer site and host it anywhere (you're here)
- Framer to WordPress (coming next)
Framer has no export button. Its help center says it does not offer HTML export for self-hosting. To get a Framer site as plain HTML you can host anywhere, rebuild it as code with Framer's official connector and an AI like Claude, then build it to static files. This guide shows that route, how to push the result to GitHub, and how to host it on Cloudflare, Vercel, Netlify or GitHub Pages.
Part 1 of this series covers getting the code out of Framer in detail, and the video below is the source of truth for that step. This part picks up from there: how to make the output plain HTML, and how to host it yourself.
Can you export a Framer site to HTML?
Not directly. Framer's own answer, in its help article on HTML export, is no: published Framer sites depend on Framer's servers for things like pre-rendering and image optimization, so they aren't standalone files.
You may also find Framer's Porting your data page, which says published files can be downloaded. The two pages contradict each other. Treat the explicit "no" as the current answer, and test anything else on your own site before you rely on it.
That leaves three realistic options:
| Option | What you get | Is it off Framer? |
|---|---|---|
| Reverse proxy | Your own domain setup, for example Cloudflare or Vercel, in front of your Framer site (Framer's guide) | No. Framer still serves, hosts and bills the site |
| Saving the published page | A browser copy of the page | No. The copy still loads scripts and images from Framer's servers, and interactions often break |
| Rebuild it as code | Real HTML, CSS and JavaScript in your own folder or repository | Yes. You own every file |
If you only want your Framer site to sit under your existing domain, the reverse proxy is the supported route. If you want to own the files and host them anywhere, rebuild it as code. The rest of this guide is about that.
How to export a Framer site, step by step
Step 1: Get the code out of Framer
Follow Part 1: install Framer's connector in Claude or Cursor (watch this step), open an empty folder or a new GitHub repository (watch this step), and paste the migration prompt (watch this step).
Step 2: Ask for static HTML output
In the migration prompt, change the framework line to one of these two:
3. Framework: Astro, static output only (no server adapter). Every page must build to plain HTML files in dist/.3. Framework: plain HTML, CSS and JavaScript. No framework and no build step. One .html file per page.Which one should you pick?
- Astro (static) is the better choice for most sites. You still get reusable components and easy edits, and the build turns everything into plain HTML files. Interactive parts load only the JavaScript they need.
- Plain HTML suits a one-page or very small site that you never want to build. There's nothing to install, but changing a shared header means editing every page.
Either way, the result is a folder of HTML files with no dependency on Framer.
Step 3: Build and check the files
For Astro, run the build in the project folder:
npm install
npm run buildAstro writes the finished site to the dist/ folder: one HTML file per page, plus the CSS, JavaScript, fonts and images. That folder is your exported Framer website. Open a few pages from it in your browser, or run npx astro preview, and compare them with the live Framer site at desktop, tablet and phone widths.
Step 4: Push it to GitHub
A GitHub repository gives you version history, and every host below can deploy from it automatically. If the AI didn't already create one, the GitHub CLI does it in one command:
git init
git add .
git commit -m "Framer site as static HTML"
gh repo create my-site --private --source=. --pushStep 5: Host it
Static files can be hosted anywhere. These are the common choices, each with its own official guide:
| Host | How to deploy | Official guide |
|---|---|---|
| Cloudflare | Connect the GitHub repository. Build command npm run build, output folder dist | Cloudflare Pages or Workers static assets |
| Vercel | Import the repository. Vercel detects Astro and sets the build for you | Astro on Vercel |
| Netlify | Import the repository, or drag the dist folder into the dashboard | Netlify docs |
| GitHub Pages | Deploy with a GitHub Actions workflow | GitHub Pages |
| Your own server | Upload the contents of dist to the web root |
Astro keeps a deploy guide for every major host. If you'd rather let Claude do the hosting, the Cloudflare hosting prompt in Part 1 builds and deploys the site for you (watch this step).
Your self-hosting checklist
Moving the files is the easy part. These are the things a Framer site did for you that you now handle yourself:
- Forms. Framer forms send submissions through Framer. After the move, connect each form to a form service or a small serverless function, and test that submissions arrive.
- CMS content. The migration prompt brings CMS items across as files, so every page keeps its content. To add posts later, either edit those files or connect a headless CMS.
- URLs. Keep every page path identical to the Framer site. If a URL has to change, add a 301 redirect from the old one.
- Domain. Point your domain at the new host only after the new site is checked. Keep the Framer site live until then.
- Analytics. Add your analytics script again. Framer's built-in analytics stop when the site leaves Framer.
- Sitemap. Generate one (Astro has an official sitemap integration) and submit it in Google Search Console and Bing Webmaster Tools.
Why plain HTML is worth it
- Hosting freedom. Any host can serve plain files, and most static hosts have a free tier for small sites.
- Speed. Static pages are served straight from a CDN, with no server work per visit.
- Crawlers read everything. Every page sends its full text in the HTML. Most AI crawlers don't run JavaScript, so this is what lets assistants like ChatGPT read your site.
- No lock-in. If you change hosts later, you move a folder.
The trade-off is visual editing. On Framer you change a page and click publish. With HTML you edit code, or ask your AI to edit it, and redeploy. If your team edits pages visually every week, the reverse proxy may suit you better.
The short version
Framer can't export your site as HTML, but you can rebuild it as code with Framer's connector and the prompt from Part 1, set to static Astro or plain HTML. Build it, push it to GitHub, and host the dist folder on Cloudflare, Vercel, Netlify, GitHub Pages or your own server. Then rewire forms and analytics, keep your URLs, and submit a sitemap.