Publish Helper logo

Clean HTML for Webflow

Webflow's design system assumes classes decide appearance, so a pasted font-size breaks it outright: inline style out-ranks every class rule. This page covers what happens inside a Rich Text element versus a CMS Rich Text field, why tables need an Embed element, and how to keep .w-richtext in charge.

I

HTML Issues with Webflow

Webflow's Rich Text element applies your site's typography classes to content. When pasted HTML carries inline styles, those styles override Webflow's classes, causing fonts, sizes, and colors to break from your design system. Google Docs CSS classes are meaningless in Webflow and create dead class references.

II

What Webflow Actually Does to Pasted HTML

Editor:Webflow Designer with Rich Text Elements; CMS collections use Rich Text fields

Pasting inside a Rich Text element

Webflow rebuilds the paste into RTE child elements — headings, paragraphs, lists, links — and keeps inline style attributes on them. Those inline styles beat your class-based typography, because inline style out-ranks a class selector.

Pasting into a CMS Rich Text field

The field accepts a limited tag set and drops custom classes and ids. Heading tags are kept, but a <div class="..."> wrapper from a document editor is discarded along with the class.

Rendering the published page

RTE content sits inside .w-richtext, and Webflow's own base styles apply to direct children. Your stylesheet's .w-richtext h2 rule loses to style="font-size:18px" sitting on the h2 itself.

Needing a table or an iframe

The RTE cannot hold those as editable children. Add an Embed element (or custom code inside the RTE) and put the markup there instead.

III

How to Paste Clean HTML into Webflow

  1. 1.

    Copy the passage you want to publish

  2. 2.

    Clean it in Publish Helper — inline styles removed is the critical option for Webflow

  3. 3.

    In the Designer, double-click into the Rich Text element (or open the CMS Rich Text field)

  4. 4.

    Paste, then check each heading in the Navigator to confirm it is a real H2/H3, not styled body text

  5. 5.

    For anything the RTE cannot hold (tables, iframes), add an Embed element and paste the markup there

IV

Webflow Tips

V

Webflow Paste Problems, and the Fix for Each

Pasted headings ignore my typography classes

The heading carries an inline font-size. Remove inline styles in Publish Helper before pasting, then the class rule from your style panel is the only thing setting size.

The table disappeared after pasting into the RTE

Webflow's Rich Text element does not preserve tables as editable content. Rebuild the table in an Embed element, with cleaned HTML that carries no width attributes.

A CMS item's rich text field rejects my markup

CMS Rich Text fields only accept a restricted tag set. Remove ids, custom classes and nested layout divs before pasting; keep paragraphs, headings, lists and links.

Webflow's whole design system assumes that classes decide appearance. That assumption is what makes pasted document HTML so destructive: a Docs paragraph arrives with font-family, font-size and colour written into the element, and no class rule can win against that without !important. The fix is structural, not cosmetic — remove the inline styles, let .w-richtext h2 and your typography classes do the work, and rebuild anything the RTE cannot hold in an Embed element.

There is a second, quieter trap in CMS collections. Collection items are rendered by a template page, and the Rich Text field is sanitised to a limited set of tags; custom classes and ids are dropped on save. So markup that looked right in the Designer preview can lose its wrappers in the published collection page. Test the published item, not only the canvas, and prefer semantic tags over class-dependent layout.

VI

Tools for This Workflow

VII

Frequently Asked Questions

Should I use inline styles in Webflow Rich Text?

+

Only when you deliberately want one element to differ from your typography classes. Inline style always wins, which makes it a one-off override and a maintenance problem later. For imported documents, remove every inline style and restyle through classes.

Why did my h2 become a paragraph in a Webflow CMS field?

+

If the source used a styled span or a div instead of a real heading tag, the field has nothing to preserve. Run heading conversion before pasting so the markup contains genuine h1–h6 elements.

Why do Google Docs styles break my Webflow design?

+

Webflow uses CSS classes for typography. Google Docs inline styles (font-size, font-family, color) have higher CSS specificity than classes, so they override your Webflow design. Publish Helper strips these inline styles.

Can I use Webflow's Rich Text element?

+

Yes, Rich Text elements are the recommended approach for blog content in Webflow. Clean your HTML with Publish Helper first to ensure the content inherits your Webflow typography styles.

What about Webflow CMS collections?

+

When adding content to CMS collection Rich Text fields, use the same workflow: clean in Publish Helper, paste into the Rich Text field in the CMS editor.

