Embedded and desktop apps

What is the Chromium Embedded Framework (CEF)?

By Daniyal Sheikh, Chromium Integration Engineer

Technically reviewed by Usman Khan, Lead Chromium Developer

Published 7 min read

Title card reading "What is CEF?" with a diagram of a host app’s browser process connected to render and GPU processes.
CEF puts a full Chromium browser inside your own app, and you ship and update that Chromium yourself.

If you have searched for an embedded browser, CEF is the name that keeps coming up. This guide explains what it is, how it works, how its versions line up with Chromium, and how it compares with Electron. To compare CEF with WebView2 and WKWebView, see our CEF vs WebView2 vs WKWebView guide.

What is the Chromium Embedded Framework (CEF)?

CEF is an open-source framework for putting a Chromium browser inside another application. It wraps Chromium in stable C and C++ APIs, ships prebuilt binaries for each release, and lets the host app control navigation, requests, JavaScript bindings and drawing.

CEF’s README describes it as a BSD-licensed open-source project founded by Marshall Greenblatt in 2008. Unlike Chromium, which is built mainly for Google Chrome, CEF is built for embedding. It offers stable APIs, release branches that track specific Chromium releases, and binary distributions, so you do not have to build Chromium yourself. The README also says there are over 100 million installed instances of CEF.

CEF compared with Chromium
ChromiumCEF
Built forGoogle ChromeEmbedding a browser in other apps
What you getSource codeStable C/C++ APIs plus prebuilt binaries
Your app’s roleYou build a whole browserYour app hosts browser views
UpdatesYou rebase your forkYou move to a newer CEF build

What can you build with CEF?

A web browser control inside a native app, a light native shell around a web interface, off-screen rendering into your own graphics, and a host for automated testing. Those are the four use cases CEF’s own README lists.

  • A browser control in a native app. A web view inside a desktop app written in C++, .NET, Java or Delphi.
  • A native shell around a web interface. The app’s screens are web pages; the shell adds windows, menus and system access.
  • Off-screen rendering. CEF draws the page into a buffer, and your app paints it with its own graphics.
  • Automated testing. A host for testing existing websites and web apps.

CEF can also be changed itself. On our CEF transparency project, we patched CEF so a browser view in a native Windows window can paint with a transparent background: where the page is transparent, the desktop or the app behind it shows through. That meant working in CEF’s C++ code for window creation and background colour, and the patch has to be carried forward to every newer CEF release the app adopts.

How does CEF work?

Like Chrome, CEF runs several processes. The browser process is usually your app’s own process and handles windows, UI and network. Blink rendering and JavaScript run in separate render processes, and a GPU process handles graphics. The processes talk to each other through asynchronous messages.

CEF’s General Usage guide describes the model:

  • Browser process. Usually your app’s own process. It handles window creation, UI and network access, and most of your app logic runs here.
  • Render processes. Blink rendering and JavaScript run here. By default CEF starts a new render process for each unique origin. JavaScript bindings and DOM access run here too.
  • Other processes. Such as the GPU process, started as needed.
  • Messages between them. The processes talk through asynchronous inter-process messages.

By default on Windows and Linux, CEF starts your app’s executable again for each extra process, with command-line flags that tell it which role to play. On macOS, apps always use separate helper executables. If your app is large or slow to start, you can point CefSettings.browser_subprocess_path at a separate, small helper executable.

Entry point (simplified)
int main(int argc, char* argv[]) {
  CefMainArgs args(argc, argv);
  CefRefPtr<MyApp> app(new MyApp);  // your CefApp implementation
  // Sub-processes (render, GPU, ...) run here and exit.
  int exit_code = CefExecuteProcess(args, app, nullptr);
  if (exit_code >= 0) return exit_code;

  // The browser process continues: start CEF. MyApp creates the browser window in OnContextInitialized().
  CefSettings settings;
  CefInitialize(args, settings, app, nullptr);
  CefRunMessageLoop();
  CefShutdown();
}

How do CEF versions match Chromium versions?

The first number of a CEF version is the Chromium major version, and the full Chromium version is part of the version string. CEF builds every other Chromium milestone, and keeps some branches longer on extended and long-term channels.

Since 2019, CEF versions use the format X.Y.Z+gHHHHHHH+chromium-A.B.C.D, according to CEF’s Branches and Building page:

  • X is the CEF and Chromium major version.
  • Y changes only when the CEF C/C++ API changes.
  • Z is the bug-fix number, raised on each commit.
  • gHHHHHHH is the short Git commit hash, and A.B.C.D is the full Chromium version.

