Play piano online

How to Connect a MIDI Keyboard to an Online Piano (Web MIDI)

Plug a USB or Bluetooth MIDI keyboard into a browser-based piano in under a minute. Which browsers support Web MIDI, how to allow access, and how to fix no sound, lag and stuck notes.

By Groove ForteUpdated 2026-10-303 min read

A MIDI keyboard turns an online piano into a real instrument: proper keys, velocity-sensitive dynamics and a sustain pedal. Thanks to Web MIDI, your browser can read a keyboard directly — no drivers or plug-ins in most cases.

What you need

  • A MIDI keyboard or digital piano with USB-MIDI (most made in the last 15 years), Bluetooth MIDI, or a 5-pin MIDI out plus a USB-MIDI interface.
  • A supported browser. Chrome, Edge, Opera and Firefox support Web MIDI on Windows, macOS, Linux, ChromeOS and Android. Safari does not, on Mac or iPhone/iPad.
  • A secure page. Web MIDI only works on HTTPS sites like playpianolive.com.

Connect in four steps

  1. Plug in the keyboard with a USB cable (or pair it over Bluetooth — see below) and switch it on.
  2. Open the online piano or Practice mode.
  3. Press the MIDI button and choose Allow when the browser asks for access to MIDI devices.
  4. Play. You’ll see a message with your keyboard’s name, and the keys on screen light up as you play.

If you plug the keyboard in after pressing MIDI, the page notices and connects automatically.

Bluetooth MIDI keyboards

Bluetooth MIDI has to be paired with your operating system first:

  • macOS: open Audio MIDI Setup, choose Window → Show MIDI Studio, click the Bluetooth icon and connect.
  • Android: pair through the keyboard maker’s app or a Bluetooth MIDI connector app, then open the browser.
  • Windows: support for Bluetooth MIDI depends on your Windows version and the keyboard. If it doesn’t appear, use the USB cable or the manufacturer’s connection app.

USB is always the most reliable and lowest-latency option.

Using your keyboard’s features

  • Velocity — how hard you play sets the loudness and brightness of each note.
  • Sustain pedal — a pedal plugged into your keyboard works as the piano’s sustain pedal.
  • Built-in speakers — turn your digital piano’s own volume down, or you’ll hear two pianos at once.

Troubleshooting

ProblemFix
“This browser has no Web MIDI”Switch to Chrome, Edge, Firefox or Opera. Safari isn’t supported.
No permission prompt appearedClick the icon at the left of the address bar, open site settings and set MIDI devices to Allow, then reload.
Keyboard not listedUnplug and replug it, try another USB port or cable, and close other music apps (DAWs can grab the device exclusively on Windows).
Notes sound lateUse wired headphones or speakers — Bluetooth audio adds noticeable delay. Close heavy tabs.
Stuck notePress and release the same key, or tap the sustain pedal. Reloading the page clears everything.

Frequently asked questions

Does Web MIDI work on iPhone or iPad?

Not in Safari or other iOS browsers, which all use Safari’s engine. On iPhone and iPad, play the online piano by touch.

Do I need drivers?

Most USB keyboards are “class compliant” and work without drivers. Some older or professional models need the manufacturer’s driver on Windows.

Can I record what I play on my MIDI keyboard?

Yes. Press Record on the online piano, play, press Stop, then download the take as a MIDI file.

Try it now: everything in this guide works in the free the free online piano. For lessons, backing tracks and transcriptions, subscribe to GrooveForte on YouTube.