How To Clean A Keyboard After A Spill (2026)
To clean a keyboard after a spill, unplug it first, turn it upside down, blot the liquid and let it dry for at least 24 hours.
If the drink was sticky, you then remove the keycaps and wash away the residue.
This guide covers a standalone desktop keyboard, with notes on laptops where the advice differs.
Table of Contents
Quick answer
| Step | What to do |
|---|---|
| 1. Cut power | Unplug the keyboard right away, or shut down a laptop |
| 2. Drain | Turn it upside down and keep it that way for several minutes |
| 3. Blot | Dab leftover liquid with a microfiber cloth or paper towel |
| 4. Dry | Leave it for at least 24 hours, preferably up to 48, still upside down |
| 5. Sticky drink | Remove keycaps and clean them and the base |
What to do in the first minute
Speed matters more than anything else.
- Unplug the keyboard from the computer.
- Keep it away from other devices.
- Turn it upside down and gently shake it.
- Keep it upside down for several minutes, propped at an angle over a paper towel if you can.
TechRadar gives these steps for a standalone keyboard.
A wireless keyboard should also have its batteries removed, since it has no cable to unplug.
Blot and dry it
Blot leftover droplets with a clean microfiber cloth.
TechRadar says a paper towel or soft t-shirt also works.
Then leave the keyboard to dry for at least 24 hours, preferably up to 48 hours, still upside down.
Do not plug it back in early to test it.
Water, coffee or soda: what changes
| Liquid | What to do after drying |
|---|---|
| Plain water | Test the keys once fully dry |
| Coffee, tea, juice | Check for sticky keys and clean if you find any |
| Soda or sugary drinks | Expect sticky keys, so plan on removing keycaps |
TechRadar says that if the liquid was anything other than water, you should check for sticky keys.
Coffee with sugar or milk leaves the same kind of residue as soda.
What you need
| Tool | Use |
|---|---|
| Keycap remover | Lifts keys straight up without breaking them |
| Isopropyl (rubbing) alcohol | Dissolves sticky residue |
| Cotton swabs | Cleans between the rows of switches |
| Soft-bristled toothbrush | Reaches tight spots |
| Microfiber cloth | Blots liquid and scrubs keycaps |
| Compressed air | Blows out debris under the keys |
TechRadar does not give an alcohol percentage, so follow the label on your bottle.
How to clean sticky keys
- Take a photo of the keyboard first so you can put the keys back correctly.
- Pop off the keycaps with a keycap remover.
- Pull each key straight up, not at an angle.
- Soak the keycaps in a bowl of warm water.
- Scrub with a microfiber cloth or cotton swab dipped in isopropyl alcohol diluted with warm water.
- Use a soft-bristled toothbrush for hard-to-reach spots.
- Drain the keycaps and let them dry completely on a towel.
TechRadar says a butter knife or flathead screwdriver can lift keys, but needs extra care.
The method for removing keycaps depends on the keyboard’s design, so look up your model if the keys do not lift easily.
Clean the base and the tops of the keys
With the keycaps off, run a cotton swab dipped in isopropyl alcohol between the rows of switches.
PopSci says to use only a little alcohol so the liquid stays on the surface instead of seeping in.
Alcohol evaporates quickly, and PopSci says surfaces dry within a few seconds.
For loose debris, PopSci suggests tilting the keyboard to about 75 degrees and spraying compressed air between the keys.
Rotate the keyboard 90 degrees four times so the air reaches more areas.
To clean keys that are still in place, dampen a cotton ball with a small amount of alcohol and wipe each key.
If it is a laptop keyboard
Laptops need extra care, because the liquid can reach the parts underneath.
Reviewed advises holding the power button until the screen goes black, then unplugging the charger and all cables.
It also says not to wipe liquid and not to shake the laptop.
TechRadar warns that some laptops, such as newer MacBook Air models, have special key switches that can break if keycaps come off wrongly.
Check with the manufacturer before removing laptop keycaps.
Our guides on spilled water on a laptop and what to do after spilling liquid on a MacBook cover that case in full.
If it doesn’t work
- Wait the full 24 to 48 hours before testing.
- Try the keyboard on a second computer or USB port.
- Repeat the keycap cleaning if keys still stick.
- Check for keys that type extra characters, which often means leftover residue.
Reviewed says to see a repair shop if nothing works after cleaning, or if you suspect internal damage even after drying.
If liquid got into a laptop battery or the battery looks swollen, it needs replacing.
A cheap standalone keyboard that still fails after a full clean is usually cheaper to replace than to repair.
If a laptop key sticks without any spill, see how to fix a stuck key on a MacBook keyboard.
FAQ
Should I shake a keyboard after a spill?
TechRadar says to gently shake a standalone keyboard upside down. Reviewed says not to shake a laptop.
How long should it dry?
At least 24 hours, preferably up to 48, according to TechRadar.
Can I use a hair dryer?
Reviewed says a hair dryer should only be used on a cool setting, and only for a small spill on a laptop.
Do I need to take the keys off?
Only if the liquid was not water and the keys feel sticky.
Sources: TechRadar, how to clean your keyboard, Popular Science, how to clean your keyboard, Reviewed, laptop spill guide.
More laptop and PC hardware guides
- How To Clean Install MSI Center On Windows (2026)
- Windows 11 Keyboard Shortcuts: Complete List (2026)
- How To Open The Emoji Keyboard And Symbols Panel In Windows 11 (2026)
- How To Turn Off The On-Screen Keyboard In Windows 11 (2026)
- How To Fix An ASUS Laptop Keyboard Backlight Not Working (2026)
- How To Fix An ASUS Laptop Keyboard Not Working (2026)