The fastest way to pair your Apple keyboard
Turn on your Apple keyboard first — look for the power switch on the back or bottom edge, depending on your model. Then go to System Settings on your Mac, click Bluetooth in the sidebar, and wait for your keyboard to appear in the list of available devices. Click it once, and your Mac will ask you to type a four-digit code on the keyboard to confirm the pairing. Type those numbers and press Enter. Your keyboard is now connected.
The whole process takes about 30 seconds. If your keyboard does not appear in the Bluetooth list within 10 seconds of turning it on, it may already be paired to another device — see the troubleshooting section below.
Key Takeaways
- Apple keyboards pair through Bluetooth, which you access in System Settings under the Bluetooth menu on your Mac.
- Your keyboard must be powered on and in pairing mode (usually the default state when first turned on) before it will show up in the available devices list.
- The pairing code your Mac displays must be typed on the keyboard itself, not entered through another device.
- Once paired, your keyboard will reconnect automatically whenever both devices are powered on and in range.
Where to find Bluetooth settings on different Mac versions
On a Mac running macOS Ventura or newer, open System Settings (the gear icon in your dock or Applications folder), then click Bluetooth in the left sidebar. You will see a list of available devices below the toggle switch.
On older Macs running macOS Monterey or earlier, the path is slightly different: open System Preferences instead of System Settings, then click Bluetooth. The pairing process itself is identical — your keyboard will still appear in the list and ask for the four-digit code.
If you cannot find Bluetooth in either location, your Mac may have Bluetooth turned off. Look for a Bluetooth icon in the menu bar at the top right of your screen. Click it and select Turn Bluetooth On.
What to do if your keyboard does not appear in the list
First, check that your keyboard is actually powered on. Most Apple keyboards have a small switch on the back or underside. Flip it to the On position and wait 5 to 10 seconds — the keyboard needs time to broadcast its signal.
Second, make sure your keyboard is not already paired to another device. If you recently used this keyboard with an iPhone, iPad, or different Mac, it may still be connected there. Unpair it from that device first by going to its Bluetooth settings and clicking the information icon next to the keyboard name, then selecting Forget This Device. Once forgotten, turn the keyboard off and back on, and it should appear on your Mac within 10 seconds.
Third, restart your Mac's Bluetooth. Click the Bluetooth icon in the menu bar, select Turn Bluetooth Off, wait 10 seconds, then turn it back on. This clears temporary connection problems that prevent your keyboard from being seen.
Entering the pairing code correctly
When you click your keyboard in the Bluetooth list, your Mac will display a four-digit code on the screen. You must type this code directly on the keyboard you are pairing — do not type it on another keyboard or input device. After you type all four digits, press the Return key on the Apple keyboard itself.
If you make a mistake while typing the code, press Delete to erase the last digit and try again. If the code expires before you finish (usually after 30 seconds), the pairing window will close. Start over by clicking your keyboard in the Bluetooth list again.
Checking your connection after pairing
Once pairing is complete, your keyboard name will move from the "Available" section to the "Connected" section in Bluetooth settings. You should see a checkmark or the word "Connected" next to its name. At this point, you can close System Settings and start using your keyboard.
Your Mac will remember this keyboard from now on. The next time you turn on both your Mac and keyboard, they will reconnect automatically without asking for the pairing code again. If your keyboard does not reconnect automatically, make sure Bluetooth is still on in System Settings and that your keyboard is powered on.
Pairing a second or replacement Apple keyboard
If you want to use a different Apple keyboard with the same Mac, simply turn on the new keyboard and repeat the pairing steps above. Your Mac can remember multiple keyboards and will connect to whichever one is powered on and in range.
If you are replacing a broken keyboard and want to remove the old one from your Mac's memory first, go to Bluetooth settings, find the old keyboard in the Connected list, click the information icon next to it, and select Forget This Device. This step is optional — your Mac will not get confused if you keep both listed, but it keeps your settings cleaner.
Frequently Asked Questions
Why does my keyboard keep disconnecting?
Low battery is the most common cause. Check the battery level in Bluetooth settings — click the information icon next to your keyboard name. If the battery is below 20 percent, charge your keyboard. Also make sure nothing is blocking the signal between your keyboard and Mac, and that your Mac's Bluetooth is not turned off.
Can I use my Apple keyboard with multiple Macs at the same time?
No. An Apple keyboard can only be paired to one device at a time. To switch it to a different Mac, unpair it from the first Mac by going to Bluetooth settings, clicking the information icon next to the keyboard, and selecting Forget This Device. Then turn the keyboard off and back on, and pair it to the second Mac using the steps above.
What if I lost the pairing code my Mac showed me?
You cannot retrieve a code that has expired. Close the pairing window and click your keyboard in the Bluetooth list again — your Mac will generate a new four-digit code. You have about 30 seconds to type it before it expires.
Does my Mac need to be plugged in to pair a keyboard?
No. Your Mac can pair a keyboard on battery power. However, make sure your Mac's battery is not critically low, as Bluetooth may turn off automatically when the battery is below 5 percent.