How to export your Webflow site to HTML/CSS

Publié le 11 September 2024 - Mis à jour le 16 September 2024 - Écrit par Emmanuel Bernabe

Many current and future users wonder whether they can export the code of a Webflow site to HTML/CSS. The answer is yes. Even some users on the free plan can do it in a few simple steps.

Webflow writes most of the code for you as you design and build your pages. The platform is known for clean, semantic code, even though that code is not mainly written by hand.

When you export your whole Webflow project, you get static HTML, CSS and JavaScript, ready to use. This code can serve many purposes.

By exporting the code to use it elsewhere, however, you lose some of Webflow's advantages, such as the CMS and the Editor, 2 key features of the platform.

Illustration for the article How to export your Webflow site to HTML/CSS

Steps to export Webflow code

Exporting the code is quick and simple. Here is how to do it, step by step.

  • Open your project in the Webflow Designer.
Steps to export Webflow code, How to export your Webflow site to HTML/CSS
  • Click the export icon in the top right corner.
Steps to export Webflow code, How to export your Webflow site to HTML/CSS (visual 2)
  • Download the generated ZIP file, which contains your site's code.
Steps to export Webflow code, How to export your Webflow site to HTML/CSS (visual 3)

Webflow takes a few seconds to prepare your code. For a complex site, it can take a little longer, but no more than a few minutes.

Exporting Webflow code on a free plan

Code export is reserved for premium Workspaces. If you are on a free plan and studying at an accredited school, you can still apply for a free plan that includes some features normally reserved for paid plans. Once this plan is active, follow the steps above to export the code.

Exporting Webflow code on free plans, How to export your Webflow site to HTML/CSS

Otherwise, you can always publish your Webflow site and copy its source code. Unfortunately, this method takes many more steps to get a working result.

What a Webflow code export contains

Here is what Webflow's code export covers:

  • HTML. All pages and collection templates are included as HTML.
  • CSS. You get Webflow's CSS, plus Normalize.css.
  • JavaScript. You receive all the JS code needed for interactions and animations. If you do not need some parts of this file, you can remove them to improve performance.
  • Images. All images in the media library are exported in the ZIP file.
  • Scripts and libraries loaded from remote URLs, such as jQuery, IE9 polyfills and Google Fonts, can be included in the export. The same goes for Webflow interactions.

What a Webflow code export does not contain

Exporting your site disables the features that rely on Webflow's APIs, such as ecommerce, site search, form handling and password protection.

Your collection data is not included either. Webflow generates 1 HTML page per collection, but not a separate page for each collection item. If your site relies on collections, you will need to rebuild the data from your page templates.

Why export code from Webflow

There are many reasons to export the code of your Webflow site.

Since the export gives you raw HTML and CSS, the code can technically be used in almost any project. Most often, it serves as a base for building other platforms.

Users of static site hosts, such as Vercel, Cloudflare Pages, AWS Amplify or Netlify, can also export their code from Webflow. They can upload it to these hosts as is.

Finally, exporting the code lets you add data and dynamic features to your Webflow templates and turn them into simple web apps.

[FAQ]

The questions we get asked before signing

‍

Are your resources free?

Yes. Articles, videos, ebooks and our tool selection are freely available.

Some ebooks simply ask for your email address so we can send them to you.

Can you help us set up a tool featured here?

Yes, as part of a project or the weFlow retainer. We can set up things like these.

  • Integrations.
  • Automations.
  • Tracking.
  • New features.

Tell us what you want to do, and we'll tell you if there's a simpler way. Contact us.

Can we suggest a topic for an article or video?

Yes, and that's often how our best content starts.

Send us your question through the contact page. If it's relevant to other marketing teams, we'll answer it in an article or a video.

How does Ouiflow's free audit work?

You share your site's address and you get the audit within 7 days. It covers 5 topics.

  • The technical health of the site.
  • Your current rankings.
  • High-potential pages.
  • Blocking errors.
  • Your visibility in AI engines.

The team reviews and comments on it, with a list of concrete priorities. It's free and with no commitment. Request your audit.

Spend 30 minutes with an expert, not a salesperson.

We look at your site, your stack and your goals, then tell you what we would do, even if it's not with us. No sales pitch.