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:
- Connect your keyboard with a USB cable (or pair it over Bluetooth in your system settings) and turn it on.
- Open the website in Chrome.
- When the pop-up appears near the address bar, click Allow.
- 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.
- Click the small icon on the left side of the address bar (it may look like a lock or a pair of sliders).
- Choose Site settings (or look for MIDI in the list shown).
- Find MIDI devices and change it to Allow.
- 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.
| Browser | What to expect |
|---|---|
| Chrome | Web MIDI is supported, with a permission prompt |
| Edge | Built on the same engine as Chrome, so the steps are very similar |
| Firefox | Supports Web MIDI in recent versions, and asks for permission |
| Safari | Has 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:
- Close other apps or browser tabs that may be using the keyboard. Some systems let only one program use a MIDI device at a time.
- Unplug the USB cable, plug it back in, and reload the page.
- Try a different USB cable. Some cables only charge and do not carry data.
- Turn the keyboard off and on again, then reload.
- Make sure the keyboard is not set to a mode that only sends audio.
- Restart the browser completely.
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
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