Introduction to Microsoft Edge WebView2 (Preview)

The Microsoft Edge WebView2 control enables you to embed web technologies (HTML, CSS, and JavaScript) in your native applications. The WebView2 control uses Microsoft Edge (Chromium) as the rendering engine to display the web content in native applications. With WebView2, you may embed web code in different parts of your native application, or build the entire native application within a single WebView. For information on how to start building a WebView2 application, see Get Started.

What is WebView

What is WebView

Note

The WebView2 Preview is intended for early prototyping and to gather feedback to help to shape the API. The Microsoft Edge WebView team does not recommend that you use the preview in your production apps because there may be breaking changes.

Hybrid application approach

Developers often have to choose between building a web application or a native application. The decision hinges on the trade-off between reach and power. Web applications allow for a broad reach. As a Web developer, you may reuse most, if not all of your code, across all different platforms. Native applications, however, utilize the capabilities of the entire native platform.

Web native

Web native

Hybrid applications allow developers to enjoy the best of both worlds. Hybrid application developers benefit from the ubiquity and strength of the web platform, and the power and full capabilities of the native platform.

WebView2 benefits

WebView reasons

WebView reasons

Web ecosystem & skillset
Utilize the entire web platform, libraries, tooling, and talent that exists within the web ecosystem.

Rapid innovation
Web development allows for faster deployment and iteration.

Windows 7, 8, 10 support
Support for a consistent user experience across Windows 7, 8, and 10.

Native capabilities
Access the full set of Native APIs.

Code-sharing
Add web code to your codebase allows for increased re-use across multiple platforms.

Microsoft support
Microsoft provides support and adds new feature requests when WebView2 is release as GA.

Evergreen distribution
Rely on an up-to-date version of Chromium with regular platform updates and security patches.

Fixed (coming soon)
Choose to package the Chromium bits in your application.

Incremental adoption
Add web components piece by piece to your application.

Getting started

To build and test your application using the WebView2 control, you need to have both Microsoft Edge (Chromium) and the WebView2 SDK installed. Select one of the following options to get started.

The WebView2 Samples repository contains samples that demonstrate all of the WebView2 SDKs features and API usage patterns. As more features are added to the WebView2 SDK, the sample applications will be updated.

Supported platforms

A developer preview is available on the following programming environments.

  • Win32 C/C++
  • .NET Framework 4.6.2 or later
  • .NET Core 3.0 or later
  • WinUI 3.0

You are able to run WebView2 applications on the following versions of Windows.

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012
  • Windows Server 2012R2
  • Windows Server 2008 R2

Next steps

For more detailed information on how to build and deploy WebView2 applications, checkout the conceptual documentation and how-to guides.

Concepts

How-To guides

Getting in touch with the WebView2 team

Help build a richer WebView2 experience by sharing your feedback. Visit the WebView feedback repo to submit feature requests or bug reports. It is also a good place to search for known issues.

Note

During developer preview, the Microsoft Edge WebView team also collects data to help build a better WebView. Users may turn off WebView data collection by navigating to edge://settings/privacy in the Microsoft Edge browser and turning off browser data collection.