Skip to content

As an Amazon Associate I earn from qualifying purchases. How links work

Hardware Repair Guides

GuidesLaptops

How to Replace a Laptop Keyboard (Check This First)

Replacing a laptop keyboard? Find the exact part number, learn if yours is screw-in or riveted to the top case, and handle the ribbon cable without breaking it.

By Andrew Musselman · October 13, 2026 · 12 min read

Affiliate links. I may earn a commission at no extra cost to you. #ad

Swapping a laptop keyboard can be a 20-minute job or a whole-afternoon teardown. It depends on how your laptop was built. Before I buy anything, I check two things: the exact part, and whether the keyboard comes out on its own or is fixed into the top case.

Step 1: Find the exact part

Keyboards that look the same often don’t fit. Layout (US vs UK), backlit or not, and the cable shape all vary inside one model line.

  • Find your model number on the sticker under the laptop or in system info. On Windows, run “msinfo32” and look at System Model. Dell uses a 7-character Service Tag, Lenovo a Machine Type Model (MTM), and HP a Product Number (P/N). All are on the bottom label.
  • Search that number on the maker’s parts or support site. Lenovo, Dell, and HP list keyboard part numbers (often called FRU or part numbers) for many models.
  • If you can, check the old keyboard’s part number on its back sticker once it’s out, and match it.
  • When buying, match layout, backlight, and any trackpoint (ThinkPads). Read the listing’s compatible models closely.

Step 2: Which type is yours?

Removable keyboard (screw-in or clip-in). Common on many business laptops, like the ThinkPad T14 and L14, where a couple of screws let the keyboard slide out from the top. Some others, like the ThinkPad X1 Carbon and T14s, screw in from underneath, so the laptop has to come apart more, but the keyboard is still its own part. Even inside one brand it varies by model. The keyboard is held by screws on the bottom and clips around the edge, and connects with a ribbon cable. This is the friendly kind.

Riveted or glued to the top case. Common on thin laptops and many consumer models, including MacBooks, most Lenovo IdeaPad and Legion models, and even some ThinkPads like the E15/E16 and P14s Gen 6. The keyboard is held into the palm rest with dozens of tiny plastic rivets or glue. You can replace just the keyboard, but it means drilling or cutting rivets and fixing in the new one with tiny screws, and it’s slow. Most shops, and Apple, replace the whole top case (palm rest with keyboard included), which costs more but is far easier.

iFixit has guides for many models. Searching “[your model] keyboard replacement” there tells you quickly which type you have.

Step 3: Safety first

  • Shut down fully. Don’t use sleep. Unplug the charger.
  • Disconnect the battery inside before unplugging any cable, if your model lets you. Most iFixit guides do this first.
  • Use ESD habits: touch bare metal to ground yourself or wear a wrist strap, and work on a hard surface. See anti-static habits that matter.
  • Use the right driver from precision screwdriver set. Stripped tiny screws are a pain to fix.
  • Keep screws in order on a mat. Laptops often use different lengths in different holes, and a long screw in the wrong hole can damage the board.

Step 4: Removing a removable keyboard (general steps)

Every model differs, so follow its own guide. The usual flow:

  • Remove the bottom cover and disconnect the battery.
  • Take out the screws marked with a keyboard icon, or the ones the service manual lists.
  • On some models, push the keyboard up from below. On others, pry it up from the top edge with a plastic tool, releasing the clips one at a time.
  • Lift it slowly. The ribbon cable is still attached underneath, so don’t yank it.

Step 5: The ribbon cable (ZIF connector)

Most keyboard cables plug into a ZIF (zero insertion force) connector. The cable isn’t held by force. It’s held by a small latch.

  • Find the latch. It’s either a flip-up flap or a slider that pulls out.
  • Lift the flap or slide the latch gently with a plastic spudger or your fingernail. Don’t use metal.
  • Slide the cable straight out once the latch is open. Backlit keyboards often have a second, smaller cable.
  • To install, slide the new cable fully and squarely into the connector. The contacts face the right way, so check the old one before removing it.
  • Close the latch. If the cable is crooked, some or all keys won’t work.

Step 6: Test before you close everything

Plug in the battery and charger, boot up, and test every key on a keyboard tester page, plus the backlight. It’s much easier to fix a cable seated wrong before the last screws go back in. Then finish the reassembly.

When to use a shop

  • The keyboard is riveted in and you don’t want to swap the whole top case yourself.
  • It’s a MacBook. Apple and authorized providers replace the top case. Apple’s free butterfly keyboard service program (for 2015 to 2019 MacBook, MacBook Air, and MacBook Pro models) ended in November 2024, so expect to pay now.
  • The laptop is still under warranty. Opening it yourself may void it.
  • There was a spill and other parts are acting up.
  • You’d rather pay a small labor fee than risk a ribbon cable on an expensive machine.

FAQ

Can I replace just the keyboard on a laptop?

On many laptops, yes. On thin laptops where the keyboard is riveted into the top case, it’s usually easier to replace the whole top case.

Will any keyboard fit my laptop?

No. Match the exact model and part number, plus layout and backlight.

How do I know if the new keyboard cable is seated?

It should go in straight and evenly, with the latch fully closed. If keys in one area don’t work, reseat the cable.

Do I need to take the battery out?

Disconnect it whenever your model’s guide allows. It protects the board while cables are unplugged.

Keep going

Keep fixing