Converter

Docs

Generate conversion-friendly code

The quality of a conversion starts with the quality of the HTML, CSS, and JavaScript you feed it.

The converter can process a wide variety of code, but a few simple conventions help more of your page become native Webflow elements instead of custom code — which also means less cleanup once you're inside Webflow. The easiest way to get consistent results is to hand your AI tool the prompt below before it generates anything.

Example AI prompt

Paste this into your preferred AI tool before describing the page you'd like it to build.
Generate clean, responsive HTML, CSS, and JavaScript that can be converted into native Webflow elements.

Requirements:
Use vanilla HTML, CSS, and JavaScript. Use semantic HTML wherever appropriate. Use descriptive, unique class names. Style everything using classes only — avoid tag selectors and ID selectors, and keep selectors simple rather than chaining them deeply. Wrap everything inside a single root <section> or <div>. Avoid framework-specific markup and excessive utility classes.

Create a page for [PROJECT DESCRIPTION] that includes the following section(s):
[SECTION TYPE] — [SECTION DESCRIPTION]
[SECTION TYPE] — [SECTION DESCRIPTION]

Ensure all sections form a cohesive, responsive page with consistent spacing, typography, and visual hierarchy. For animations, use either CSS transitions/keyframes, or GSAP (including free plugins such as ScrollTrigger, Flip, Observer, ScrollTo, Draggable, MotionPathPlugin, EasePack, and CustomEase) when something more advanced is needed.

Replace [PROJECT DESCRIPTION] with a short description of the product, brand, or website. Replace [SECTION TYPE] with the section you'd like, such as Hero, Features, Pricing, Testimonials, FAQ, or CTA. Replace [SECTION DESCRIPTION] with a short description of that section's purpose or content.

This works well with ChatGPT, Claude, Gemini, and most AI tools capable of generating HTML.

Why these guidelines matter

These recommendations come directly from how the converter rebuilds HTML into native Webflow elements. Following them doesn't change how your page looks in the browser — it simply lets more of the generated code become editable inside Webflow after conversion.

Vanilla HTML, CSS, and JavaScript convert most reliably, since framework-specific markup, generated utility classes, and component syntax often need extra processing before they translate into native elements. Semantic elements — section, header, main, article, nav, footer — tend to produce cleaner Webflow structures, and clear, unique class names stay easier to understand and rename once you're inside Webflow.

Keeping styles attached to classes rather than elements or IDs lets the converter recreate more of your styling as native Webflow classes, and simple selectors convert more predictably than long selector chains, which don't always have a direct Webflow equivalent. Wrapping each component or page in a single root element gives the converter a clear structure to work from.

The converter works with both REM and PX units and preserves your original sizing throughout, so you don't need to adjust units before converting AI-generated or exported code.

What to avoid

Framework component source (React, Vue, Svelte, and similar), large utility-class outputs, heavy inline styles, browser APIs with no native Webflow equivalent, and <canvas>/WebGL content can all still be converted — they just tend to produce more custom code and fewer editable Webflow elements. Starting from clean, well-structured code is what lets the converter recreate the most of your design as native, editable Webflow content.