Last updated: May 2026|Built by content editors for content editors|Used by 10,000+ bloggers
Related Tools & Guides

Ready to clean your HTML?

Open Publish Helper

Last updated: March 2026

Changelog

v3.5.02026-11-08
  • NewWarm dark mode — switch it from the header; your choice is remembered
  • ImprovedWith no saved choice, the theme follows your system's light/dark preference from the first frame, without a flash
  • FixThe browser's theme colour now always matches the current theme — one meta tag instead of two
  • FixDark mode rebuilt on the current page architecture, so it applies consistently to every page
  • ImprovedEvery pull request now runs type checks, unit tests and a production build automatically — same features, steadier quality
v3.4.02026-11-05
  • New4 new platform guides — ChatGPT, PDF, beehiiv and Mailchimp
  • ImprovedAll 16 platform guides rewritten with platform-specific content; Keyword Density, Readability and HTML Diff guides expanded ~3×
  • FixAd banners no longer push content down the page — stable layout from first paint
  • FixStructured Data tool's date field no longer stuck at the build date
  • ImprovedMobile: compact cookie banner, larger touch targets, AA-compliant text contrast
  • ImprovedRelated-page links now stay in your language
  • FixInternal fixes — sitemap coverage, canonical URLs, security headers and legacy URL handling
v3.3.12026-06-17
  • FixSlug generator updated to latest AI model for better reliability
  • FixHeading conversion now supports U+FE30 colon separator (︰) used in vertical CJK text
  • FixHeading conversion no longer includes leading &nbsp; in the extracted title
  • FixOG image generator now wraps long CJK text and prevents overflow with ellipsis truncation
  • ImprovedUpdated sharp to 0.35.1 for better image processing
v3.3.02026-05-30
  • FixSEO & a11y: <html lang> attribute, theme-color meta, OG image alt text i18n
  • FixGA scripts properly removed on consent decline
  • FixContent Stats i18n + link count regex fix
  • FixTool page section numbering corrected (all 14 pages)
  • ImprovedSimplified cleanup options — removed 10 checkboxes Tiptap already handles, kept only 4 useful ones
  • ImprovedAuto-clean only triggers on paste, not every content change
v3.2.12026-05-26
  • FixHeading converter now correctly splits paragraphs containing MULTIPLE heading-strong elements
  • FixHeading converter now places extracted headings BEFORE their body paragraph instead of after
  • FixEditor toolbar no longer causes React hydration mismatch on first paint
  • FixMissing @tiptap/extension-drag-handle-react dependency added
v3.2.02026-05-23
  • New6 new SEO content editing tools — Case Converter, Text Extractor, Text Diff Checker, Keyword Density Analyzer, SERP Preview Generator, Readability Checker
  • NewHeading dropdown expanded to H5-H6 (was H1-H4 only)
  • NewTable toolbar — insert/delete rows & columns, merge/split cells, toggle header row
  • NewDrag Handle React — drag and reorder blocks in the editor
  • NewCase Converter — 11 case formats including camelCase, PascalCase, snake_case, kebab-case
  • ImprovedSERP Preview — accurate Google-style preview with desktop/mobile views
  • ImprovedText Diff — word-level highlighting within changed lines
  • ImprovedAll new tools linked from the main page TOOLS & GUIDES section and related pages
  • Improvedzh-TW FAQ alignment fixed across all tools
v3.1.12026-05-23
  • FixEditor draft restore — saved content now correctly loads into the Tiptap editor on page reload
  • ImprovedDependency updates for better performance and stability
v3.1.02026-05-14
  • NewBold List Labels — auto-bold label prefixes (e.g. "Name: John" → "<strong>Name:</strong> John") in list items
  • NewFormatting Add-ons group — Heading Conversion, CJK Auto-Spacing, and Bold List Labels now grouped under a collapsible section
  • FixCJK Auto-Spacing now works across HTML tag boundaries
v3.0.22026-05-08
  • FixHeading converter now correctly splits multiple H2/H3 prefixes inside a single <strong> element separated by <br> tags
v3.0.12026-05-07
  • FixHTML cleaner now properly strips orphaned <strong><br><br></strong> tags left behind by Google Docs
  • FixHeading converter now detects H2/H3 prefixes inside <strong> tags embedded at the end of a paragraph
  • FixTrailing <br> tags at the end of paragraphs are now stripped — no more pointless line breaks before headings
v3.0.02026-05-03
  • NewHTML Diff Viewer — compare before and after HTML with a visual diff (green/red)
  • NewContent Stats Calculator — word count, reading time, heading, image, and link counts
  • NewHTML Accessibility Checker — detect missing alt text, empty headings, skipped levels, and more
  • NewOG Image Generator — create 1200×630 social share images from your blog post title
  • NewMarkdown ↔ HTML Converter — bidirectional conversion between Markdown and HTML
  • NewTable of Contents Generator — auto-generate nested TOC from heading tags in HTML or Markdown
  • NewJSON-LD Structured Data Builder — generate Article, BlogPosting, and FAQPage schema markup
  • NewAuto-clean on paste — optional toggle that auto-triggers cleanup when content is pasted
  • NewTable cleanup options — strip cell widths and remove empty table cells
  • NewAuto-save draft — content is saved to localStorage and restored on accidental refresh
  • NewAll new tools linked from the main page TOOLS & GUIDES section and related pages
v2.4.12026-04-27
  • NewParagraph option added to heading dropdown — convert headings back to normal text
  • FixH1–H6 heading prefixes now convert correctly even when pasted with leading line breaks
  • FixFixed page crash on load — cookie consent now renders reliably
  • ImprovedDependency updates for better performance and stability
v2.4.02026-04-17
  • NewClear button — quickly wipe all editor content and reset the HTML panel from the left panel header
  • FixEmpty <p></p> placeholder no longer appears in the HTML panel after clearing the editor
  • NewImage insert via URL — paste any image URL into the editor with a new toolbar popover
v2.3.22026-04-14
  • FixHeading conversion rewritten with DOM parsing — now works with any wrapper tag, split headings, and safely preserves <li> inside lists
  • FixEmpty heading tags left behind by Google Docs are now automatically removed
v2.3.12026-03-25
  • FixHeading conversion now handles spaces before the colon (e.g. "H2 : Title")
  • FixRight-to-left content (Arabic, Hebrew) no longer inverts embedded English text in the editor
  • FixSpacer paragraphs (&nbsp;) are now preserved in the HTML output instead of being stripped
v2.3.02026-03-20
  • NewCJK auto-spacing — automatically insert spaces between CJK characters and English letters or numbers (powered by pangu.js)
  • NewStandalone CJK Auto-Spacing tool page with before/after examples, FAQ, and SEO-optimized bilingual content
  • NewChinese UI text auto-spacing — zh-TW interface text now has proper CJK–Latin spacing
  • FixMobile toolbar no longer floats and follows scrolling — stays pinned at the bottom of the editor
  • FixMobile toolbar buttons now scroll horizontally instead of overflowing
  • FixFind & Replace inputs no longer break out of the container on narrow screens
v2.2.12026-03-20
  • FixHeading conversion now uses the text prefix (e.g. H3:) to set the heading level, even when the content is already inside a different heading tag
v2.2.02026-03-18
  • NewAI-Powered Title to SEO Slug — Convert blog titles in any language to SEO-friendly English slugs in under 10 seconds
  • NewSlug generator toggle on the main page — generate slugs right after editing, above the fold
  • NewTable support — pasted tables from Google Docs now render correctly
  • NewRemove <br> after headings cleanup option (on by default)
  • NewPartial text selection copy in the HTML code view
  • NewSticky Clean HTML button at the bottom of the page
  • ImprovedHeading conversion now strips prefixes from existing heading tags and supports Chinese full-width colon (:)
  • ImprovedShared footer across all pages
v2.1.22026-03-17
  • FixBug fixes and improvements
v2.1.12026-03-16
  • FixBug fixes and improvements
v2.1.02026-03-16
  • NewFormatted/Raw toggle for the HTML code view
  • ImprovedCopying from the code panel now always gives clean, unformatted HTML
v2.0.02026-03-16
  • NewWelcome to Publish Helper — free online tools for content editors
  • ImprovedImproved search engine visibility
v1.1.02026-03-16
  • ImprovedClipboard copy — clean HTML output matches the code view
v1.0.02026-03-16
  • NewRich text editor with Google Docs paste support
  • NewHTML cleanup: strip styles, classes, empty tags, and Google Docs artifacts
  • NewHeading conversion from text prefixes to proper HTML tags
  • NewFind & replace with regex support and saveable presets
  • NewSyntax-highlighted HTML preview with one-click copy