Conversion Guide

How to Export a Lovable Project: ZIP, GitHub, and Publish Options

Every way to get your code out of Lovable: the ZIP download, the GitHub sync, and the published site. What each contains and when to use it.

By AI to Wordpress Engineering Team·July 28, 2026·1,750 words
Expert-WrittenRegularly UpdatedSecurity Verified

Convert your website now

Upload ZIP → Security Scan → Free Preview → Download WordPress Theme

How AI to Wordpress Converts Your Website

1Upload ZIPLovable, Webflow,Framer, or HTMLMax 100 MB2Security ScanMalware detection,virus scanningAuto-reject threats3AIAI ConversionDOM → WordPresstemplate generation2-5 min avg4Preview & PayLive WP previewbefore purchaseDownload ZIP

1
The Three Ways Out of Lovable

How to Export a Lovable Project: ZIP, GitHub, and Publish Options — visual guide for The Three Ways Out of Lovable

Visual Guide: The Three Ways Out of Lovable

This section includes step-by-step visual guidance for optimal results.

Lovable offers three distinct exit paths and each is useful for a different job. The GitHub integration pushes your source to a repo you control and is the right answer for engineering work, version control, and migrations. The ZIP download packages the same source into a single file and is convenient for offline archival or one-off handoffs. The Publish button hosts the compiled site on the internet under a `lovable.app` subdomain or your custom domain — that path gives you a live site but not source code. Understanding which button does what saves confusion later.

2
Using the GitHub Integration

Open your Lovable project, click the GitHub icon in the top-right toolbar, and connect your GitHub account. Choose a target repository (Lovable can create a new one for you) and let the initial push complete. From that moment on, every AI edit inside Lovable creates a commit in the connected repo, and any push you make to that repo shows up inside Lovable's editor. This bi-directional sync is what makes Lovable comfortable for teams that want to keep serious engineering work in their own IDEs while using Lovable for prompt-driven iteration.

Pro Tip

Use your platform’s official export or download option and upload that ZIP directly. Keep all files together in one complete archive.

3
Using the ZIP Download

The ZIP is a one-shot snapshot of the current project state. Click the download icon and save the archive locally. Unzip and you get a standard Vite + React project you can run with `npm install && npm run dev`. Use this path when you need a static artifact for archival, when you're handing the project to someone who doesn't use GitHub, or when the project is small enough that a single download beats setting up a repo. For migrations to WordPress, GitHub is generally cleaner, but ZIP works fine for smaller projects.

Technical Architecture

How AI to Wordpress Processes Your WebsiteSecure, isolated conversion pipeline from any builder to WordPressINPUT SOURCESLovableWebflowFramerReplitCursor AIV0.devBase44HTML/CSS/JSSECURE PIPELINEVirus ScanFile ValidationFramework DetectionDOM ParsingAI Structure MapTemplate GenerationQA ValidationOUTPUTWordPress Theme Filesheader.phpfront-page.phpstyle.cssfunctions.phpfooter.php🔍 Live PreviewFree — before payment⬇ Download ZIPAfter payment — yours forever

4
What's Inside the Exported Code

The export is faithful. You get every file Lovable's AI generated: React components in `src/components/`, pages in `src/pages/`, hooks in `src/hooks/`, styles in `src/index.css`, `tailwind.config.ts`, `vite.config.ts`, `package.json` with a complete dependency list, `index.html`, and everything in `public/`. Assets you uploaded through Lovable's UI live in `src/assets/`. Supabase integration code (`src/integrations/supabase/`) is included if you enabled it. Environment variables in `.env` are stripped for security; you re-create them locally as needed.

5
Running the Exported Project Locally

Requirements are ordinary: Node 18+, npm or pnpm. From the unzipped or cloned directory, run `npm install` then `npm run dev` for the Vite dev server, or `npm run build` to produce the static `dist/` output. Everything Lovable does inside its preview happens on your machine using the same Vite pipeline. If a build works in Lovable, it works locally; if it fails locally, it fails in Lovable for the same reason.

Security Note

