Skip to content
html2LVGL

Features

Everything from a static panel to a full interactive UI

Badges show the tier each capability unlocks at. Items marked Pro are planned and not available yet. html2LVGL is currently in testing.

Layout engine

  • Free

    Basic box model

    Padding, margin, and absolute positioning, mapped to lv_obj_set_size() / lv_obj_set_pos().

  • Credits

    Full Flexbox & Grid mapping

    display: flex and CSS Grid translated to lv_obj_set_flex_flow() / lv_obj_set_flex_align().

Styling

  • Free

    Solid colors, borders, radii

    The essentials for a static panel or dashboard layout.

  • Credits

    Gradients, opacity, shadows

    Two-stop linear gradients, box shadows, and alpha blending carried through to LVGL styling.

Assets & fonts

  • Free

    Built-in font set

    Montserrat, sizes 12–48, no conversion step required.

  • Credits

    Image widgets

    <img> tags become lv_image widgets plus an asset list; convert the image files themselves with LVGL's image converter.

  • Pro · coming soon

    Asset optimization

    Automatic size/format tuning on top of image conversion for production builds.

Interactivity & events

  • Free

    Static UI

    Exactly what you designed, rendered — no interaction states.

  • Credits

    CSS pseudo-states

    :hover and :active map to LV_STATE_PRESSED.

  • Pro · coming soon

    Custom event handlers

    :disabled and :focus map to LV_STATE_DISABLED / LV_STATE_FOCUSED, with empty C callback stubs generated via lv_obj_add_event_cb().

Export targets

  • Free

    C / C++

    Native source, structured the way you would write it by hand.

  • Credits

    MicroPython & LVGL XML

    One-click toggle between all three output formats from the same design.

Developer tooling

  • Free

    Web app UI

    Every tier converts through the same browser-based tool.

  • Pro · coming soon

    VS Code extension sync

    Stream converted code straight into your local PlatformIO or ESP-IDF workspace on save.

  • Pro · coming soon

    Headless CLI

    Convert HTML component libraries to LVGL code as a step in your CI/CD pipeline.

  • Pro · coming soon

    Multi-screen management

    Convert multi-page web prototypes into multi-screen LVGL scene logic.

Supported HTML and CSS

The page is rendered in headless Chromium at your display resolution, so layout comes from a real browser engine. Flexbox maps onto LVGL flex layout; everything else uses exact coordinates.

HTML and CSS features and the LVGL output they map to
HTML / CSSLVGL
display: flex (direction, wrap, justify-content, align-items, gap, flex-grow)LVGL flex layout
display: grid (tracks, gaps, row and column spans)LVGL grid layout
Block and absolute layoutExact coordinates from the browser layout engine
Two-stop linear-gradientBackground color and gradient color
box-shadowShadow color, blur, offset, and spread
:hover and :active declarationsPressed-state styles
overflow: auto / scrollScrollable containers
buttonlv_button with a centered lv_label
Text elementslv_label sized with real LVGL font metrics
input type=rangelv_slider
input type=checkboxlv_switch or lv_checkbox
input type=text and passwordlv_textarea
selectlv_dropdown
progresslv_bar
tablelv_table
imglv_image plus an asset list
Colors, borders, radius, padding, opacity, text stylesLVGL style properties

Not supported yet

  • CSS transforms such as rotation are not converted.
  • svg, canvas, video, audio, iframe, object, and embed elements are skipped with a warning.
  • Only two-stop linear gradients are converted.
  • Custom fonts: text uses the nearest built-in Montserrat size in the hosted converter. The converter engine can build fonts from your own TTF files, but that is not exposed in the hosted converter yet.

Export formats

Output formats, the files they produce, and notes
FormatYou getNotes
Cui_<name>.c and .h exporting ui_create()No XML runtime needed; works on any LVGL 9.x.
C++ui_<name>.cpp and .hpp exporting ui_create()For projects that only compile C++ (C++17).
MicroPythonui_<name>.py exporting ui_create(parent)Plain lv.* calls for lv_binding_micropython.
LVGL XML<name>.xml component or screenFor the lv_xml runtime in LVGL 9.4.

Limits by tier

What the Free tier and paid credits each include
LimitFreeCredits
Output formatsC, C++C, C++, MicroPython, XML
HTML elements per conversionUp to 20No cap
Conversions per day5No daily cap (credit-metered)
Flexbox and grid, gradients, shadows, opacity, images, :hover/:activeNot includedIncluded

Ready to convert your first screen?

Start free, no card required — see the Pricing page for what unlocks at each tier.

Sign up free