CefSharp Open source · BSD-3-Clause ★ 10.2k
Open Source web browser for WinForms and WPF Apps
Introduction
CefSharp is an easy way to embed a full-featured standards-compliant web browser into your C# or VB.NET app. CefSharp has browser controls for WinForms and WPF apps, and a headless (offscreen) version for automation projects too. CefSharp is based on Chromium Embedded Framework, the open source version of Google Chrome.
## Features
CefSharp embraces modern web standards, and supports HTML5, JavaScript, CSS3 and HTML5 audio/video elements. 3D content is supported via WebGL which uses OpenGL/DirectX for hardware accelerated rendering. CefSharp includes embedded modules for PDF, web page printing and the WebKit Inspector (developer tools).
You can programmatically execute Javascript, expose .Net classes to JavaScript, and receive callbacks when JavaScript events fire. You can programmatically call DevTools methods. You can use CefSharp to display embedded UI built with HTML5, or to display remote web content and web applications.
## Flavors and requirements
CefSharp is available in multiple flavors:
- CefSharp.WinForms provides browser UI Control for Windows Forms applications
- CefSharp.WPF provides browser UI Control for WPF applications
- CefSharp.Wpf.HwndHost provides browser UI Control for WPF applications that is the equivilent of hosting the WinForms version in WPF.
- CefSharp.OffScreen provides a "headless" browser control for automation projects
CefSharp supports rendering of embedded HTML content for HTML-based UI. CefSharp supports x86, x64 and ARM64 platforms (Windows Only).
CefSharp has a few dependencies:
- Microsoft .NET 4.5.2 or greater
- Visual C++ Runtime 2019 or greater. (Visual C++ 2022 Runtime is backwards compatible)
NuGet packages are available for WinForms, WPF and OffScreen. Stable binaries are released on NuGet, and contain everything you need to embed Chromium.
## License and source
CefSharp is an open source .NET wrapper around the fantastic Chromium Embedded Framework. And we provide full source code in C# and C++/CLI. CefSharp is BSD licensed, which means that it can be used for proprietary and free/open source applications.
Embedded ChromiumNET wrapperWinFormsWPFOffScreenHTML5JavaScriptBSD licensed
Screenshots

Deployment
NuGet 稳定版包
适合在生产项目中通过 NuGet 获取 CefSharp.WinForms、CefSharp.Wpf、CefSharp.OffScreen、CefSharp.Wpf.HwndHost 及 .NET Core 包并集成 Chromium 浏览器控件。
NuGet 预发布包
适合需要提前验证新版本功能或兼容性、可接受预发布风险的 WinForms、WPF 或 OffScreen 项目。
MyGet CI 构建包
适合跟踪 master 分支最新提交进行开发测试,官方提示需自行承担不稳定风险。
GitHub 源码与发布分支
适合需要查看、调试、修改或从指定 Release 分支获取 CefSharp 官方源码的开发者。
Details
Type Open-source software
License BSD-3-Clause
Repository cefsharp/CefSharp
GitHub Stars 10,236
Last commit 3 周前
Last verified 2026-07-21
Ad slot 300 × 250 Ad
About the data
Stars / commit times sync automatically from the GitHub API; pricing and features are human-verified.