How do you connect a piano keyboard to your phone?
Most digital pianos connect to a phone in one of two ways: a USB cable with the right adapter, or Bluetooth MIDI if your keyboard supports it. Android phones work with both, and iPhones and iPads need a small adapter for USB or the free Bluefy browser for Bluetooth in a web page.
Connecting a keyboard to a phone is easier than it looks, but it helps to know one thing first: the connection sends MIDI, which is information about which keys you pressed, not sound. Your phone app then makes the sound, or the keyboard keeps making its own. If you want a quick background on this, see our guide on what a MIDI piano keyboard is.
Check what your keyboard can do
Look at the back or side of your keyboard and at the manual. You are looking for one of these:
- A USB port labeled "USB to Host" or "USB MIDI". This is usually a square (type B) or small rectangular port. It carries MIDI to a phone, tablet or computer.
- Bluetooth MIDI. Some keyboards have it built in, others need a small separate adapter. Check the manual or the model's spec page for the words "Bluetooth MIDI" (plain Bluetooth audio is a different thing).
- Only round 5-pin MIDI sockets. This is common on older keyboards. You would need a MIDI to USB interface, which is a small box with cables.
A port labeled "USB to Device" is for memory sticks, so it will not connect to your phone. A headphone or line output jack does not send MIDI either.
Option 1: USB cable to an Android phone
This is the most reliable method because there is no pairing and no battery to worry about.
- Get a USB cable that fits your keyboard's port (often USB-A to USB-B, or USB-C to USB-B).
- Check your phone's charging port. Most current Android phones use USB-C. If your cable has a USB-A end, you need a small USB-C OTG adapter (it lets the phone act as the host).
- Plug the cable into the keyboard and the phone, and turn the keyboard on.
- If your phone asks what the USB connection should be used for, choose MIDI if you see that option. Some phones do not ask.
- Open Chrome and the page or app you want to use. Allow MIDI access if the browser asks.
If the browser permission box never appears, our guide on giving a browser MIDI permission walks through it.
Option 2: Bluetooth MIDI
Bluetooth MIDI means no cable, which is nice for a phone on a music stand. The steps differ a little between devices, so here is the general idea:
- Turn on Bluetooth MIDI on the keyboard (see the manual for how; it may be a menu setting or a button).
- Do not only pair it in your phone's main Bluetooth settings and stop there. On many phones the keyboard will not appear in that list, or will connect without working in a browser.
- Connect from inside the app or browser that supports Bluetooth MIDI. In a web page, the browser shows a list of nearby devices when you allow access.
Bluetooth can add a very small delay compared with a cable. Many beginners never notice it, but if timing feels off, try USB. Our Bluetooth MIDI keyboard guide covers pairing in more detail.
iPhone and iPad
Apple devices handle MIDI well in apps, but web browsers on iPhone and iPad do not normally allow Bluetooth MIDI. The workaround is the free Bluefy browser, which does. Install it from the App Store, open your web page in Bluefy, and connect your keyboard from there.
For a wired connection you need an adapter that matches your device's port (Lightning on older models, USB-C on newer ones) and a USB cable to the keyboard. Which adapter works can vary, so read our guide on a Lightning to USB adapter for a MIDI keyboard on iPhone before buying.
Trying it with a game
A good way to check that everything works is to play something simple right away. In Keyfall, the free piano game at learnpianogame.com, you can choose a digital piano over Bluetooth MIDI or USB MIDI as your input, and falling notes will react when you press the matching key. It runs in the browser with nothing to download, and works best in Chrome. If you use the microphone instead of MIDI, an acoustic piano works too.
If nothing shows up
Go through these checks in order:
- Turn the keyboard off and on again after plugging in the cable.
- Try a different USB cable. Some cables only charge and carry no data, and this is a very common cause.
- Close other apps that might be holding the keyboard connection.
- Make sure the browser has permission to use MIDI.
- Check that the keyboard's "Local Control" or USB settings have not been changed.
If you are still stuck, our guide on why a MIDI keyboard is not working has a longer checklist.
More about keyboards, midi and bluetooth
FAQ
Can I connect any digital piano to my phone?
Not every one. You need either a USB port that sends MIDI to a computer or phone, Bluetooth MIDI, or a MIDI to USB interface for older 5-pin models. The manual will tell you which your keyboard has.
Do I need to buy an app to use my keyboard with my phone?
Not always. A browser game such as Keyfall is free and works in your browser, so you only need the right cable or Bluetooth connection. Other music apps may have their own prices.
Why can I hear the keyboard but my phone does not react?
The keyboard makes its own sound whether or not it is connected. If the phone does not react, the MIDI link is not working, so check the cable (some only charge), the adapter and the browser's MIDI permission.
Will the sound come out of my phone speaker?
Only if the app or game makes the sound itself. MIDI sends key presses, so some programs play their own piano sound and others rely on your keyboard speakers.
Is Bluetooth or USB better for learning?
USB is usually the most stable and has the least delay. Bluetooth is more convenient, and for slow beginner practice most people find it fine.
Can I use my iPhone with a Bluetooth keyboard in a web browser?
Yes, with the free Bluefy browser, which supports Bluetooth MIDI in web pages. The normal Safari and Chrome browsers on iPhone do not.
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