Web MIDI

Limited availability

The Web MIDI API enables selecting MIDI input and output devices and sending and receiving MIDI messages.

Browser support (view on caniuse.com)

  • Chrome 43 Released on 2015-05-19
  • Chrome Android 43 Released on 2015-05-27
  • Edge 79 Released on 2020-01-15
  • Firefox 108 Released on 2022-12-13
  • Firefox for Android Not supported Position: positive
  • Safari Not supported Bugs: 107250
  • Safari on iOS Not supported Bugs: 107250

Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.

MDN documentation

Specifications

Usage (according to Chrome Platform Status)

~0.001% of page loads. More data at chromestatus.com.

Developer use cases

  • I'm building a web application for sightreading/rythmn practice. Midi support allows users to practice with real instruments, but the lack of widespread availability makes the application browser dependent. I'm building a web application for sightreading/rythmn practice. Midi support allows users to practice with real instruments, but the lack of widespread availability makes the application browser dependent. [see original comment]
  • I want to build interactive web audio, creative coding, and 3D experiences that connect directly to physical MIDI hardware (keyboards, pads, and controllers) with plug-and-play simplicity. The web should be an open, zero-install platform for interactive music tools, live visuals, and digital instruments without requiring users to download native software. Having this work reliably across all major browser engines—especially lightweight and privacy-focused alternatives like Firefox and Zen Browser is essential in my opinion. I want to build interactive web audio, creative coding, and 3D experiences that connect directly to physical MIDI hardware (keyboards, pads, and controllers) with plug-and-play simplicity. The web should be an open, zero-install platform for interactive music tools, live visuals, and digital instruments without requiring users to download native software. Having this work reliably across all major browser engines—especially lightweight and privacy-focused alternatives like Firefox and Zen Browser is essential in my opinion. [see original comment]