Webflow custom code: Code Embed vs native elements
Updated
Webflow takes custom code in 3 places: a Code Embed element on the page, the page's custom code (head and body), and site-wide custom code in Site settings. Use them for widgets, tracking scripts, canvas and complex SVG. For layout and content (sections, text, buttons, images), convert the code to native elements instead, so you can style it in the Designer, clients can edit it and the CMS can bind to it.
What is a Code Embed in Webflow?
A Code Embed is a Webflow element that holds your own HTML, CSS or JavaScript, up to 50,000 characters, and runs it on the published site. Webflow treats it as one closed box: you edit the code, not the elements inside it, and content editors can't change it.

What is a native Webflow element?
A native element is one that Webflow builds and stores itself: a Section, Div Block, Heading, Paragraph, Link, Image or Form. You select it in the Navigator, style its class per breakpoint and state in the Style panel, bind it to CMS fields, and content editors can change its text and images.

Code Embed vs native elements
| Code Embed | Native elements | |
|---|---|---|
| Style panel | The Embed's own box only; the code inside is styled in the code | Every property, per breakpoint and per state |
| Navigator | One Code Embed item; what's inside isn't listed | Every element, nested as on the page |
| Client editing | No: content editors can't add or edit custom code | Yes: text, links and images |
| CMS binding | Collection fields can be inserted into the code | Fields bind to the element's text, image or link |
| Character limit | 50,000 characters per Embed | No code, so no code limit |
| Plan needed | A Core, Growth, Agency or Freelancer Workspace, or a Site plan | Any plan, including the free Starter plan |
Where custom code goes in Webflow
Webflow takes custom code in three places. All three need a Core, Growth, Agency or Freelancer Workspace, or a Site plan. Custom code shows in Preview but goes live only when you publish.
| Place | Where to find it | Applies to | Limit |
|---|---|---|---|
| Site custom code | Site settings → Custom code: Head code, and Footer code (before </body>) | Every page | 50,000 characters each |
| Page custom code | Page settings → Custom code: Inside <head> tag, and Before </body> tag | That page | 50,000 characters each |
| Code Embed element | The Add panel, on the canvas; or the + menu inside a rich text element | That spot on the page | 50,000 characters |
When to use an Embed
- Third-party widgets, for example booking, chat and forms from other services
- Tracking scripts and consent scripts (these usually belong in Site custom code)
- Canvas, WebGL and complex inline SVG
- Code that a different system changes each time you publish
How to change Embed code to native elements
If an Embed holds layout and text, convert the code: paste it into FlowPaste, press ⌘V (Ctrl+V) in the Designer, then delete the Embed.
Some code can't be native, for example pseudo-elements, keyframes and inline SVG. FlowPaste keeps that code in a smaller Embed next to the new elements.
Questions
What is the Code Embed character limit?
50,000 characters per Code Embed, and the same for each head and footer code box in Site settings and Page settings. A full page of HTML and CSS can go over it; converting the layout to native elements leaves only the small parts Webflow can't express in an Embed.
Do embeds need a paid Webflow plan?
Yes. Adding custom code, in a Code Embed or in Site or Page settings, needs a Core, Growth, Agency or Freelancer Workspace, or a Site plan. A Code Embed that FlowPaste pastes shows on the free Starter plan too, but editing its code needs a paid plan.
Is an Embed bad for SEO?
No, not directly. Search engines read the HTML in an Embed and in native elements alike. The problem is upkeep: content in an Embed gets forgotten, and someone who doesn't write code can't update it.
Sources
- Webflow Help: Custom code embed — a Code Embed holds up to 50,000 characters; adding one needs a Core, Growth, Agency or Freelancer Workspace or a Site plan
- Webflow Help: Custom code in head and body tags — site and page head and footer code, 50,000 characters each, same plans
- Webflow Help: Edit site content as a content editor — content editors can't add or edit custom code