One spilled coffee is usually what forces the question of how to replace the keyboard on an XPS 13, and the answer is that the keyboard never lifts out from the top. The base cover comes off, the battery disconnects, and on the newest generations the system board moves first.
Dell publishes a separate procedure for each generation, and the screw counts show how little the models share. Confirm your exact model before you buy a part or pick up a screwdriver.
Which XPS 13 Do You Actually Own?
The model number decides the whole job, so read it off the bottom cover or match it on Dell’s support site by service tag. A 9340, a 9350, and a 2-in-1 9310 share a name and almost nothing under the lid.
Mixing two lengths in the wrong holes strips the palm-rest threads, and those never come back.
Replacing The Keyboard On An XPS 13: Screws, Cables, And What Comes Out First
Every generation follows the same arc: Dell’s “Before working inside your computer” steps, base cover, battery, anything sitting over the keyboard, then the retaining screws and the two ribbon cables. The cables are what people break.
| XPS 13 Model | Keyboard Screws | Removed Before The Keyboard |
|---|---|---|
| Every XPS 13 | Varies | Power off, unplug, ESD precautions, nonconductive work surface, Dell’s before-you-begin steps |
| XPS 13 9340 | 24 (17 M1.4×1.2 plus 7 M1.6×2) | Base cover, battery, system board, power button with fingerprint reader |
| XPS 13 9350 (P54G) | 30 | Base cover, battery, components above the keyboard-controls board |
| XPS 13 9305 | 29 M1.6×1.5 | Base cover, battery; keyboard slides out from under the display hinges |
| XPS 13 7390 | 29 M1.6×1.5 | Base cover, battery; thermal pad and foil sticker transfer to the new unit |
| XPS 13 2-in-1 9310 | 48 (38 M1.2×1.4 plus 10 M1.2×1.6) | Base cover, battery, system board, keyboard brackets, copper foil, conductive tape |
| XPS 13 9365 2-in-1 | 29 (23 M1.6×1.5 plus 6 M2×2) | Base cover, battery, SSD, wireless card, speakers, coin-cell battery, system board |
Seventeen M1.4×1.2 screws and seven M1.6×2 screws come out, then the backlight and keyboard cables lift free on their pull tabs.
The 9350 secures the keyboard with 30 screws and sends both the keyboard and backlight cables through a keyboard-controls board, so you disconnect at the board instead of at the keyboard. Dell’s XPS 13 9350 service manual walks the cable channels and screw order in sequence.
The 7390 and 9305 are the gentler pair: 29 screws, then the keyboard slides out from under the display hinges, and the supplied thermal pad and foil sticker transfer to the replacement.
The 2-in-1 9310 shares nothing with those three. It adds left and right keyboard brackets, copper foil, conductive tape, and 48 screws, and the system board has to come out first.
Buying the part is a separate decision from the teardown. If you’re comparing drop-in replacements, our tested XPS 13 keyboard roundup covers layout, backlight, and fingerprint-reader differences.
- Open the latch before pulling. Zero-insertion-force connectors have a small flip latch; lift it, then slide the ribbon free.
- Keep the ribbons flat. Unthread each cable from its channel before the keyboard lifts, and never crease a fold.
- Separate screws by size. M1.4 and M1.6 lengths look alike and thread into plastic, so a mix-up is permanent.
Where The Job Goes Wrong
Most keyboard swaps that fail trace to the wrong generation’s guide, a battery still connected, or a ribbon cable pulled with its latch closed. All three are avoidable in the first ten minutes.
Do not order a part from a photo. Verify the service tag, the layout (US boards differ from UK and Canadian versions), the backlight, and whether your machine has the power button with the fingerprint reader built in.
A swollen battery ends the self-repair. Dell’s 9305 manual directs owners to contact Dell product support or an authorized technician for replacement under warranty or a service contract instead of continuing.
Reconnect the battery and power on before the last screws go in. Type a line, tap the backlight key, press the fingerprint reader, and check the touchpad and power button. A cable that slipped loose costs five minutes here and a second teardown later.
Common Questions
Can I replace one broken key instead of the whole keyboard?
Sometimes. If the keycap popped off and the scissor clip underneath is still intact, a replacement keycap can snap back on. Once that plastic hinge is cracked or the key stops registering, the fix is the full assembly, because Dell only documents removal of the complete keyboard unit. Liquid damage and dead backlights also mean a new unit.
How long should the swap take?
Budget an afternoon for a first attempt. The 9340 and 9350 are a couple of hours of careful work for anyone comfortable with a screwdriver, while the 2-in-1 models add system-board removal and run longer. Most of the overrun comes from rushing the ribbon cables.
Does the battery really have to come out first?
Unplug the AC adapter, follow the manual’s before-you-begin steps for residual power, and disconnect the battery connector before you touch a ribbon cable.
Sources
- Dell. “XPS 13 9350 Service Manual” Documents the 30-screw keyboard removal, cable routing, and reinstall order for computer model P54G.