For example, a stable build released on CEF’s download server on 20 November 2026 is 158.0.3+g8c29be2+chromium-158.0.8127.18.

CEF release channels, from CEF’s Branches and Building page
ChannelWhich Chromium branchesSecurity fixes for
StableEvery other Chromium milestoneAbout 2 weeks after reaching stable
ExtendedEvery fourth milestoneAbout 8 weeks in total
LTC/LTSEvery 12th milestone from M160About 9 months in total

CEF notes that updating its branches is manual, so CEF builds can lag Chromium releases. If your app cannot move every few weeks, plan for the extended or long-term branches.

Which languages can you use with CEF?

CEF itself offers C and C++. Separate projects bind it to other languages: CefSharp and CefGlue for .NET, CEF4Delphi for Delphi, JCEF for Java, and cef2go and Energy for Go. Check each project’s recent releases before you depend on it.

CEF bindings listed in CEF’s README
LanguageProjectNote
C and C++CEF itselfThe core API
.NETCefSharpLatest on NuGet on 24 November 2026: 156.0.300
.NET and MonoCefGlue (Xilium)Separate project
DelphiCEF4DelphiSeparate project
JavaJCEF (java-cef)Hosted in the chromiumembedded organization
Gocef2go, EnergySeparate projects
PythoncefpythonLast PyPI release 66.1, February 2021

CEF’s README says these external projects are not maintained by CEF. Their release pages show how far apart they can drift: CefSharp on NuGet is at 156.0.300, while cefpython3 on PyPI has had no release since 66.1 in February 2021. A binding that lags behind CEF also lags behind Chromium security fixes, so check its release history first. For .NET on Windows, our CefSharp vs WebView2 guide compares the two main choices.

What is the difference between CEF and Electron?

CEF puts a Chromium browser inside an app you write in C, C++ or another language. Electron is a framework for building the whole desktop app in JavaScript, with Chromium and Node.js built in. Choose CEF to add web views to a native app; choose Electron for a web-first app.

CEF vs Electron
CEFElectron
What it isA browser you embed in your appA framework for the whole app
Your app’s languageC, C++, .NET, Java, Delphi, Go and othersJavaScript, with Node.js
Fits bestAdding web views to a native appA desktop app built from a web app
Chromium updatesYou move to a new CEF buildYou move to a new Electron version

Electron’s docs describe it as a framework for building desktop applications using JavaScript, HTML and CSS, by embedding Chromium and Node.js. Both ship their own Chromium, so both need regular upgrades. Our Tauri vs Electron guide covers the JavaScript-first options.

When should you use CEF?

Use CEF when you need the same Chromium version on every platform, control the system WebView does not give you, off-screen rendering, or changes to the browser itself. Use the system WebView when a smaller app and automatic engine updates matter more.

When to pick CEF
If you need…Use
The same Chromium version on Windows, macOS and LinuxCEF
Off-screen rendering into your own graphicsCEF
Changes inside the browser itselfCEF (patched)
A small app with engine updates handled by the platformWebView2 or WKWebView
A whole desktop app written in JavaScriptElectron

The trade-off is the same in every case above: CEF gives you a known Chromium version and deep control, and in return you ship that Chromium and keep it current. For the full side-by-side with WebView2 and WKWebView, see our CEF vs WebView2 vs WKWebView guide.

Final takeaway

CEF is the established open-source way to put Chromium inside a native app. Pick it for control and a fixed engine version, and budget for moving to a new CEF build on a regular schedule.

Frequently asked questions

Is CEF free to use in a commercial product?

CEF’s own code is under a BSD licence that allows commercial use, as long as you ship its copyright notice and licence text with your app. CEF is built on Chromium, which includes third-party code under its own licences, so review those notices, and get legal advice if you are unsure, before you ship.

What is an embedded browser?

An embedded browser is a browser engine that runs inside another application and shows web content in that app’s own window, instead of opening a separate browser. CEF, WebView2 and WKWebView are three common choices.

Who maintains CEF?

CEF was founded by Marshall Greenblatt in 2008 and is developed with help from contributors and sponsors. Language bindings such as CefSharp are separate projects with their own maintainers, so their release timing is not CEF’s.

Does CEF get Chromium security fixes?

Yes, but you have to ship them. CEF’s README says Chromium vulnerabilities likely affect CEF on the same Chromium version, that there can be a delay before matching CEF builds appear, and that apps should keep their CEF version up to date.

Adding CEF to your app?

Tell us what the embedded browser has to do. We will tell you whether CEF or a system WebView fits, and what it takes to keep it current. See our CEF and WebView2 embedded browser service.

Send a project brief