Can Lovable export to HTML?
Quick answer
Yes, through a build. Lovable gives you the project's code, not one HTML file: “Git sync, available on all plans” and “Download codebase, available on paid plans, for a one-time snapshot as a .zip file” (Lovable's Deploying and hosting outside Lovable, read on November 23, 2026). For an older React + Vite app, `npm run build` writes the site as HTML, CSS, and JavaScript into `dist/`. Drop that `dist` folder in the box on this page, and Convika puts it online at a link in seconds, free.
Free covers 1 published page, no credit card required.
On this page
You built a site in Lovable and want it as plain files: to host it yourself, to keep it after the free credits, or to stop paying for a plan you only needed for one page. Lovable hands you the project's source code. One build turns that code into the HTML your browser opens, and Convika puts that HTML online.
What Lovable lets you take out
Read on November 23, 2026, from Lovable's Deploying and hosting outside Lovable.
| Way out | Lovable plan | What you get |
|---|---|---|
| Git sync | All plans | The project in a GitHub, GitLab, or Bitbucket repository, kept in sync both ways |
| Download codebase | Paid plans | A .zip snapshot of the code, from the code editor's file panel or Project settings → Git |
Both give you source code: React components, package.json, and a Vite config. A browser opens HTML, so the next step is the build.
Check which kind of Lovable app you have
Open package.json in Lovable's Code tab.
| Your project | How Lovable builds it | Where it runs |
|---|---|---|
No @tanstack/react-start in package.json: an older React + Vite app | npm run build writes static files to dist/ | Any static host, Convika included |
@tanstack/react-start in package.json: a TanStack Start app, created from May 13, 2026 | Server output plus static files | A host that runs a server. Lovable: “A TanStack Start app does not run from object storage or a CDN alone” |
You can also ask Lovable in the project chat: “Which stack does this project use, older React + Vite or TanStack Start?”
Build the HTML from the code
On your computer, in the project folder from Git sync or the unzipped download, with Node.js 22 (the version Lovable names):
npm install
npm run build
The build writes index.html, the CSS, and the JavaScript into dist/. In a project on Lovable's built-in backend, the .env file holds VITE_SUPABASE_URL and VITE_SUPABASE_PUBLISHABLE_KEY, and Lovable says these are “embedded at build time,” so build from the folder that has .env in it. Lovable's guide covers hosting the site elsewhere while “the app keeps using the built-in backend.”
Put the built Lovable site online in 4 steps
1. Drop the dist folder in the box
Click Choose a folder in the box at the top of this page and pick dist, or drop a .zip of it. The box puts the CSS, JavaScript, images, and fonts inside one page. Click Get my preview link.
2. Keep the page
Click Keep this page — free, no card to sign up. Open preview shows the site with its scripts running.
3. Publish it
On the page's screen, click Publish page. Under Who can open this page?, choose Public and click Next. The first time, Convika shows Publish free, and under it Publish without the Convika bar, which starts Pro with its free trial: 7 days free, then $12 a month, cancel any time before it ends. To publish on Free, click Publish free. The site is live at an address like yourpage.convika.page.
4. Connect your domain
Click Copy next to the Live URL and send it, or add your own domain under Domains in the sidebar. Free includes 1 custom domain with HTTPS.
What doesn't come along
- Server code on a TanStack Start app. Server functions, API routes, and server-side rendering need a host that runs a server.
- The source project dropped as it is. The box asks for the build: drop
dist, not the folder withpackage.json. - Script chunks a build splits off. When the main script imports other script files by itself, the box lists them after the upload. Ask Lovable to load those parts without lazy loading, rebuild, and drop
distagain. - Lovable's own extras. Lovable notes that “Managed OAuth configuration and automatic token refresh are only available when the backend runs on the built-in backend,” and that “production previews are not generated for self-hosted production environments.”
Keep building in Lovable as before. When the site changes, run npm run build again. On the page's screen, click Upload a new version, drop the new dist folder or its .zip, and click Upload as a new version. Then click Publish v2 at the same link and confirm with Publish. Lovable's own Publish button covers publishing that stays inside Lovable.
Skipbox
Cheap & fast GitHub Actions runners, unlimited for $39 a month
Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.
Start a free Skipbox trialFrequently asked questions
Can Lovable export to HTML?
Yes, through a build. Lovable gives you the code by Git sync on all plans, or Download codebase on paid plans. Running npm run build on an older React + Vite app writes the HTML, CSS, and JavaScript into dist/.
How do I export my Lovable project?
Connect Git sync to a GitHub, GitLab, or Bitbucket repository, or click Download codebase at the bottom of the code editor's file panel on a paid plan. Both give you the full source code.
Can I host a Lovable site somewhere else for free?
Yes. Build the project, drop the dist folder in the box on this page, and publish it on Convika Free. Free covers 1 published page and 10,000 page views a month, with no credit card.
Do I need a paid Lovable plan to export?
No. Git sync is on all Lovable plans. Download codebase, the one-time .zip, is on paid plans.
Does my Lovable app's login and database still work?
Yes, on an older React + Vite app that uses Lovable's built-in backend. Lovable's guide covers this setup, where you host the frontend elsewhere and “the app keeps using the built-in backend.” The build puts the backend's address and publishable key in the page. A TanStack Start app's server functions need a host that runs a server.
Sources
- Lovable: Deploying and hosting outside Lovable, read on November 23, 2026 (the page shows no date of its own)
Next step
How to share an HTML file as a link that opens on any phone
Upload the file to a host and send its link; email and Google Drive send the code. 8 hosts compared, from Convika to Netlify Drop, with 4 steps.
Related articles
- How to publish a Lovable app, and what to do when it failsPublish a Lovable landing page on your own subdomain free with Convika. In Lovable, Publish goes to lovable.app free; a domain takes Pro, $25 a month. Plus fixes.
- Is Lovable free? What the Free plan includes in 2026Convika Free puts a Lovable landing page on your own domain. Is Lovable free? Yes: 5 credits a day, up to 30 a month; your domain on Lovable needs Pro, $25 a month.
- Can I use Lovable's free plan for a business site, and who owns it?Convika Free puts your Lovable landing page on your own subdomain, business use allowed. Lovable's terms allow commercial use and say you own what you build.
- ZIP to website: upload a .zip file and get a link that opens as a pageDrop a .zip with index.html, CSS, JavaScript, and images here. The box puts them into one page in your browser and gives you a link in seconds, free.
- How to deploy an HTML, CSS, and JavaScript site for freeA site of HTML, CSS, and JS files is static, so 5 hosts serve it free. Which need an account, Git, or an index.html, from each host's docs on November 15, 2026.