How do you connect a MIDI keyboard to an iPhone?
You can connect a MIDI keyboard to an iPhone with a USB cable (plus an adapter if your iPhone has a Lightning port) or wirelessly over Bluetooth MIDI. Either way, the app you want to play in has to support MIDI too.
Most MIDI keyboards made in the last 15 years or so are "class compliant", which means an iPhone can talk to them without installing anything. The part that trips people up is not the keyboard, it is the cable, the power, and the way iPhone handles Bluetooth MIDI. This guide walks through both methods step by step.
Two ways to connect
There are two routes, and which one you use depends on what your keyboard offers:
- USB MIDI: a wired connection. Reliable, no pairing, no lag from wireless.
- Bluetooth MIDI: wireless. Convenient, but only works if your keyboard has Bluetooth MIDI built in.
A quick note on words: a keyboard that only has a "USB" port is not always a MIDI keyboard. Check the manual or the label for "USB to Host" or "USB MIDI". A port marked "USB to Device" is usually for flash drives and will not connect to a phone. If you want the general version of this guide for any phone, see how to connect a keyboard to a phone.
Option 1: connect with a USB cable
What you need depends on your iPhone's charging port:
- iPhone 15 or newer (USB-C): a USB-C to USB cable that matches your keyboard's port. Many keyboards use a USB-B or micro USB or USB-C port on the keyboard side.
- Older iPhones (Lightning): Apple's Lightning to USB camera adapter, then your keyboard's normal USB cable.
Then follow these steps:
- Plug the adapter or cable into the iPhone.
- Plug the other end into the keyboard's USB port that goes to a computer (often labeled "USB to Host").
- Turn the keyboard on.
- Open a music app that supports MIDI and play a key. If the app makes a sound or shows the note, you are connected.
Power is the most common surprise. Small, bus-powered keyboards draw electricity from the phone, and some need more than an iPhone will give. If the keyboard lights up and then switches off, or is never found, a powered adapter (one with an extra charging port) or a powered USB hub often solves it. Full-size digital pianos that plug into the wall usually do not have this problem.
Option 2: connect over Bluetooth MIDI
If your keyboard supports Bluetooth MIDI, there is no cable at all. The surprise here is that you usually do not pair it in the iPhone's Settings app. Bluetooth MIDI devices are normally connected from inside the app you are using, and the app shows a list of nearby devices.
- Turn on the keyboard and switch on its Bluetooth MIDI function (the way to do this differs by model, so check the manual).
- Make sure Bluetooth is on in your iPhone.
- Open your music app and look for its Bluetooth MIDI or MIDI devices setting.
- Pick your keyboard from the list and wait for it to say connected.
If you are using a web page instead of an app, there is one more catch. Safari on iPhone does not support the browser feature that web pages use to talk to MIDI devices. A free browser called Bluefy adds that support, so Bluetooth MIDI on a web page goes through Bluefy rather than Safari.
Playing a game with your keyboard on iPhone
If you want to practice with falling notes, the free browser game Keyfall accepts a keyboard over Bluetooth MIDI or USB MIDI. On an iPhone or iPad, Bluetooth needs the free Bluefy browser: open learnpianogame.com in Bluefy, connect your keyboard when asked, and press a key to check it responds. Every falling note shows its letter name, and Starter mode waits for you at the line and shows which key to press, which is handy for a first session.
No keyboard nearby? The game can also listen through the microphone for an acoustic piano, or you can use the touch screen.
If your iPhone cannot find the keyboard
Work through these checks in order:
- Try another cable. Some USB cables only charge and carry no data. This is a very common cause.
- Check the port on the keyboard. It must be the one meant for a computer or phone.
- Restart the keyboard after plugging it in, then reopen the app.
- For Bluetooth, forget old connections. Turn the keyboard's Bluetooth off and on, close the app fully, and try again.
- Make sure only one app is using it. Close other music apps that might be holding the connection.
- Check the keyboard's own settings. A feature such as local control can change whether you hear sound from the keyboard itself. See what local control is if you hear doubled notes or none.
For problems on a computer instead, why is my keyboard not detected by computer covers similar ground. And if you wonder whether you need to install anything first, the answer for most modern keyboards is no, which is explained in do I need a MIDI driver for a keyboard.
Which method should you choose?
If your keyboard has Bluetooth MIDI, it is the easier setup for a child or a casual practice session: no cables to knock out, and the phone can sit on a stand. If you want the fewest things to go wrong, or your keyboard has no Bluetooth, USB is the steady choice, as long as you have the right adapter and the keyboard gets enough power.
Either way, the first goal is simple: press a key and see or hear the app respond. Once that works, you can spend your time on the music instead of the setup. A game is good for practice and fun, but it does not replace a teacher if you want help with posture, fingering and technique.
More about keyboards, midi and bluetooth
FAQ
Do I need to pair my MIDI keyboard in iPhone Settings?
Usually not. Bluetooth MIDI keyboards are normally connected from inside the app you are using, which shows a list of nearby devices.
Can I use any USB keyboard with my iPhone?
Only keyboards that send MIDI over USB will work, and class compliant ones work best because they need no driver. A keyboard whose USB port is only for flash drives will not connect.
Why does my keyboard turn off when I plug it into the iPhone?
It may need more power than the phone can give. Try a powered adapter or a powered USB hub, or a keyboard that uses its own power supply.
Does Safari work for Bluetooth MIDI on iPhone?
Safari does not support the browser feature that web pages use for MIDI. The free Bluefy browser adds it, which is why Bluefy is needed for Bluetooth on iPhone and iPad.
Will a MIDI keyboard make sound through the iPhone?
A MIDI keyboard sends note information, not sound. The sound comes from the app on the phone, or from the keyboard's own speakers if it has them.
Can I connect the keyboard to an iPad the same way?
Yes, the steps are very similar. The main difference is the port type, so check whether your iPad uses USB-C or Lightning.
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