Code Embed in Webflow: how to add HTML, CSS and JavaScript
How to add a Code Embed element in Webflow, which plan you need, why scripts do not run in the Designer and how to handle the 50,000 character limit.

Webflow gives a lot of control over layout and Interactions, but shaders, complex buttons and custom widgets still need code. That is what Code Embed is for.
How to add Code Embed
- Open the Add panel and find Code Embed.
- Drag it onto the canvas.
- Paste the code and click Save & Close.
- Publish the site.

Which plan you need
Custom code works on paid plans: a Site plan or a paid Workspace. On the free plan you can add code but cannot publish a site with it.
Why scripts do not run in the Designer
The Designer does not run scripts and shows a placeholder instead. Styles and iframes sometimes preview, but the final result is visible only after publishing.
Character limit
Paid plans allow up to 50,000 characters of custom code. For bigger components, minify the code, split it across several Code Embeds or host the script and link to it.
Other places for code
- Site settings → Custom Code: head and before closing body on every page.
- Page settings: code for one page.
- CMS Rich Text: code inside an article.
Ready components
For every catalog component the bot sends a separate Webflow embed that fits the limit and pulls no external libraries.