Every file you upload is automatically scanned for malware before processing. Unsafe files are rejected immediately to protect your WordPress installation.

6
Feeding the Export Into a WordPress Migration

For migrations, either paste the GitHub repo URL into the AI to Wordpress uploader or drop the ZIP. The pipeline installs dependencies, runs `npm run build`, pre-renders every route, and emits a WordPress theme with real HTML per page. Nothing about the export needs modification before the migration — the converter handles Vite, Tailwind, shadcn/ui, and Supabase integration automatically.

7
Publishing vs Exporting: When to Use Which

If you want a live site fast and don't need source code control, click Publish. If you want to move to another host, own the code, or migrate to WordPress, click Export. There's nothing preventing you from doing both — publish for the demo URL, export for the source. The two paths don't conflict.

8
Keeping Iteration Going After Export

Once you've exported, you have three coexisting workflows. Continue prompting inside Lovable and let AI edits flow into the GitHub repo. Edit directly in your own IDE and push changes back — Lovable will see them. Re-run the WordPress conversion whenever the design has meaningfully changed. WordPress content stored in the database survives every theme regeneration, so re-conversions are cheap.

Performance Tip

Minified CSS and JavaScript files convert more efficiently and produce cleaner WordPress themes. Use your builder's production export option.

9
Common Export Gotchas

Two things trip people up. First, ZIP downloads timeout on very slow connections for larger projects — use GitHub for anything over a few dozen files. Second, `.env` values are not included in the export; if your Lovable project relied on runtime env vars, you need to re-create them locally in `.env.local` before running the build. Beyond those, exporting is genuinely uneventful — the artifact is a normal Vite project and behaves like one.

Your Files Are Always Secure

Malware scanned before processing
Sandboxed conversion environment
Per-user data isolation
Auto-deleted after 72 hours

Frequently Asked Questions

Does Lovable let me export the full source code?
Yes. Lovable exposes a GitHub integration that pushes the entire repository to a GitHub account you control, and a ZIP download that contains the same source. Both are complete — everything the platform generated is included, nothing is held back.
Do I need a paid Lovable plan to export?
Basic export works on the free tier. Advanced features like private repositories or custom branch names may require a paid plan; check Lovable's current pricing for the specifics. The exported code itself is complete on any tier.
What's inside the ZIP?
A standard Vite + React project: `package.json`, `src/`, `public/`, `index.html`, `vite.config.ts`, Tailwind config, and any assets you uploaded. It's a normal npm project you can `npm install && npm run build` locally without any Lovable-specific tooling.
GitHub or ZIP — which should I use for migration to WordPress?
GitHub. Shallow clones are more reliable than ZIP uploads for larger projects, and the commit hash is preserved in the theme's build metadata for later debugging. Use ZIP only for small projects or when you can't connect a GitHub account.
Do exported Lovable projects include the Supabase integration?
Yes. The Supabase client, environment variables, and any generated types come with the export. What doesn't come with the export is your actual Supabase project — that lives in your own Supabase account, unchanged.
Can I edit exported code and push changes back to Lovable?
The GitHub integration is bi-directional: pushes to the connected repo appear inside Lovable's editor. This means you can iterate on the code in your own IDE (VS Code, Cursor, Zed) and Lovable will see the changes. Be aware that Lovable's own AI edits may conflict with your manual edits if you're editing the same files simultaneously.
What's the difference between exporting and publishing a Lovable project?
Publishing hosts the compiled site on a `lovable.app` subdomain or your custom domain, but doesn't hand you source code. Exporting gives you source code but doesn't host anything. Most migrations start with an export, feed it into the AI to Wordpress converter, and end with a WordPress theme running on your own host.
Does exporting break my Lovable workspace?
No. Export is read-only from Lovable's perspective. Your project keeps working inside the platform exactly as before, and you can continue iterating there. Nothing is deleted, moved, or altered.

Ready to Convert Your Website?

Secure upload with malware scanning. Free preview before purchase. WordPress theme in minutes.

Conversion Guides by Builder

Related Articles

Explore More

Convert by Platform