How to paste HTML into Webflow

Updated

For layout and text, convert the code so it lands as elements you can style. Use a Code Embed only for widgets and scripts you won't edit, and rebuild by hand only when the section is small or you're redesigning it anyway.

Can you paste HTML into Webflow?

Not directly. Webflow doesn't turn pasted code into elements, because the Designer builds elements only from its own copy format. There are three routes: a Code Embed (the code runs, but you can't style it), a rebuild by hand, or a converter such as FlowPaste, then ⌘V (Ctrl+V) in the Designer.

Option 1: the Embed element

Drag a Code Embed element onto the canvas, paste your HTML, CSS and JavaScript into it and save. The published site runs the code exactly as you wrote it. One Code Embed holds up to 50,000 characters.

  • Use an Embed for widgets, third-party scripts and code that you will not edit again.
  • The Style panel cannot show the code in an Embed. Clients who edit the site cannot see or change it.
  • To add or edit an Embed, you need a paid Webflow plan: a Core, Growth, Agency or Freelancer Workspace, or a Site plan.

Option 2: make the section again by hand

Add each section, div, heading and link yourself. Then copy each CSS value into the Style panel for each breakpoint. The result is clean, but 1 typical section of a landing page takes 30 to 90 minutes.

The FlowPaste Convert tab after converting an HTML section: Ready to paste, 18 elements, 17 classes, 100% native, and a note that the fonts and 5 colors were matched to the site
FlowPaste's Convert tab: paste the HTML and CSS, then press ⌘V on the canvas.

Option 3: convert the code to native Webflow elements

The Designer accepts Webflow elements from the clipboard. A converter writes your HTML and CSS in that clipboard format, so when you paste, the Designer adds real elements and classes.

  1. Install FlowPaste and open your site in the Webflow Designer.
  2. Click the FlowPaste button at the bottom right to open the panel.
  3. Paste your HTML into the panel, with its <style> tag and any <script> tag.
  4. Click Convert & copy.
  5. On the canvas, select the element the section should go into.
  6. Press ⌘V (Ctrl+V).

Which method is correct for you?

EmbedRebuild by handConvert (FlowPaste)
You can edit it in the Style panelNoYesYes
Time for 1 section1 minute30–90 minutes1 minute
Responsive breakpointsIn the codeYou set themFrom your media queries
AnimationsGSAP in a scriptInteractions by handGSAP → Interactions
You must have a paid Webflow planTo edit the EmbedNoNo

Questions

Why doesn't pasted HTML become elements in Webflow?

Because code copied from an editor or an AI chat is plain text on the clipboard, and the Designer creates elements only from its own copy format, which Webflow uses when you copy elements inside the Designer. Put the code in a Code Embed to run it, or convert it to get elements. How Webflow's clipboard format works →

Can I paste HTML into a Webflow rich text field?

Not as code. Formatted content copied from a web page or a document (not its source code) keeps its formatting and links when you paste it into a rich text element. Raw HTML goes in through the element's + menu, which has a custom code button; like a Code Embed, that needs a paid Webflow plan.

Does Webflow have an HTML import?

No. Webflow imports CSV files into the CMS, but it has no HTML import; converting the code is the way in. How to import HTML into Webflow →

Does pasted HTML keep my classes?

Yes, if you use a converter. FlowPaste keeps your class names. If a class with the same name exists with different styles, Webflow adds the suffix -2.

Sources

Related guides

Convert your code to native Webflow elementsFree Chrome extension · 3 conversions a dayAdd to Chrome