Webflow does not support AMP (Accelerated Mobile Pages) natively, and there is no built-in feature to export directly to AMP-compliant HTML. However, you can create AMP-compatible versions of your Webflow pages manually after export.
1. Understand AMP Limitations
- AMP is a strict framework that limits JavaScript, custom CSS, and third-party elements.
- Webflow uses custom JavaScript and inline styles that are not AMP-compliant out of the box.
- You will need to export your Webflow code and then manually modify it into an AMP version.
2. Export Your Webflow Project
- Go to Project Settings > Export Code.
- Click Export to download all HTML, CSS, JS, and assets.
- You will use these exported files to create your AMP page manually.
3. Build AMP-Compatible Versions
- Create a new HTML file for each AMP page by using Webflow’s exported HTML as a base.
- Modify the HTML file to conform to AMP:
- Replace
<html>
with <html ⚡>
or <html amp>
. - Replace
<script>
tags with AMP Component Scripts Only, and remove all non-AMP JavaScript. - Replace
<img>
with <amp-img>
and include width
, height
, and layout
attributes. - Inline all CSS within a single
<style amp-custom>
tag inside the <head>
, and limit CSS to 75KB. - Add the required AMP boilerplate (
amp-runtime
, async script, and AMP JS schema). - Validate the page using the AMP validator via browser extensions or https://search.google.com/test/amp.
4. Host AMP Pages Separately
- Because Webflow hosting does not allow modifying raw HTML output, you must:
- Host AMP pages on external servers (like Netlify, Vercel, or cPanel-based hosting).
- Reference your AMP pages using
<link rel="amphtml" href="https://example.com/page.amp.html">
in the <head>
of the canonical (Webflow) page.
5. Set Up Canonical and AMP Links
- In the exported Webflow HTML (non-AMP page), include:
- A
<link rel="amphtml">
tag pointing to the AMP version. - In the AMP version, include:
- A
<link rel="canonical">
tag pointing back to the Webflow-hosted canonical URL.
- Use Google AMP Test Tool to ensure compliance.
- Use Google Search Console to monitor AMP indexing if the pages are linked from the canonical site.
Summary
Webflow does not support AMP directly, but you can still implement AMP by exporting your site, manually converting the code, and hosting AMP pages externally. Be sure to follow AMP rules strictly and set up correct canonical relationships between the pages.