---
title: "Deframer: Framer to code for Next.js, Astro, HTML and more"
description: "Deframer converts your Framer site to clean code for Next.js, TanStack Start, Astro, React Router, Vite, Nuxt or static HTML, free. Download for 1 credit with verification, or 10 without."
url: https://deframer.co
---

# Move your Framer site to clean code

Paste your Framer URL and get a clean Next.js, TanStack Start, Astro, React Router or Vite project you own. Free to convert.

- 5.9 seconds Average conversion
- 236 Sites converted
- 100% TypeScript code

![Deframer's compare view: a live Framer site beside its converted Next.js build](https://deframer.co/film/poster-1350.webp)

A 20-second film of Deframer converting realmehdi.com, a real Framer site: its address is pasted, the site is rebuilt as a Next.js project while its 256 files are written, the original and the rebuilt site are compared at 1440, 768 and 390 pixels wide; then ownership is checked with the code on its live page and 1 credit unlocks the download; a generated component's TypeScript is shown, and the project downloads as realmehdi.com.zip.

An example run: realmehdi.com converted to a Next.js project in 22 seconds, 256 files in 641 KB.

## What every project is built on

Every project Deframer writes is a standard Next.js, TanStack Start, Astro, React Router or Vite app, or the same site as static HTML

- Next.js 16
- TanStack Start
- Astro 7
- React Router 8
- Vite 8
- Static HTML
- React 19
- TypeScript
- CSS Modules
- motion
- No Framer runtime

[Read the generated code](https://deframer.co/#code)

How it works

## From your Framer site to a project you own

Four steps, shown on a real conversion: realmehdi.com, a Framer site we own, exported to Next.js. The same steps export to [TanStack Start, Astro, React Router or Vite](https://deframer.co/framer-to-react), and to [static HTML](https://deframer.co/framer-to-html).

01

### Rebuilt as a real project

Paste your published Framer URL, pick Next.js, TanStack Start, Astro, React Router, Vite, Nuxt or static HTML, and convert it free. Deframer reads the site and writes every page, component and style as readable TypeScript, filed where a developer would put it.

[Read the output](https://deframer.co/#code)

02

### Compare before you download

When a live preview is available, open the original and the rebuilt site side by side at three widths, scrolling together, and see exactly where they differ.

[What the compare view shows](https://deframer.co/#faq)

03

### Unlock the download

Show it's your site. Paste your personal code into Custom Code and publish. Verify and unlock for 1 credit, or download directly for 10 credits after confirming you have permission.

[How verification works](https://deframer.co/#verify)

Assets in the project

04

### Download it, run it anywhere

A standard Next.js, TanStack Start, Astro, React Router or Vite project in a zip, or static HTML ready to upload: install it, run it, deploy it anywhere. Images and fonts work either way: on Framer's CDN by default, or in the project's public/ folder.

[See pricing](https://deframer.co/#pricing)

realmehdi.com Converting

1. Fetching the site (in progress) Downloading the published pages and Framer's site bundle.
2. Reading modules (to do)
3. Converting to Next.js (to do)
4. Packaging the project (to do)
5. Building the preview (to do)

**35 components, 17 routes** Click a folder in the tree to list its files.

[Read the output](https://deframer.co/#code)

What you get

## A project a developer would have written

Every number below comes from realmehdi.com's Next.js export: 17 routes, 35 components, 256 files.

- ### Every page, a route

  17 routes in src/app, each a page.tsx that sets its own title, description and canonical URL. Unknown paths get the site's 404.
- ### Components with typed props

  35 components, each a .tsx file with typed props and its own CSS module, keeping the variants and hover states the designer set.

  Props

  **variant?**

  **answer?**

  `string`

  **question?**

  `string`

  Files
  - faq-acordian.tsx 300
  - faq-acordian.module.css 211
- ### Breakpoints kept

  Desktop, Laptop and Phone stay three layouts, as media queries. The converted home page is pixel-perfect: 0.00% of pixels differ at 1440, 768 and 390.
- ### Fonts and text styles

  11 font stylesheets with @font-face rules, and 17 text styles as shared classes that change size at each breakpoint.
- ### Code components come along

  2 of the site's own and 8 from the marketplace, as source in src/code and src/vendor. 3 run only in the browser.
- ### Motion keeps its timing

  44 transitions, appear effects and hovers keep their springs: 35 of them stiffness 500, damping 60, played by motion.

The code

## Framer in. Code out. Read every line.

Unedited files from realmehdi.com's Next.js export, 256 files in all. No Framer runtime: a small, readable kit in src/lib.

Files

src/app/page.tsx

```
import type { Metadata } from "next";
import Template from "@/layouts/template";
import HomePage from "@/views/home";

export const metadata: Metadata = {
  title: "Mehdi Hassan Portfolio",
  openGraph: {
    type: "website",
    title: "Mehdi Hassan Portfolio",
    description:
      "Helping startups design & develop breathtaking products & websites. 🌟 Expert in copywriting, design, & development.",
    images: ["https://framerusercontent.com/assets/h1lpVwE2dPBKzvByiXOr3ANSFDA.jpg"],
    url: "/",
  },
  twitter: {
    card: "summary_large_image",
    title: "Mehdi Hassan Portfolio",
    description:
      "Helping startups design & develop breathtaking products & websites. 🌟 Expert in copywriting, design, & development.",
    images: ["https://framerusercontent.com/assets/h1lpVwE2dPBKzvByiXOr3ANSFDA.jpg"],
  },
  alternates: {
    canonical: "/",
  },
};

export default function Page() {
  return (
    <Template>
      <HomePage />
    </Template>
  );
}
```

localhost:3000 390

![The home page this file renders, from the converted build at 390 wide](https://deframer.co/_next/image?url=%2Fimages%2Fexamples%2Frealmehdi%2Fhome-390.webp&w=3840&q=75)

tsc --noEmit · 167 files · 0 errors

Pricing

## Free to convert, one credit to download

Convert free and see the result. Pay only when you download the code: one credit downloads one converted project, and credits never expire. Or pay once for the lifetime deal: unlimited conversions, and every site you verify downloads free.

1. **Convert for free** Paste your Framer URL and check the result.
2. **Download for 1 credit** One credit is one site's code, as a .zip.
3. **It's yours** Host it anywhere. Credits never expire.

- ### Single

  1 credit

  Download 1 site

  $20 one-time

  $20.00 per credit

  [Get 1 credit](https://deframer.co/sign-up?redirect_url=%2Fpricing)
  - One site, up to 100 pages
  - Your choice of 7 frameworks
  - Download the same export again, free
- ### Starter

  Most popular

  5 credits

  Download 5 sites

  $50 one-time

  $10.00 per credit instead of $20.00

  [Get 5 credits](https://deframer.co/sign-up?redirect_url=%2Fpricing)
  - Five sites, or one site five times as it changes
  - 50% less per credit than Single
  - Everything in Single
- ### Studio

  Best value

  50 credits

  Download 50 sites

  $100 one-time

  $2.00 per credit instead of $20.00

  [Get 50 credits](https://deframer.co/sign-up?redirect_url=%2Fpricing)
  - Client sites and large sites
  - 90% less per credit than Single
  - Or 5 downloads without verification

### Lifetime

50% off until 8 December

Unlimited

Download every site you verify, for life

- Never buy credits for a site you verify
- Unlimited conversions (fair use: 100 a day)
- First in the conversion queue
- 20 credits included: downloads without verification use 10 each

$197 Regular price $397 one-time

Only $97 more than Studio · Ends 8 December

[Get lifetime access](https://deframer.co/sign-up?redirect_url=%2Fpricing)

**Can't add a meta tag to the site?** A download without verification uses 10 credits, so Studio covers 5.

- No subscription
- Credits never expire
- Every framework included
- You own your site's code

Prices in USD. Checkout by Whop, our payment provider, which adds sales tax or VAT where it applies. Credits and the lifetime deal are added as soon as you pay and aren't refundable; see the [refund policy](https://deframer.co/refunds).

[Compare packs on the pricing page](https://deframer.co/pricing)

Site protection

## Prefer to keep your site here?

Verify ownership and block Deframer conversions, downloads and previews for 10 credits once. Optional inline capture deterrents have clear third-party limits.

[Explore site protection](https://deframer.co/protect)

FAQ

## Questions, answered

Credits and payments are covered on the [pricing page](https://deframer.co/pricing#credits), what we store in the [privacy policy](https://deframer.co/privacy). Anything else: [contact us](https://deframer.co/contact).

Still have a question?

Write to a person. We answer by email.

[Contact us](https://deframer.co/contact)

### What does Deframer do?

Deframer converts a published Framer site into clean code: a Next.js, TanStack Start, Astro, React Router or Vite project written in TypeScript, or static HTML built from it, which you download as a `.zip` and own. Every page becomes a route (an App Router page in Next.js, a file route in TanStack Start, a prerendered page in Astro, a route module in React Router and Vite), components become React components with CSS modules, CMS collections become JSON files and native forms post to the project's own API routes (a Vite site, which has no server, sends them to a form service). There is no Framer runtime in the project, so it runs and deploys without Framer.

### Which frameworks can I export to?

Deframer exports to [Next.js](https://deframer.co/framer-to-nextjs), [TanStack Start](https://deframer.co/framer-to-tanstack-start), [Astro](https://deframer.co/framer-to-astro), [React Router](https://deframer.co/framer-to-react-router), [Vite](https://deframer.co/framer-to-vite) and [Nuxt](https://deframer.co/framer-to-nuxt), all in TypeScript, and to [Static HTML](https://deframer.co/framer-to-html), the same site built into files to upload: you pick one each time you convert, and Next.js (App Router) is the default. All six lay out pages, components, styles and CMS content the same way (in Nuxt, the pages stay React components inside Nuxt's own); the routes, the server and the build differ. Astro, React Router and Vite prerender every page to static HTML at build time, with the same animations, interactions, CMS and forms, and keep the layout a page shares with the next one as you navigate. Vite makes a static site with no server: `npm run build` writes `dist/`, which any static host serves. Without a server, its forms post to a form service you choose or to Netlify Forms, a split test ships the original version, and redirects come as `_redirects` (Netlify, Cloudflare Pages) and `vercel.json`, with a redirect page for hosts that have neither.

### Which sites can I convert?

Signed in, you can convert any published Framer site for free. It can be published on `framer.website`, `framer.app` or a custom domain: use the address visitors open, not the editor link. To download the code, the site must be yours, or its owner must have given you permission, such as a client. Verify for 1 credit, or confirm you have permission and download without verification for 10 credits. Sites over 100 pages cost that again for every 100 pages more (at most 30 credits without verification).

### Can I convert a site I don't own?

You can convert it, but you can't download its code without the owner's permission. Deframer is for moving your own site to code. Verify by asking the owner to publish your code for a 1-credit download, or confirm that you have their permission and download directly for 10 credits. Taking someone else's site without it breaks our [terms](https://deframer.co/terms#acceptable-use), and we act on reports.

### How do I verify my site?

You add your personal verification meta tag to your Framer site's custom code and publish the site; Deframer then finds it on the live page.

1. Convert your site, then choose Download. Deframer shows your verification code, a one-line meta tag.
2. In Framer, open Site Settings → Custom Code and paste it at the end of the `<head>` tag.
3. Publish your site, then click Check again. Once verified, use 1 credit to unlock the download.

Prefer to skip verification? Choose Download directly, confirm you own the site or have permission, and use 10 credits.

### Why do you ask for verification?

Verification lets you download for 1 credit by showing you control the site. Only someone who can publish a site can put the code on it, so finding it shows you control the site. Your code is personal and works for all your sites. We check it on the live page before each verified download. You can also download without verification for 10 credits by confirming you own the site or have permission. The converted project never contains the tag.

### Who owns the code?

You own the converted code of your own site, and Deframer claims no rights in it: its content, design and code stay yours (or your client's), as they were. It includes Deframer's small helper kit, which you may use and change as part of the project, and open-source packages under their own licences. It doesn't include Framer's runtime.

### What do I need to start?

You need a free Deframer account to convert a site, and credits to download: 1 with site verification, or 10 without it. Credits come in packs on the [pricing page](https://deframer.co/pricing) ($20 for 1 credit, $50 for 5, $100 for 50) and never expire. Converting, the live preview and compare view when they're available, and downloading the same project again are free, so a conversion that fails costs nothing. Or pay $197 (launch discount until 8 December 2026, then $397) once for the lifetime deal: unlimited conversions, and every download of a site you verify is free.

### What are the limits?

A conversion can run for up to 10 minutes and produce a project of up to 1 GB.

- 3 free conversions a day; 20 a day once you've bought credits; unlimited with the lifetime deal (fair use: 100 a day) (over a rolling 24 hours). Conversions that fail because the server was busy don't count.
- Up to 5 conversions per 10 minutes, with up to 2 running at once.
- With "Assets in the project", a site with more media than one conversion may download (often large videos) still converts: the largest files keep loading from Framer's CDN, and the project's notes list them.
- Conversions run a few at a time. When it's busy, yours waits in line and the page shows its place. Conversions from accounts that have bought credits go first; a free one that has waited about 10 minutes goes ahead.

### What happens to my files?

Each conversion is private to your account, and its project and `.zip` are deleted 7 days after the conversion finishes. Only you can open its download, and its preview and compare view when there are any. Once deleted it shows as expired, and you can convert the site again. A live preview, when there is one, closes 10 minutes after it is ready.

To convert your site, Deframer reads the files it publishes, the same ones a browser loads; nothing in your Framer account is touched. A password-protected site is read with the password you enter, which is used once and never stored. The details are in the [privacy policy](https://deframer.co/privacy).

### Should I choose Assets on Framer's CDN or Assets in the project?

Keep the default, "Assets on Framer's CDN", unless you want the converted site to stop depending on Framer's CDN: images, fonts and videos work either way, and the option only decides where they are hosted. By default they keep loading from `framerusercontent.com`, as on your live site, so the zip is small and the conversion fast. With "Assets in the project" they are downloaded into the project's `public/` folder and served by your site, so it no longer depends on Framer at all; the zip is larger and the conversion takes longer. On a site with gigabytes of media, the largest files stay on the CDN so the project still fits.

### How close is the result to the original?

The converted site is close to the original but not guaranteed to be identical: layouts, breakpoints, animations, interactions and CMS pages are carried over from the published Framer site. Check every page: in the compare view when a live preview is available, or by running the project. Code components and third-party embeds stay as the site's own code.

### Can I convert the same site again?

Yes, whenever you like, for free. Every conversion is its own project, so converting again (after you republish, for example) makes a new project, and downloading that one uses a credit too. If you convert the same published version with the same options within 30 minutes, you get the same project back, so a download you already paid for stays free.

### How do I run the project?

Unzip it and run `npm install`, then `npm run dev`, whichever framework you chose; for production, `npm run build` and `npm start`. It needs [Node.js](https://nodejs.org/) and nothing from Framer. A [Next.js App Router](https://nextjs.org/docs/app) project deploys anywhere Next.js runs: Vercel, Netlify, a container or your own server. A [TanStack Start](https://tanstack.com/start/latest) project builds with Rsbuild and runs on Node.js 22.18 or later with srvx, so it deploys to any Node.js host, a container or your own server. An [Astro](https://astro.build/) project prerenders every page at build time and runs its own `server.ts` on Node.js 22.18 or later, so it deploys the same way. A [React Router](https://reactrouter.com/) project prerenders every page too and runs its `server.ts` on Node.js 22.22 or later.

### What if someone converts my site?

[Protect your site](https://deframer.co/protect) to block Deframer conversions, downloads and previews while active: verify ownership, then activate for 10 credits once. Both download options follow this block. The optional inline helper deters some capture tools, but third-party services may ignore it and public source remains accessible. Report misuse at [mehdi@deframer.co](mailto:mehdi@deframer.co?subject=Report%20misuse) as described in our [terms](https://deframer.co/terms#report-misuse).

### Is Deframer affiliated with Framer?

No. Deframer is an independent tool. It is not affiliated with, endorsed or sponsored by Framer. "Framer" is a trademark of its owner and is used here only to describe which sites the tool converts.

Get started

## Your site. Your code.

1. Convert
2. Download
3. Deploy anywhere
