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.

A FlowPaste conversion at 76% native, listing what stays as code: an inline SVG as an Embed, 2 pseudo-element rules, 1 @keyframes animation and 1 style Webflow can't store, with a Fix with AI button
FlowPaste lists what it kept as code and why, so you know what is in the Embed.

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.

FlowPaste's Convert options: Match my site (the site's Geist font and 8 colors), Match browser defaults, Client-First class names and Keep unconvertible code as an Embed
Keep unconvertible code as an Embed decides whether that code is pasted at all.

Code Embed vs native elements

Code EmbedNative elements
Style panelThe Embed's own box only; the code inside is styled in the codeEvery property, per breakpoint and per state
NavigatorOne Code Embed item; what's inside isn't listedEvery element, nested as on the page
Client editingNo: content editors can't add or edit custom codeYes: text, links and images
CMS bindingCollection fields can be inserted into the codeFields bind to the element's text, image or link
Character limit50,000 characters per EmbedNo code, so no code limit
Plan neededA Core, Growth, Agency or Freelancer Workspace, or a Site planAny 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.

PlaceWhere to find itApplies toLimit
Site custom codeSite settings → Custom code: Head code, and Footer code (before </body>)Every page50,000 characters each
Page custom codePage settings → Custom code: Inside <head> tag, and Before </body> tagThat page50,000 characters each
Code Embed elementThe Add panel, on the canvas; or the + menu inside a rich text elementThat spot on the page50,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

Related guides

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