WebXR is the W3C API for VR and AR in the browser. Learn what WebXR is, which browsers support it, real-world use cases, and the known issues developers face.

Prince Dewani
May 1, 2026
WebXR is a W3C JavaScript API that lets web pages render virtual reality and augmented reality experiences. It ships natively in Chrome 79+, Edge 79+, Opera 66+, Samsung Internet 12+, the Meta Quest Browser, and Safari on visionOS 2.0, while Firefox, iOS Safari, and macOS Safari remain unsupported.
WebXR is a W3C-standard JavaScript API that lets web pages render 3D scenes to virtual reality (VR) headsets, augmented reality (AR) glasses, and AR-capable phones. It is the official replacement for the deprecated WebVR API, supports both VR and AR through a single interface, and uses WebGL or WebGPU as its rendering backend. Frameworks like Three.js, Babylon.js, and A-Frame build directly on top of it.
WebXR is supported across Chromium-based browsers and the Meta Quest Browser, partially supported on visionOS Safari, and unsupported on macOS Safari, iOS Safari, and Firefox. Module-level support for hand input, hit testing, depth sensing, and anchors varies across devices, so feature-detect every module before use.
Chrome 79+ supports WebXR on desktop and Android with the most complete feature set, including immersive VR sessions and the AR module on AR-capable Android phones.
Edge 79+ mirrors Chrome's WebXR support through its Chromium engine, providing the same VR and AR session capabilities on Windows.
Safari does not implement WebXR on macOS, iOS, or iPadOS. Safari on visionOS 2.0 supports WebXR by default for immersive-vr sessions on the Apple Vision Pro, but the WebXR Augmented Reality Module is not yet enabled.
Firefox does not support WebXR on desktop or Android; implementation paused after Mozilla discontinued the Firefox Reality browser.
Opera 66+ on desktop and Opera Mobile 64+ support WebXR through their Chromium foundation, matching Chrome's core feature set.
Samsung Internet 12+ supports WebXR with optimizations for Galaxy smartphones and the Samsung Galaxy XR headset.
The Meta Quest Browser (formerly Oculus Browser) ships with full WebXR support and is the primary VR target, including hand tracking, anchors, plane detection, and passthrough AR.
Internet Explorer never implemented WebXR and is end-of-life, so no IE version supports the API.
WebXR sessions run in three modes, each defined by the W3C specification:
inline: 3D content rendered into a regular <canvas> on the page. No headset needed. Used for product viewers, 360 tours on a phone, and progressive enhancement.immersive-vr: Fully immersive VR session on a headset like Meta Quest 3 or a PC-tethered system. Replaces the page view with stereo rendering to the device.immersive-ar: AR session that overlays content on the real world via passthrough cameras or AR-capable phones. Defined by the WebXR Augmented Reality Module.A minimal session check and request, following the MDN canonical pattern, looks like this. requestSession() for immersive modes must be called inside a user gesture (click or touch).
// Assumes a DOM button: <button id="enter-xr" disabled>Enter VR</button>
const enterButton = document.getElementById("enter-xr");
let xrSession = null;
if (navigator.xr) {
navigator.xr.isSessionSupported("immersive-vr").then((isSupported) => {
if (isSupported) {
enterButton.addEventListener("click", onButtonClicked);
enterButton.disabled = false;
}
});
}
function onButtonClicked() {
if (!xrSession) {
navigator.xr.requestSession("immersive-vr").then((session) => {
xrSession = session;
xrSession.addEventListener("end", () => { xrSession = null; });
xrSession.requestAnimationFrame(onXRFrame);
});
} else {
xrSession.end();
}
}
function onXRFrame(time, frame) {
const session = frame.session;
session.requestAnimationFrame(onXRFrame);
// render frame here
}WebXR powers production experiences across retail, healthcare, training, and entertainment. The most impactful use cases today:
Note: WebXR breaks across browsers and OS. Test it on real browsers and OS with TestMu AI. Try TestMu AI free!
Did you find this page helpful?
More Related Hubs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance