Bringing Virtual Reality to the Web

What is WebVR

WebVR is an experimental Javascript API that provides access to Virtual Reality devices, such as the Oculus Rift or Google Cardboard, in your browser.


The Editors Draft of the spec is currently hosted at https://w3c.github.io/webvr/

How can I try it?

The WebVR API is currently available in Firefox nightly builds with an Oculus Rift enabler installed, in experimental builds of Chrome, or in Samsung Internet for Gear VR. You can get the latest WebVR-enabled builds here:

Or, if you want to add WebVR to your mobile site today, you can use the WebVR Polyfill to provide support for Cardboard devices.

You can test your browser's support for the WebVR API with these samples:

How can I contribute?

The best place to contribute is the WebVR mailing list. Developers of the Chrome, Firefox and Samsung Internet builds are on that list, as well as other community members that are enthusiastic about VR on the Web.

How can I get the code?

The code that powers WebVR is available online, if you want to take a peek at what's going on under the hood:

Reporting issues

For the time being use the following links to view and report issues with WebVR implementations:

WebVR Emulator

Jaume Sanchez Elias (@thespite) has created a Chrome extension that allows developers to emulate a VR headset for testing the API when no hardware is available. Check it out!

Misc Links

This page is a work in progress; more content coming soon.