How does copy and paste work in Webflow? (the XscpData clipboard format)
Updated
When you copy in the Webflow Designer, Webflow puts one JSON object on the clipboard, of type @webflow/XscpData. It lists the elements as nodes, their classes as styles, the images as assets and, in some copies, the interactions. Pasting that JSON into a Designer builds real elements. Webflow doesn't document the format, so it can change.
What's on the clipboard
A copy in the Designer puts a single clipboard type on the clipboard, application/json, holding an object with three keys: type, payload and meta. Plain text and HTML aren't there, and the Designer only builds elements from this JSON, which is why code you paste from an editor doesn't become elements.
Below is a trimmed skeleton of a copied section with one heading. The comments are ours; the real JSON has none, and ids are longer.
{
"type": "@webflow/XscpData",
"payload": {
"nodes": [ // every element and text run, in a flat list
{ "_id": "6f1c…", "type": "Section", "tag": "section",
"classes": ["a1b2…"], // style ids: a base class, then any combo class
"children": ["9d3e…"], // child node ids
"data": { … } }, // tag settings, attributes, links, image settings
{ "_id": "9d3e…", "type": "Heading", "tag": "h1",
"classes": [], "children": ["7c40…"] },
{ "_id": "7c40…", "text": true, "v": "Ship faster" }
],
"styles": [ // the classes
{ "_id": "a1b2…", "type": "class", "name": "hero", "comb": "",
"styleLess": "padding-top: 96px; padding-bottom: 96px;",
"variants": { "small": { "styleLess": "padding-top: 48px;" },
"main_hover": { "styleLess": "…" } } }
],
"assets": [], // images the nodes use
"ix1": [], "ix2": { … }, // older interaction formats
"ix3": { "interactions": [], "timelines": [] }
},
"meta": { … } // counters and the source site
}What the payload carries
| Part | What it holds | What our tests found |
|---|---|---|
| nodes | Every element and text run, linked by child ids. Element nodes have a type (Section, Block, Heading, Link, Image, List, Form…), a tag, classes and settings. | A paste must have exactly one root node. More than one put the Designer in a broken state until the tab was reloaded. |
| styles | One entry per class: its name, its CSS as longhand properties in styleLess, and variants keyed by breakpoint and state. | Breakpoints are main (desktop), medium, small, tiny and xl; states are added as main_hover, small_focus and so on. A combo class has comb "&". Colors are hsla(), and CSS variables arrive as plain values. |
| assets | The images the nodes use, including background images, which styles reference as @img_ plus the asset id. | An image's file stays on Webflow's asset storage; the asset entry points at it. |
| ix3 | Webflow Interactions with GSAP: interactions (triggers such as page load, scroll, click and hover) and timelines (the animated properties, from and to values, timing). | Not every copy carries it: our first copies of elements with interactions did, but copies of pasted elements in a later test didn't, and we haven't yet pinned down when Webflow includes it. Interactions we generated pasted fine. ix2, the older format, stayed empty in our copies. |
| meta | Counters (for example dropped links) and the id of the site the copy came from. | Optional: pastes without meta, or without a source site, were accepted. |
What Webflow does when you paste
- A class whose name already exists on the site with the same styles is reused; with different styles, the pasted one is renamed with -2.
- Webflow gives pasted styles new ids and keeps the CSS text as it was pasted.
- A font-family whose first font the site doesn't know is dropped, so text falls back to the site's default font.
- Element ids and custom attributes carry over as they are, even when the id is already used on the page.
Webflow doesn't document this format
Everything on this page comes from our own tests: copying elements in the Designer, reading the clipboard, and pasting generated data back (October 2026). Webflow doesn't publish the format and can change it at any time, so treat it as an observation, not a specification.
FlowPaste writes this format from your HTML, CSS, Tailwind and GSAP. That is how a paste with ⌘V (Ctrl+V) arrives as native elements, classes and Interactions instead of text or a Code Embed.
Questions
Can I paste JSON into Webflow?
Only Webflow's own XscpData JSON, and only when it is on the clipboard as application/json data. JSON copied as plain text doesn't become elements.
Why did my pasted classes get -2 at the end?
Your site already had classes with those names and different styles. Webflow keeps the existing class and renames the pasted one, so nothing on the site changes.
Can you paste HTML into Webflow?
Not directly: Webflow doesn't turn plain HTML on the clipboard into elements. How to paste HTML into Webflow →