How to Paste HTML into Bricks Builder

You found a great section on CodePen, got a layout from an AI tool, or have a static HTML template from a designer. Now you want it in Bricks Builder. You can paste it into a Code element, but then it’s one uneditable block: no visual editing, no Bricks classes, no dynamic data. What you really want is the HTML converted into real Bricks elements.

Option 1: the Code element (quick, but a dead end)

Bricks has a Code element that outputs raw HTML (enable Code Execution in Bricks settings first). It’s fine for a one-off embed. But everything inside is a single chunk: editors can’t change the text visually, you can’t bind dynamic data, and you can’t reuse the classes in the builder.

Option 2: rebuild by hand

Recreate the structure element by element: Section, Container, Div, Heading, Text, Button, Image. Then copy each class name into Bricks’ class selector. It gives the cleanest result, and for a large page it takes hours.

Option 3: convert HTML to Bricks elements

Swiss Knife for Bricks adds a Paste HTML feature that converts HTML into native Bricks elements in one step.

Set it up

  1. Make sure the site runs on HTTPS. Browsers only allow clipboard access on secure pages.
  2. In Swiss Knife’s settings, enable Paste HTML and save (it’s off by default).
  3. If your HTML contains inline SVG, enable Code Execution in Bricks, because inline SVG becomes a Code element.

Paste

  1. Copy the HTML: from your code editor, from the browser’s inspector, or from anywhere on your clipboard.
  2. In the Bricks editor, right-click → Paste HTML, or use the clipboard icon in the top bar.
  3. The first time, your browser asks for clipboard permission. Allow it.

The HTML appears as a tree of Bricks elements you can edit visually.

What converts

HTMLBecomes
h1–h6, pHeading and Text elements
a, buttonsLink / Button elements
div, spanDiv elements
img, SVG filesImage elements (the file itself isn’t uploaded; add it to the Media Library)
inline <svg>A Code element
class="…"Class names attached to the elements

Class names are attached, but their CSS isn’t imported into Bricks. Bring the styles along with a CSS framework or your own stylesheet: this is where a utility framework like Tailwind shines, because the classes carry the design.

Tips for clean results

  • Paste sections, not whole documents. Copy the <section> you need rather than <html> and <head>.
  • Remove scripts first. Interactivity from the original page won’t come along.
  • Re-link images to files in your Media Library after pasting.
  • Rename classes to your naming system right away, before you reuse them across pages.
Paste HTML as real Bricks elements

Paste HTML as real Bricks elements

Swiss Knife for Bricks converts HTML into editable Bricks elements, plus many workflow tools for Bricks Builder.