Short answer
A Magic Keyboard is discoverable when it is on and not connected to another device. Used before? Remove it from the old Mac, iPad or iPhone first, then switch it off and on. On a Mac it is easier still: plug it in with its cable and it pairs by itself.
Have an Anker keyboard? Jump to Anker keyboards.
Which Magic Keyboard do you have?
| Port on the back edge | Model | Pairs with a Mac by |
|---|---|---|
| USB-C | 2024 and later, rechargeable | Cable or Bluetooth |
| Lightning | 2015 to 2024, rechargeable | Cable or Bluetooth |
| None, AA batteries | Older Apple Wireless Keyboard | Bluetooth only |
On the rechargeable models, the power switch is on the back edge. You see green next to it when the keyboard is on.
Pair it with a Mac
With a cable (USB-C, Lightning)
- Connect the keyboard to your Mac with its USB-C or Lightning cable.
- Turn the keyboard on with its switch.
- Wait for the notification that says you can unplug it. It pairs and charges at the same time.
- Unplug the cable and type.
To check, open Apple menu System Settings Bluetooth: the keyboard is in the list.
Without a cable (AA model)
You need a mouse or trackpad that already works with the Mac.
- Turn the keyboard on.
- On the Mac, open Apple menu System Settings Bluetooth.
- When the keyboard appears, click Connect.
- If the Mac shows a code, type it on the keyboard and press Return.
Not showing up? Put in fresh batteries, and remove it from any other Mac nearby (see below).
Make it discoverable for an iPad, iPhone or PC
A Magic Keyboard connects to one device at a time. Unpair it from the old device first, or the new one won’t see it.
- Unpair it from the old device:
- Mac: in System Settings Bluetooth, hold Control and click the keyboard, then choose Forget.
- iPad or iPhone: in Settings Bluetooth, tap the info button next to the keyboard, then Forget This Device.
- Switch the keyboard off, wait a few seconds and switch it on again.
- Charge it if the battery is low.
Then pair it on the new device:
iPhone and iPad
- Open Settings Bluetooth and check that Bluetooth is on.
- Tap the keyboard when it appears in the list.
- If a code appears, type it on the keyboard and press Return.
Keep the keyboard within about 10 metres (33 feet).
Windows
- Click the network, sound or battery icon on the taskbar.
- Next to Bluetooth, select the arrow (Manage Bluetooth devices).
- Select the Magic Keyboard under New devices.
- If a code appears, type it on the keyboard and press Return. Select Done.
Not in the list? Open Settings Bluetooth & devices Devices and set Bluetooth devices discovery to Advanced. On Windows, the Command key works as the Windows key.
Anker keyboards
Before an Anker Bluetooth keyboard can pair, it has to be in pairing mode, with its light flashing.
- Charge it or put in fresh batteries, then turn it on.
- Press Fn + Z. On the Ultra Compact keyboard (A7721) the light comes on, then flashes.
- Open the Bluetooth settings of your device and pick the keyboard (for example Anker A7721).
- If a number appears, type it on the keyboard and press Enter.
Other Anker models may use another key. If Fn + Z does nothing, check the manual for the model number on the label underneath.
On a Mac, iPad or Windows PC, pick it as shown above. On a Pixel and many Android phones, open Settings, Connected devices, Pair new device. On a Samsung Galaxy, open Settings, Connections, Bluetooth and tap it under Available devices.
After the first pairing, the keyboard connects by itself when you turn it on. To move it to another device, press Fn + Z again and pair there.
Why your keyboard won’t show up
| Cause | Fix |
|---|---|
| It’s still paired with another device | Unpair it there, or turn off Bluetooth on that device |
| It’s not in pairing mode | Magic Keyboard: switch it off and on. Anker: press the pairing keys until the light flashes. |
| The battery is flat | Charge it or change the batteries |
| It’s too far away | Keep it close while you pair |
| The device has an old entry for it | Remove the keyboard from the Bluetooth list, then pair again |
When it works, check every key:
Test it now
Keyboard tester
Press every key once. Keys that light up reach the computer. On Windows, a Mac keyboard’s Command key shows as the Windows key.
Questions people ask
Can a Magic Keyboard be paired with two devices at once?
No. It connects to one device at a time. Unpair it from the first device, then pair it with the second.
How do I reconnect a Magic Keyboard that was already paired?
Turn it on. It connects to the last device it was paired with, if that device is nearby and has Bluetooth on.