HTML to Figma Auto Layout
HTML to Figma Auto Layout That Never Breaks the Design
HTML to Figma Auto Layout that checks itself: every child verified within 2 px, simpler fallbacks, constraints, and a list of why any frame stayed absolute.
- Every Auto Layout frame is checked: each child must land within 2 px
- Failed plans fall back to a simpler stack, then to absolute + constraints
- Center, Fill and gap-item Fill so frames resize like the real page
- Diagnostics list every frame that stayed absolute, and why
EUREKA! · · 6 min read

You import a page, the layers panel fills with Auto Layout frames, and it looks right — until you edit a headline and half the section jumps. That is the real problem with HTML to Figma Auto Layout: a wrong guess is worse than no guess, because you only find it when something moves.
HTML to Frames treats Auto Layout as something that has to prove itself. Every frame it converts is checked against what the browser actually rendered, and if the check fails, the frame keeps its exact position instead. You get as much Auto Layout as the page allows, and none that breaks the design.
What verified Auto Layout does
When you import a page with the Auto Layout option on (it is on by default, on every plan), the plugin turns rows, stacks and grids into Auto Layout frames with real gaps, padding and alignment. The difference is what happens next: before a frame is kept, the plugin confirms that every child still sits where the browser put it, within 2 px.
So the promise is simple. Where Auto Layout holds, you get it. Where it doesn't, you get a frame that looks exactly like the page and tells you why it wasn't converted.
How it works
The full mechanics are in the HTML to frame explainer. In short:
- Pixel-exact first. The page is built with absolute positions from the browser's measured geometry. This version is guaranteed to look right and is the safety net.
- Infer, inside out. Frames are walked from the innermost outward. From the measured positions the plugin infers vertical and horizontal stacks, wrapping rows, gaps, padding and alignment.
- Add responsive meaning. Centred content is aligned Center, max-width boxes stay centred, equal cards and flex-grow items become Fill, and in a "logo … menu … icons" header the gap item becomes Fill so the groups stay at the edges as the frame widens.
- Verify every child. After a plan is applied, each child's position is compared with the original. All must be within 2 px.
- Fall back, never break. If the check fails, a simpler plan is tried. If that fails too, the frame keeps absolute positions and gets sensible constraints (Stretch, Scale, Center, Min or Max), so it still behaves when its parent is resized.
Because the engine works from rendered geometry rather than parsing CSS, flexbox, grid, floats and inline-block all produce Auto Layout when the result is regular. For the CSS-to-Figma mapping in detail, see CSS flexbox and grid to Figma Auto Layout.
How much of a page converts? In our tests on real sites, Auto Layout was inferred on roughly 86–97% of frames — for example 93% on one product site and 88% on Linear and Stripe. The share depends on how a page is built, so read these as measurements, not a guarantee.
Why it's different
Auto Layout on import is no longer rare, and several tools advertise it. The question worth asking is what happens when the inference is wrong.
| Auto Layout on import | Per-frame verification described publicly | |
|---|---|---|
| HTML to Frames | Yes, on every plan | Yes: 2 px check, simpler plan, then absolute + constraints |
| html.to.design | Yes, advertised | Not found in public docs |
| Builder.io Visual Copilot | Yes (beta) | Not found; Builder.io itself cites roughly 80–90% accuracy |
| html2design | No (fixed positions) | Not applicable |
In the public docs we reviewed (October 2026), the tools that offer Auto Layout describe what they convert, but we found no claim that each frame is checked against the browser layout before it is kept. Builder.io is open about its approach being roughly 80–90% accurate, which is a fair description of inference without a check. html2design imports with fixed positions only.
None of this makes the other tools bad at what they do. It means that with HTML to Frames the trade-off is explicit: a tricky section may stay absolute, but a converted section will not quietly drift from the original.
How to use it
- Open the plugin and paste a URL in Link (or use Multiple, Local file, Browser or AI).
- Under Screens, keep Desktop (Site width), or pick another screen. On Pro you can use Responsive set to check the layout at several widths.
- Under Options, leave Auto Layout on.
- Press Import.
- On the results screen, read the line "Auto Layout on N of M frames; the rest keep exact absolute positions."
- Open Why N frames kept absolute positions to see the exceptions, grouped by reason. Click any frame name to select it on the canvas.
Verified Auto Layout is available on every plan, including Free.
Diagnostics: the exceptions, explained
The diagnostics panel is what makes the verification useful rather than invisible. Each reason has a plain-language label, for example:
- Uneven horizontal gaps / Uneven vertical gaps — items are spaced differently and nothing can absorb the difference.
- Overlapping items — children overlap, so they are neither a row nor a column.
- Mixed alignment — some items are left-aligned, others centred or right-aligned.
- Irregular grid — grid rows start at different positions or use different gaps.
- Text measures differently in Figma — font metrics or a substituted font would shift the layout under Auto Layout.
- A child would move / A child would resize — the verification step caught a plan that didn't hold.
As the panel itself puts it: nothing is broken; these frames look exactly like the page, they just don't resize automatically. If you think a frame should have converted, Copy details gives you the report to send to support.
When it helps most
- Redesigns. Agencies can import a client's site and start editing sections straight away, without first auditing which stacks are real.
- Design-system work. Teams pulling a live product into Figma get components and sections that resize like the production UI, so measurements and spacing can be trusted.
- Responsive reviews. With the Responsive set (Pro), each screen gets its own verified Auto Layout, so you can compare how stacks change across breakpoints.
- Developer handoff in reverse. Front-end developers can see from the diagnostics which sections are built irregularly — often a hint that the layout code is more complex than it needs to be.
Good to know
- Verification is conservative by design. Overlapping decorations, badges that break out of cards, or deliberately irregular spacing will usually keep those frames absolute.
- Missing fonts matter. If a font is substituted, text can measure differently and a frame may stay absolute. Map fonts on the Missing fonts screen before the build to reduce this.
- Scroll areas such as carousels and side menus overflow on purpose; they are listed as Scroll area, and their items still use Auto Layout.
- The 86–97% range comes from our own tests on real sites. Your pages may score higher or lower.
- Not converted yet: skew and 3D transforms,
path()clip-paths, multi-layer masks and Display-P3 colour.
Related
- How a DOM becomes Figma Auto Layout — the step-by-step explainer
- CSS flexbox and grid to Figma Auto Layout — pattern-by-pattern mapping
- Check HTML to Figma accuracy — results, diagnostics and the reference screenshot
- HTML to Figma plugin — what the plugin converts
- Pricing — plans and limits
Get the plugin, import a page you know well, and resize the result: the frames that held are the ones you can trust.
Frequently asked questions
- Does HTML to Figma Auto Layout always work?
- No tool can turn every page into Auto Layout, because some layouts overlap or use irregular spacing on purpose. HTML to Frames applies Auto Layout only where it can verify the result, and keeps exact absolute positions elsewhere. In our tests on real sites that was roughly 86 to 97 percent of frames.
- What does the 2 px verification check?
- After an Auto Layout plan is applied to a frame, the plugin compares the position of every child with where the browser rendered it. Each child must be within 2 px. If any child moves further, a simpler plan is tried, and if none holds the frame keeps absolute positions with constraints.
- Why did some frames stay absolute after my import?
- Open Why N frames kept absolute positions on the results screen. Frames are grouped by reason, such as uneven gaps, overlapping items, mixed alignment or text that measures differently in Figma. Click a frame name to select it on the canvas and convert it by hand if you need it to resize.
- Is Auto Layout included in the free plan?
- Yes. The Auto Layout option, including verification, constraints and diagnostics, is available on every plan. Pro adds extras such as the Responsive set, styles and variables, components and the reference screenshot.
- Will a frame that stayed absolute still resize?
- It won't reflow like an Auto Layout frame, but it gets constraints such as Stretch, Scale, Center, Min or Max based on its position. That means it still behaves sensibly when its parent is resized, for example staying centred or stretching across the width.
Stop redrawing the web.
Paste a link and get real, editable, responsive Figma layers in seconds. Free to start — 10 imports every month.
