How to Replace a Laptop Keyboard

Most laptop keyboards can be replaced at home with a screwdriver and a plastic pry tool. The job falls into two designs - a keyboard that lifts out from the top, and one built into the palmrest - and this guide walks through both, plus the ribbon-connector handling that makes or breaks the repair.

Before you start

  • Tools: a small Phillips screwdriver, a plastic spudger or old bank card, and tweezers. Avoid metal pry tools - they mark the case and can short the board.
  • Power: shut down, unplug the charger, and remove the battery if it is removable. On sealed models, disconnecting the internal battery is step one after the bottom cover comes off.
  • Discharge: hold the power button for 15 seconds after unplugging to drain residual charge.
  • Screw discipline: screws are often different lengths. Lay them out in the pattern you removed them, or on a labelled strip of tape. A long screw in a short screw's hole can crack the palmrest from inside.
  • Photos: photograph every stage, especially cable routing. And before the old keyboard comes out, photograph the label on its underside - the part number is your guarantee the replacement matches (how to find it).

Step 0: work out which design you have

Look at the keyboard surround. If there is a visible seam and separate bezel around the keyboard, and the bottom cover has screws marked with a keyboard icon, it is almost certainly a top-mounted keyboard (common on business models and older machines). If the keyboard area is one smooth surface with the rest of the palmrest, it is palmrest-integrated (most slim and modern models) and the work is done from inside.

Design A: top-mounted keyboard

  1. Remove any keyboard screws from the bottom cover first - they are often marked with a keyboard symbol.
  2. Along the top edge of the keyboard (nearest the screen) there are usually three to five small retaining clips. Push each one back gently with the spudger while lifting that corner of the keyboard slightly.
  3. Work along the top edge until it is free, then tilt the keyboard up and towards the screen. Do not pull it away - the ribbon cable underneath is short and still connected.
  4. Flip the keyboard over onto the palmrest, upside down, so the cable and its connector are visible and relaxed.
  5. Release the connector as described in the ribbon section below, slide the cable out, and the keyboard is free. Note the part number on its label before you set it aside.

The ribbon cable: the step that matters most

Keyboard cables plug into a ZIF (zero insertion force) socket, and the cable is only held by a small locking flap. Two flap styles exist:

  • Flip-up: a thin bar along the socket that rotates up about 90 degrees. Lift it with a fingernail or the spudger tip, then slide the cable out with no force at all.
  • Pull-out: a small drawer-like latch that slides a millimetre towards the cable before the cable releases.

Never pull the cable while the flap is closed - this tears the cable's contacts and the new keyboard will behave exactly like the broken one. On refitting, slide the cable in straight until the printed alignment line on the cable disappears into the socket evenly, then close the flap. If one side sits higher than the other, reopen and reseat it - a crooked cable is the number one cause of "a row of keys does not work" after a swap.

Design B: palmrest-integrated keyboard

  1. Remove every bottom-cover screw - including any hidden under rubber feet - and pry the cover open gently, working around the seam with the plastic tool.
  2. Disconnect the battery first, before touching anything else inside.
  3. Photograph the layout. On these designs the keyboard is fixed from the inside, and other parts may sit over its cable or frame - typically the battery, speakers, or a metal bracket, occasionally the mainboard itself.
  4. Remove only what blocks access, keeping each part's screws grouped. Release the keyboard's ribbon cable at its socket (see above).
  5. The keyboard itself is held in the top case by many small screws, or by plastic rivets. Screws are slow but straightforward. Rivets are the warning sign: they must be cut and later re-formed with heat, which is fiddly and easy to get wrong. On riveted models, replacing the whole palmrest (top case) assembly - keyboard already fitted - is usually the better repair, and it is why we stock palmrest assemblies for these models.

Fitting the replacement - and testing before you close up

  1. Connect the new keyboard's cable and close the flap, exactly as above. Route the cable the way your photos show the old one routed.
  2. Reconnect the battery (temporarily is fine) and power the machine on with the covers still open / keyboard still loose.
  3. Open any keyboard-tester page or a text editor and press every key, including function keys and, on backlit models, the backlight toggle. Check the touchpad and its buttons too if you disturbed its cable.
  4. Only when every key registers correctly: power off, disconnect, seat the keyboard fully, refit screws in reverse order, and close up.

Testing before reassembly takes two minutes and saves a second strip-down - a misthreaded cable is a thirty-second fix now, and a full teardown later.

If something does not work afterwards

  • One row or group of keys dead: the ribbon cable is crooked or not fully home. Reseat it.
  • Whole keyboard dead: the locking flap is not fully closed, the cable is in upside down, or the battery was not reconnected.
  • A key repeats or sticks: debris under the keycap, or the keycap was knocked during fitting - reseat the cap.
  • Backlight dead but keys fine: on many models the backlight uses a second, smaller cable - check it is connected.

If you are stuck mid-repair, send us photos of the connector and cable via the contact page - we would rather help you finish than hear the cable tore. And if you have not ordered yet, search your exact model to see the parts listed for it.

← All guides