How do I connect a piano keyboard to Windows 10 or 11?
For most digital pianos, plug a USB cable into the keyboard and the PC, wait a few seconds, and Windows sets it up on its own. If your keyboard supports Bluetooth MIDI, you can pair it wirelessly instead.
Most keyboards made in the last 15 years or so connect to Windows with one USB cable and no extra software. Windows 10 and 11 include a built-in driver for standard (class-compliant) USB MIDI devices, so the keyboard usually shows up within seconds. This guide covers USB, Bluetooth, and what to do when the computer does not notice your keyboard.
What you need
- A digital piano or MIDI keyboard that has a USB port marked for computers (often labeled USB to Host or just USB) or Bluetooth MIDI.
- A USB cable that carries data. Many keyboards use a square USB-B plug (like a printer cable) on one end and a flat USB-A plug on the other. Some newer ones use USB-C.
- A Windows 10 or 11 PC with the Chrome browser if you want to play browser games or web apps.
A quick warning about cables: some cheap cables only carry power. If the keyboard does not appear, try a different cable before anything else.
Connect with a USB cable
- Turn the keyboard on.
- Plug the square or small end into the keyboard port meant for the computer. Some pianos also have a USB to Device port for flash drives, and that one will not work for this.
- Plug the other end directly into a USB port on the PC. A port on the computer itself is more reliable than an unpowered hub.
- Wait 5 to 20 seconds. The first time, Windows may show a small message that it is setting up a device.
- Open Device Manager (right-click the Start button) and look under Sound, video and game controllers. You should see your keyboard name or something like USB Audio Device or USB MIDI.
That is it for the connection itself. Windows does not play the keyboard sounds through the PC speakers on its own. Your piano still makes its own sound, and the computer only receives the notes you press. If you want the PC to make the sound, you need a program that does that (see how to play piano through computer speakers).
Connect with Bluetooth MIDI
Some keyboards can send notes wirelessly over Bluetooth MIDI. Check the manual, because Bluetooth audio and Bluetooth MIDI are different things.
- Turn on the keyboard and switch on its Bluetooth function (the method varies by model).
- On the PC, open Settings, then Bluetooth & devices, and turn Bluetooth on.
- Choose Add device, then Bluetooth, and pick your keyboard from the list.
- Wait for it to say Connected.
Bluetooth MIDI on Windows can be less predictable than a cable. Pairing may work, but the keyboard may still not appear in an app until you restart the browser. If you hit trouble, a USB cable is the simplest fix, and it also avoids the small delay that wireless connections can add.
Let your browser use the keyboard
Browsers do not touch MIDI devices until you allow it. In Chrome, a web page that wants your keyboard will show a prompt asking for permission to use MIDI devices. Click Allow. If you click Block by mistake, click the icon at the left of the address bar, open the site settings, and change the MIDI permission back.
The free game Keyfall at learnpianogame.com works this way: open it in Chrome with the keyboard already plugged in and switched on, allow MIDI when asked, and press a key to see it react. Plugging the keyboard in before opening the page saves a lot of confusion.
If nothing happens
Work through these in order:
- Try another USB port and another cable. This fixes more problems than anything else.
- Close other music programs. On Windows, the classic MIDI driver often lets only one program use the keyboard at a time. If a recording program or another app is open, the browser may not get access.
- Restart Chrome after plugging the keyboard in, then reload the page.
- Check the keyboard settings. Some models have a USB or MIDI setting, or a Local Control option. Look in the manual for USB MIDI or computer mode.
- Run Windows Update. Occasionally a missing driver is fetched this way.
- Test that the keyboard really sends MIDI. See how to check if your keyboard sends MIDI.
For a longer list of fixes, read why is my MIDI keyboard not working.
Older keyboards with 5-pin MIDI
If your keyboard only has round 5-pin MIDI ports and no USB, you need a small adapter called a USB MIDI interface. Connect the MIDI OUT port of the keyboard to the MIDI IN of the interface, and plug the interface into the PC with USB. The differences are explained in USB MIDI vs 5-pin MIDI.
Do you need a driver?
Usually not. Brand websites sometimes offer drivers or utility software, and these are mainly for extra features such as audio interfaces, firmware updates, or settings editors. If your keyboard is class-compliant, the built-in Windows driver is enough for playing notes. Only download software from the manufacturer's official site, and read the model name carefully.
More about keyboards, midi and bluetooth
FAQ
Do I need to install a driver to connect my keyboard to Windows 11?
Usually not. Most digital pianos and MIDI keyboards are class-compliant, so Windows 10 and 11 recognize them with the built-in driver. Check the manufacturer's site only if yours does not appear after trying another cable and port.
Why does Windows see my keyboard but my browser does not?
The browser needs your permission to use MIDI, so allow it in the prompt, or reset it in the site settings next to the address bar. Also close other programs that may be using the keyboard, then restart Chrome and reload the page.
Can I connect a keyboard to Windows with Bluetooth instead of a cable?
Yes, if the keyboard supports Bluetooth MIDI, which is not the same as Bluetooth audio. Pair it in Settings under Bluetooth & devices, and if it is unreliable, switch to a USB cable.
Will my computer speakers play the piano sound?
Not automatically. MIDI sends the notes you play, not sound, so the piano keeps using its own speakers or headphones unless a program on the PC creates the sound.
Can I use the USB to Device port on my piano?
No, that port is normally for flash drives. Use the port labeled USB to Host, or the single USB port if there is only one.
Does an acoustic piano work with this?
Not through a cable, because an acoustic piano has no MIDI output. You can use a microphone with apps that support it, but connecting by USB or Bluetooth needs a digital piano or keyboard.
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