Learn Piano Game Play free
Home › Guides › Keyboards, MIDI and Bluetooth › How to Allow MIDI Access in Your Browser

How to Allow MIDI Access in Your Browser

When a website asks to use your MIDI devices, click Allow in the pop-up near the address bar. If you clicked Block by accident, open the site settings for that page, set MIDI devices to Allow, and reload.

If you plug a digital piano into your computer and open a piano website, nothing may happen until your browser gives that site permission to talk to the keyboard. This is normal and it is there to protect you. Here is how to say yes, how to undo a no, and what to check if the keyboard still does not respond.

Why your browser asks first

Browsers use a feature called Web MIDI to let a web page read the notes you play on a keyboard. Because a page could in theory listen to any MIDI device you have connected, the browser asks you first, much like it does for your camera or microphone. The question usually appears the first time a site tries to use MIDI, and your answer is remembered for that site.

The exact wording changes between browser versions. You might see something like "wants to use your MIDI devices" with Allow and Block buttons. Allowing it only lets that one site read notes from your keyboard. It does not give access to your files.

Allow MIDI in Chrome on a computer

Chrome is the browser with the most reliable MIDI support, so it is the best place to start. Follow these steps:

  1. Connect your keyboard with a USB cable (or pair it over Bluetooth in your system settings) and turn it on.
  2. Open the website in Chrome.
  3. When the pop-up appears near the address bar, click Allow.
  4. Play a key. If the site reacts, you are done.

If you connected the keyboard after the page was already open, reload the page. Some sites only look for devices when they load.

If you clicked Block by mistake

This is the most common problem, and it is easy to fix. Chrome remembers a Block and will not ask again until you change it.

  1. Click the small icon on the left side of the address bar (it may look like a lock or a pair of sliders).
  2. Choose Site settings (or look for MIDI in the list shown).
  3. Find MIDI devices and change it to Allow.
  4. Reload the page.

You can also check the full list of sites. In Chrome, open Settings, then Privacy and security, then Site settings, and look for MIDI devices. You can see which sites are allowed or blocked, and change the default behavior there. The menu names can shift a little between versions, so use the settings search box if you cannot find it.

For more detail on turning the feature on at the browser level, see our guide on how to enable Web MIDI in your browser.

Edge, Firefox and Safari

Browsers differ, so here is what is generally true. Check each browser's own help pages if yours behaves differently.

BrowserWhat to expect
ChromeWeb MIDI is supported, with a permission prompt
EdgeBuilt on the same engine as Chrome, so the steps are very similar
FirefoxSupports Web MIDI in recent versions, and asks for permission
SafariHas historically not supported Web MIDI on the Mac, so use Chrome instead

If you are not sure which to use, install Chrome. It takes a few minutes and avoids most MIDI headaches.

Phones and tablets

On an Android phone or tablet, Chrome works the same way. Tap Allow when asked. If you blocked it, tap the icon beside the address bar, open Permissions, and switch MIDI on. Our guide to connecting a keyboard to a phone covers cables and adapters.

On an iPhone or iPad, the standard browsers cannot use Bluetooth MIDI for websites. A free browser called Bluefy can, so open the site in Bluefy and allow access there.

If it still does not work

Work through this short list:

If the computer itself does not see the keyboard, the problem is not the browser permission. Our guide on why your keyboard is not detected by the computer walks through that step by step.

Trying it out

A quick way to test your setup is a game that reacts to every key. The free Keyfall game runs in the browser, works best in Chrome, and can take input from a USB or Bluetooth MIDI keyboard. Allow MIDI when asked, press a key, and you should see it respond. It also works with the microphone, the computer keyboard, or the touch screen, so you can still play while you sort out the permission.

If notes feel late once everything is connected, that is a different issue. See how to reduce keyboard lag in the browser.

More about keyboards, midi and bluetooth

61 keys or 88 keys: which should a beginner choose?What should you look for in headphones for a digital piano?What is the right keyboard stand and bench height for piano practice?Bluetooth MIDI vs USB MIDI: which should you use?Can you use Bluetooth headphones with a digital piano?Digital piano vs keyboard: which should a beginner buy?Do You Need a Driver for a USB MIDI Keyboard?Do you need a sustain pedal on a digital piano?

FAQ

Is it safe to allow MIDI access?

Yes, for sites you trust. It only lets that site read notes and messages from your MIDI devices, and you can switch it off at any time in the site settings.

Why does the pop-up not appear?

You may have blocked it earlier, or the site has not tried to use MIDI yet. Check the site settings for MIDI devices, set it to Allow, and reload the page.

Do I need to allow MIDI every time I visit?

Usually not. Browsers remember your choice for each site, unless you clear site data or change the setting.

Do I need to install a driver for my keyboard?

Many modern keyboards work without one when connected by USB, but this depends on the model. Check your keyboard's manual if the computer does not recognize it.

Can I use MIDI in a private or incognito window?

It can work, but permissions are not saved after you close the window, so you may be asked again. Extensions may also be switched off in private windows.

What if I only have an acoustic piano?

You do not need MIDI. Many browser games, including Keyfall, can listen through the microphone instead.

Practise it on your own piano. Keyfall is a free piano game: notes fall toward the keys and you play them on a digital piano, keyboard, phone or computer.

Play free