# Browser (/integration/pc/browser)



Overview [#overview]

There are multiple ways to view LVGL UIs in a browser or even develop UIs directly in a browser environment:

* Compile UI to HTML using **Emscripten**
* Develop in online VSCode using **GitHub Codespaces**
* Preview UIs in the **LVGL UI Editor’s online preview**

Compile UIs to HTML (Emscripten) [#compile-uis-to-html-emscripten]

[Emscripten](https://emscripten.org/) can compile C source files into a single HTML output that runs in a browser. This is a convenient way to share developed UIs with stakeholders, as they can test the interface without needing a developer setup.

Instead of producing a binary, Emscripten produces WebAssembly, which is supported across modern browsers.

The [lv\_web\_emscripten](https://github.com/lvgl/lv_web_emscripten) project provides a ready-to-use setup for compiling any LVGL UI into a browser-capable HTML file.

It uses a specialized, [CMake](/integration/building/cmake)‑based build system—check the README for full setup details.

Develop in Online VSCode (GitHub Codespaces) [#develop-in-online-vscode-github-codespaces]

GitHub Codespaces offer a cloud-hosted VSCode environment that runs entirely in the browser.

LVGL provides a preconfigured Codespace environment, which you can launch with just a few clicks. It’s especially beneficial if:

* You're having issues setting up a local development environment
* Your machine is slow or underpowered
* You're working from a device without a local IDE

To get started:

1. Navigate to [https://github.com/lvgl/lvgl](https://github.com/lvgl/lvgl).
2. Click the green **Code** button.
3. Select the **Codespaces** tab.
4. Click **Create Codespace on master**.
5. Wait briefly for the workspace to launch.
6. Open the terminal and run `./build_all.sh`.

This will build LVGL and render the UI in a VSCode tab. You can continue writing and rebuilding simply by running the script again.

Note: The Codespaces setup also uses Emscripten for browser rendering.

LVGL’s UI Editor Online Share [#lvgls-ui-editor-online-share]

Coming soon.
