
How to Get Feces Out of Keyboard: Tested 2026 Fixes
Immediate Action (First 5 Minutes)
When my toddler decided my Logitech MX Keys was a makeshift potty during a chaotic Tuesday morning, I completely panicked. Feces in a keyboard is a biohazard nightmare. You have exactly five minutes to prevent permanent electrical damage and severe bacterial growth. Stop typing. Unplug the keyboard from your computer immediately. If you own a wireless model like the Keychron K2, flip the physical power switch to off and remove the battery if possible.
Do not wipe the mess with a paper towel yet. Smearing pushes the biological matter deep into the mechanical switches or membrane domes. Instead, grab a rigid piece of plastic. I use an old expired credit card or a plastic spudger tool. Gently scoop the solid matter straight up and away from the board. Drop it directly into a trash bag. Next, turn the keyboard completely upside down over a garbage can. Let gravity do the heavy lifting for about sixty seconds. This prevents liquid from seeping into the PCB. I'll be honest, this initial phase is incredibly gross. But acting fast saves your $150 peripheral from the trash bin.
What You'll Need (Tools and Products)
You can't just spray Lysol and hope for the best. Feces contains proteins, fats, and dangerous bacteria like E. coli. You need specific chemical agents to break down the organics and kill the pathogens. Here is the exact kit I keep in my cleaning caddy for biohazard tech spills.
| Item | Purpose | Estimated Cost |
|---|---|---|
| 99% Isopropyl Alcohol | Disinfects without causing water damage to circuits | $8 - $12 |
| Nature's Miracle Enzyme Cleaner | Breaks down uric acid and biological proteins | $10 - $15 |
| Wire Keycap Puller | Safely removes keys without scratching the plastic | $5 - $8 |
| WD-40 Specialist Contact Cleaner | Flushes out gunk from inside the switch housing | $12 - $18 |
| OXO Good Grips Dusting Brush | Sweeps away dried particles from the base plate | $9 - $11 |
Always buy 99% isopropyl alcohol instead of the standard 70% rubbing alcohol. The 70% version contains 30% water. That extra moisture will pool under your switches and cause a dead short when you plug the board back in. The 99% solution evaporates in seconds, leaving zero residue behind.
Step-by-Step Removal Guide
This process takes about 45 minutes of active work, plus drying time. Grab a well-ventilated workspace and put on a pair of nitrile gloves. I always use blue nitrile gloves because they resist tearing when handling sharp plastic edges.
Step 1: Document and Remove Keycaps
Take a clear photo of your keyboard layout with your phone. You will forget where the F-row and navigation keys go. Once documented, use your wire keycap puller to remove every single keycap. Hook the wire under opposite corners of the keycap and pull straight up. Don't twist. Twisting snaps the delicate plastic stems on Cherry MX style switches. Place the removed keycaps into a large plastic bowl.
Step 2: Dry Extraction of Solid Matter
Now that the board is bare, inspect the damage. Use a pair of long metal tweezers to pluck out any remaining solid debris. If the feces has dried into a crusty layer, use the OXO Good Grips dusting brush to sweep it out. Brush in one direction, pushing the debris toward the edge of the board. Never scrub in circles. Circular motions just grind the biological matter deeper into the switch housings.
Step 3: Enzyme Treatment for Biological Stains
This is the secret step most people skip. Spray Nature's Miracle enzyme cleaner directly onto a microfiber cloth until it is damp, not dripping. Wipe down the exposed base plate of the keyboard. The enzymes literally eat the proteins and uric acid that cause the lingering smell. Let the damp board sit for exactly 10 minutes. This gives the enzymes time to break down the organic bonds. Wipe it away with a dry section of the cloth.
Step 4: Deep Disinfection of the Switches
If liquid seeped into the actual mechanical switches, you need to flush them. Attach the red straw to your WD-40 Specialist Electrical Contact Cleaner. Give each affected switch a quick, one-second burst. The high-pressure spray forces out the contaminated liquid. Follow this up by dipping a cotton swab in 99% isopropyl alcohol and scrubbing the metal contacts and surrounding PCB. The alcohol kills the remaining bacteria on contact.
Step 5: The Keycap Soak
Your keycaps are covered in microscopic pathogens. Fill your kitchen sink with water heated to exactly 104°F. Add two tablespoons of Dawn Ultra dish soap. Dump the keycaps in and let them soak for 30 minutes. The warm water opens the plastic pores while the Dawn cuts through the fats in the feces. After soaking, scrub each keycap individually with an old toothbrush. Rinse them thoroughly with cold water.
Step 6: Drying and Reassembly
Shake the excess water off the keycaps and lay them face down on a dry bath towel. I'll be honest, waiting 24 hours for them to dry completely tests my patience. But you must ensure zero moisture remains in the stem hollows. Once the keycaps and the keyboard base are bone dry, use your reference photo to snap the keys back onto the switches. Plug the board in and test every single key using an online keyboard tester tool.
Alternative Methods
Sometimes the standard method doesn't fit your specific hardware. If you are dealing with a cheap membrane keyboard or stubborn yellow stains, try these backup techniques.
Method 1: UV-C Light Sanitization for Membrane Boards
If you have a sealed membrane keyboard where the keys cannot be removed, liquid cleaners are a massive risk. Instead, perform the dry extraction with tweezers and a brush. Then, use a handheld UV-C sanitizing wand. I use the PhoneSoap UV wand, hovering it exactly two inches above the keys for 60 seconds per section. The UV-C light destroys the DNA of the bacteria without introducing any moisture to the delicate membrane sheets underneath.
Method 2: Ultrasonic Cleaner for Keycaps
If your keycaps have deep, textured fonts that trap biological matter, a toothbrush won't cut it. Buy a cheap ultrasonic jewelry cleaner for about $35. Fill it with warm water and a drop of dish soap. Drop the keycaps in and run it for three minutes. The high-frequency sound waves create microscopic cavitation bubbles that literally blast the feces out of the tiny crevices. It's incredibly satisfying to watch the cloud of dirt erupt from the plastic.
Method 3: Hydrogen Peroxide for Yellow Stains
Feces can leave a permanent yellowish stain on white or light-colored keycaps, even after washing. To fix this, create a paste using 3% hydrogen peroxide and baking soda. Paint the paste onto the stained plastic using a small brush. Wrap the keycaps in plastic wrap and leave them in direct sunlight for four hours. The UV rays activate the peroxide, bleaching the organic stain out of the plastic without melting it.
Prevention Tips
Cleaning up a biohazard is miserable. Preventing it is incredibly easy. If you have kids who track mud everywhere or pets that jump on your desk, you need physical barriers.
- Install a Silicone Skin: Buy a custom-fit silicone keyboard cover. They cost around $12 on Amazon. If an accident happens, you just peel the skin off and wash it in the sink.
- Enforce a Strict Desk Policy: Keep food, drinks, and pets off the desk. I trained my cat to stay off my workspace by placing a ScatMat near the monitor.
- Wash Your Hands: It sounds obvious, but washing your hands with soap for 20 seconds before sitting down prevents the transfer of invisible fecal coliforms from the bathroom to your spacebar.
- Weekly Maintenance: Wipe your keyboard down with a Zeiss pre-moistened lens wipe every Friday. This prevents the buildup of oils and skin cells that bacteria feed on.
Frequently Asked Questions
Can I use bleach to clean feces out of my keyboard?
No, you should never use bleach on electronic peripherals. Bleach is highly corrosive and will eat away at the plastic keycaps and metal contacts. Stick to 99% isopropyl alcohol or specialized electronics cleaners to safely disinfect the board.
Will this cleaning process void my warranty?
Yes, opening the casing or flooding the switches with liquid will almost certainly void your manufacturer warranty. However, pulling keycaps and cleaning the surface with minimal alcohol is usually considered standard maintenance. If the board is already ruined by a biohazard, you have nothing to lose by trying to save it.
How do I get the smell out if the mess has already dried?
Dried biological matter requires an enzyme cleaner like Nature's Miracle to break down the uric acid crystals. Apply the enzyme cleaner to a cloth, wipe the affected areas, and let it air dry completely. You may need to repeat this process two or three times to fully neutralize the odor.
Is it better to just buy a new keyboard instead of cleaning it?
If you have a cheap $20 membrane keyboard that is heavily soiled, just throw it in the trash and buy a replacement. The time and cost of the cleaning supplies will exceed the value of the hardware. However, if you own a premium $150 mechanical keyboard, this cleaning method will absolutely save your investment.









