How to Clean a Laptop Keyboard After a Spill
In this article
Unplug the laptop and turn it off immediately, then tilt it so the liquid drains away from the keyboard and internal components. Do not turn it back on until you are certain it is completely dry. Cleaning under the keys after a spill is mostly about removing sticky residue that makes keys sluggish or causes them to stick, but the first priority is always preventing liquid from reaching the motherboard. If the spill was water, you have some time; if it was coffee, soda, juice, or anything with sugar or milk, residue will dry into a sticky film that can stop keys from working, so act quickly.
What You'll Need
- Isopropyl alcohol (90% or higher) — not rubbing alcohol that contains oils or fragrance
- Distilled water (for diluting if needed, though straight alcohol is preferred)
- Lint-free microfiber cloths or coffee filters
- Cotton swabs (foam-tipped are best)
- Plastic pry tool or a guitar pick (for removing keycaps on some models)
- Can of compressed air (optional, use short bursts)
- Small bowl or cup for the alcohol
- Paper towels
- Soft-bristled brush (like a clean toothbrush)
- Keycap puller (optional, for mechanical-style laptop keyboards)
Step-by-Step
- Power down and disconnect everything. Shut down the laptop completely (not sleep or hibernate). Unplug the power adapter, remove any USB devices, and if the battery is removable, take it out. This prevents short circuits if liquid reaches the internals.
- Tilt and drain. Hold the laptop at a 45-degree angle with the keyboard facing down (like a tent) so liquid runs out the sides rather than deeper inside. Keep it in this position for at least 15–30 minutes. Wipe away any liquid that drips out with paper towels.
- Blot the surface. Use a dry microfiber cloth to gently press down on the keyboard to soak up surface liquid. Do not rub—rubbing pushes liquid under the keys. Change cloths as they become wet.
- Assess the spill type. Water is the least damaging; sugary drinks, coffee with milk, and juice leave sticky residue that must be cleaned. If the spill was anything other than plain water, you will need to clean under the keys more thoroughly.
- Remove keycaps (if your laptop allows). Most laptop keyboards use scissor-switch mechanisms, and keycaps can be carefully pried off with a plastic tool. Work from the top edge of the key and lift gently. Not all laptops are designed for keycap removal—check your model's service manual or manufacturer support pages first. If you are unsure, skip this step and clean from the edges.
- Clean under each key. Dampen a cotton swab with isopropyl alcohol (squeeze off excess so it is not dripping). Gently swab the exposed switch mechanism and the area under the keycap. For sticky residue, use a fresh swab with alcohol and repeat until no residue comes off. Avoid flooding the area with alcohol; a little goes a long way.
- Use compressed air for debris. After the alcohol has evaporated (a few minutes), give short bursts of compressed air between the keys to dislodge loosened debris. Hold the can upright to avoid spraying liquid propellant.
- Clean the keycaps. If you removed keycaps, wipe them with an alcohol-dampened cloth and let them air dry completely before reattaching. Do not soak them in water.
- Reattach keycaps. Once everything is dry, align the keycap with the switch and press down gently until it clicks into place. Test each key for proper movement.
- Let it dry completely. Leave the laptop in a dry, well-ventilated area for at least 24 hours before turning it on. Do not use a hair dryer or put it in direct sunlight—heat can warp components.
- Test the keyboard. After 24 hours, power on and test every key using a keyboard tester website or a text document. If any keys stick or do not register, you may need to repeat the cleaning or seek professional repair.
Common Mistakes
- Turning the laptop on too soon. Even a small amount of moisture can cause a short circuit. Wait at least 24 hours.
- Using a hair dryer. Heat can damage plastic components and push moisture deeper. Use a fan on cool setting if you must move air.
- Rubbing instead of blotting. Rubbing spreads the liquid and pushes it under the keys.
- Using too much alcohol. Flooding the keyboard can carry residue into the internals. Dampen swabs and cloths, never pour.
- Forgetting to remove the battery. If your laptop has a removable battery, take it out before cleaning to eliminate power.
- Prying keycaps without checking. Some laptop keyboards have fragile clips that break easily. Consult your manual first.
Tips
- Keep the laptop tilted while cleaning so any loosened residue drains away from the internals.
- Work in a well-lit area and take photos of the keyboard before removing keycaps to help with reattachment.
- Use foam-tipped swabs for better control and less lint.
- If the spill was sticky, you may need to repeat the alcohol cleaning two or three times.
- After cleaning, consider using a keyboard cover to protect against future spills.
Troubleshooting
- Keys still stick after cleaning: The residue may be deeper than you can reach. Repeat the alcohol cleaning, paying extra attention to the switch mechanism. If it persists, the keyboard may need professional servicing.
- Some keys do not work at all: Liquid may have damaged the membrane or circuit board. This often requires replacing the keyboard or the entire top case. Contact the manufacturer or a repair shop.
- Laptop will not turn on: Do not attempt to power it on repeatedly. Disconnect power and seek professional help—there may be internal damage.
- Sticky residue on the screen or palm rest: Clean with a microfiber cloth dampened with alcohol, but avoid excess liquid.
Frequently Asked Questions
Can I use rubbing alcohol to clean my laptop keyboard?
Yes, but use 90% isopropyl alcohol or higher. Lower concentrations contain more water and may leave residue. Avoid alcohol that contains fragrances or oils.
How long should I wait before turning on my laptop after a spill?
Wait at least 24 hours after cleaning and ensuring everything is dry. If the spill was significant, wait 48 hours.
Can I remove the keys to clean underneath?
On many laptops, keycaps can be carefully pried off, but this varies by model. Check your manufacturer's documentation first—some keyboards are not designed for user removal.
What if the spill was coffee or soda?
Sugary or milky liquids leave sticky residue that can cause keys to stick. Clean immediately with isopropyl alcohol and cotton swabs, and repeat until no residue remains.
Is it safe to use compressed air?
Yes, use short bursts and hold the can upright to avoid spraying liquid propellant. Do not insert the nozzle too deep, as it can damage components.
Do I need to open the laptop to clean under the keys?
Usually not for surface cleaning. If liquid penetrated deep inside, professional disassembly may be required. Do not open the laptop yourself unless you are experienced.