PDF download Download Article
Remove dirt, debris, and stains from between your keys
PDF download Download Article

Computer keyboards can become dirty after extended use even if you don't eat or smoke near them. Overtime, dust, debris, and grime can affect a keyboard's performance. Most of the time, disconnecting your keyboard and cleaning it with compressed air and/or isopropyl alcohol is all you'll need to keep your keyboard nice and tidy. Spills are more damaging, so if you get anything wet on your keyboard, unplug it and dry it out immediately. This wikiHow teaches you different ways to safely clean your computer's keyboard.

Quick Guide

  1. Unplug the keyboard from your computer.
  2. Take off the keycaps for a more thorough clean, if possible.
  3. Spray the keyboard with compressed air.
  4. Clean the keycaps and the area around them with isopropyl alcohol.
  5. Wipe the keyboard down with a microfiber cloth.
Method 1
Method 1 of 3:

Removing Debris and Grime

PDF download Download Article
  1. To protect your hardware from damage, shut off your computer first before attempting to clean the keyboard. If your keyboard is wired, pull out the plug connecting it to the computer. If you can't remove the keyboard, such as when cleaning a laptop, disconnect your computer's power cable to eliminate the risk of electrical shock. [1]
    • USB keyboards can be unplugged before you shut down the computer. Doing this with a non-USB keyboard may damage your computer, so if you're unsure, always shut down the computer first.
    • Take the batteries out of wireless keyboards, especially if you plan on deep cleaning the keys.
  2. Flip your keyboard and knock off as much loose debris as possible. Be gentle when shaking the keyboard. Most food crumbs, dirt, pet hair, and other debris will fall out right away. Tilt the keyboard in different directions and tap it a little harder to force out any leftover debris you notice. [2]
    • Listen for the sound of debris rattling around inside the keyboard. This happens sometimes with mechanical keyboards and other devices with raised keys. Consider taking the keyboard apart to give it a deep cleaning.
    • If you're cleaning a laptop, hold the screen open while supporting the computer's base with your other hand.
    • You can also try using a cleaning gel product to remove debris from between keys. These products are a slimy (yet sort of solid) consistency and can be laid across the keyboard and peeled off. When you peel the product off, any loose debris will adhere to the slime. Before investing in a keyboard cleaning gel, be sure to read each product's reviews so you don't wind up with a poor product.
    Advertisement
  3. Compressed air is your most reliable tool for general cleaning, so pick some up from your local department or electronics store if you don't have any. After affixing the plastic straw to the nozzle, hold the canister at a 45-degree angle while pointing it at the keys. Sweep the nozzle across the keyboard in a left-right motion using controlled bursts of air. [3] Keep the nozzle 1 2  in (1.3 cm) above the keyboard at all times.
    • To fully clean the keyboard, blow at it from different angles. Face it towards you at first, then rotate it to either side.
    • If you're cleaning a laptop or membrane keyboard, try holding it as you blow it out. Keep it tilted at about a 75-degree angle so it isn't completely vertical.
  4. The suction power from a dust vacuum lifts away most stubborn debris stuck between the keys. If you don't have a dust vacuum with a hose, try using a regular vacuum with a brush attachment. Go over the entire keyboard, focusing particularly in the areas around the keys. Most of the tough debris gets wedged in there.
    • Make sure none of your keys are loose, especially on a laptop. If a key comes off, retrieve it from the vacuum, wash it off, and slide it back into place. Fit it over the key stem or clip to bind it to the keyboard again.
  5. Dampen the cotton swab very lightly to avoid getting too much moisture underneath the keys. Wipe around each individual key to remove leftover dust, oils, and other grime. Repeat this a few times as needed to clean the sides of each key and the space around it. Swap out swabs as they get dirty. Using alcohol can remove the letters, numbers, and symbols printed on each key, so try to keep it away from the printed part.
    • Isopropyl alcohol dries very quickly, so it is a better option than water. You can get it at most drug stores and general stores.
    • Another cleaning option is to wrap a microfiber cloth around a knife. Moisten it with isopropyl alcohol, then push it down into the keyboard's grooves. This works best for mechanical keyboards with raised keys.
    • Be cautious when working on a laptop. Isopropyl alcohol is still a great cleaning choice, but the laptop's delicate hardware is right underneath the keyboard. Don't let moisture drip underneath the keys.
  6. Choose a lint-free cloth or paper towel to avoid introducing new debris—a microfiber screen-cleaning cloth or eyeglass cloth is a great option. Make sure the cloth isn't dripping at all after you dampen it. Wipe the top portion of each key to clear away the remaining dust and other debris. [4] Try not to scrub too hard, as alcohol can remove the print from each key.
    • Watch out for frequently used keys like the space bar and enter key. These spots tend to have more grime. You may need to scrub them multiple times to clean them.
    • For very dirty areas, use a toothpick to break through the grime. Hold the toothpick almost flat against the key and rub the grime to loosen it. Scrub the rest off with isopropyl alcohol.
  7. Wipe the keyboard one last time to remove lingering dust and excess moisture. Check it to make sure it looks fresh and new. If it's still dirty, consider taking it apart to give it a deep cleaning. When you're done, plug the keyboard in and give it a test run.
    • Any isopropyl alcohol on the keyboard dries within about a minute. Water takes longer. If you used water or think moisture got into the keyboard, let it dry out for as long as 24 hours before plugging it back in.
  8. Advertisement
Method 2
Method 2 of 3:

Treating Liquid Spills

PDF download Download Article
  1. To prevent damage to your computer or keyboard, treat spills right away—liquid and electrical parts are a bad combination. If the keyboard is a separate physical keyboard, unplug it from the computer. If it's a laptop, remove it from the power source and shut it down immediately. The liquid may seep down into the keyboard, damaging it or the internal components of a laptop—this could seriously destroy your computer..
    • Whatever you do, if your laptop gets wet, do not turn it back on until it is completely dry.
  2. Bring the keyboard to a sink, trash bag, or towel. Holding it upside down forces the liquid to drip back out instead of going deeper into the keyboard. Shaking it helps force out stubborn drops caught between the keys. Continue doing this until the keyboard stops dripping.
    • Tilt the keyboard around to help draw out the liquid. If you have a laptop, direct the liquid to the keyboard to keep it away from the motor and other vital parts. Keep the laptop open and upside down, tilting it towards you to force the liquid towards the keys and out.
  3. Hold the keyboard upside down while you do this. Blot away as much liquid as you can. Don't turn the keyboard over until you have mopped up as much of the spill as possible.
    • Paper towels and tissues leave behind debris, so always use a lint-free cloth if possible. During an emergency, you may not have the opportunity to hunt down the correct cloth, so grab the best thing you have available. A dish towel, paper towels, or even an old T-shirt will do.
  4. Keep the keyboard upside down to drain any moisture still inside of it. Place a towel underneath it to catch anything that comes out. Once the keyboard has had a chance to dry, you can safely turn it over.
    • Most spills dry up within about 24 hours. If you have time to spare, let the keyboard air out for possibly 2 or 3 days.
  5. Plug the keyboard back in if it's wired or turn on your laptop. Try typing with the keyboard. Press down on all of the keys to make sure they work. You may need to pull off individual keys to wash them.
    • Unless you spilled plain water, chances are some of the keys will be sticky. Take apart the keyboard to give it a deep cleaning.
    • Consider getting a professional cleaning for an expensive laptop. Laptops are much more delicate and difficult to clean than regular keyboards. A professional can check the internal components of your laptop for damage.
  6. Advertisement
Method 3
Method 3 of 3:

Cleaning Inside a Keyboard

PDF download Download Article
  1. Protect both your hardware and yourself by taking care of any electrical components. Shut off your computer first, then unplug the keyboard from it. If you're using a wireless keyboard, remove the batteries.
    • Unplug the power cord if you're working on a laptop. Touch a key to make sure the computer is completely off.
    • Consider calling a professional to clean the inside of your laptop's keyboard. A professional technician can take apart your laptop, find damaged parts, and clean electronic components safely.
  2. Don't do this unless you know that the keys are removable, as you can wind up with broken keys. The keys on most standalone (non-laptop) keyboards fit over small clips and are easy to remove. Wedge a flathead screwdriver or butter knife underneath the corner of a key and lightly pry it up. Then, try to pull the key straight up with your fingers. You may need to wiggle it or pry up the opposite side to slide it off its clip.
    • Take a quick picture of the keyboard with your phone before pulling off the keys. It will help you put the keys back in the correct order later.
    • For an easy way to remove keys, get a wire keycap puller. Find one online or at an electronics store.
    • If you're unsure about removing keys, consult your owner's manual or call the manufacturer. Find out their recommendations for key removal and cleaning.
  3. Flip the keyboard over and look for screws. Some keyboards consist of faceplates bound together. If the keyboard has screws, remove the bottom faceplate to wash it separately. Check for hidden screws underneath the keyboard's labels. [5]
    • If you can't remove the keys, you usually can remove the faceplate. Take the keys off afterward, if possible, to give the faceplate a more thorough cleaning.
    • If you're using a laptop, it may be helpful to search the internet for your model and "keyboard cleaning" or "keyboard removal." This may bring up some helpful videos that can walk you through safely unscrewing your laptop to access the keyboard from inside.
  4. Set out a towel next to the sink. Run warm water from the faucet as you gather the keys into a colander. Then, hold the colander underneath running water, swirling the keys around by hand to rinse them. With a colander, most water and debris rinses off right away. When you're done, set the keys on a towel to finish drying.
    • If rinsing isn't enough to clean the keys, try using a liquid dish soap. Fill a bowl with warm water, then mix in 1 US tbsp (15 mL) of dish soap to create soapy water. Denture tablets are also very effective and can be used in place of soap.
  5. Move the faceplate into a colander or bowl. Try rinsing it out with warm water. Clear out stubborn debris with soapy water and a microfiber cloth. When you're done, set the faceplate aside to dry. [6]
    • If your keyboard is very grimy, soak the faceplate and keys in soapy water for up to 6 hours. Scrub and rinse off everything when you're done.
  6. Dampen a clean, lint-free cloth with isopropyl alcohol. Scrub the remaining faceplate to clear out as much debris as possible. Go around the stems that normally hold the keys in place.
    • Make sure the cloth isn't dripping or else some of the moisture may reach the electronic components. Use an electronics cleaning brush from a general store to help remove tough debris.
  7. Finish cleaning out the keyboard by wiping away the remaining debris. The key stems are the little towers or clips perched on top of the keyboard. Wipe around the stems to remove debris on the faceplate. Then, dampen a cotton swab with a drop of cleaning solution to wipe off the top of each stem. [7] Try not to get any alcohol on the printed part of the keys, as it can remove the printing.
    • Change out the cotton swabs as they get dirty to avoid leaving any debris behind.
    • Isopropyl alcohol dries quickly, so it's safer to use than water. Avoid using a lot of it. Dampen each swab lightly.
  8. Find a place on your countertop to put the computer parts. Lay out some towels, then arrange the components over them. Keep the parts exposed to fresh air to dry them out.
    • Make sure the computer parts are in a secure spot so they don't fall on the floor or get lost. Keep them inaccessible to children or pets so they dry out fully.
  9. Reassemble the keyboard by reversing the steps you took when taking it apart. For most keyboards, you will need to connect the faceplates first. Screw them back together, then set the keys on top of the clips or stems. Usually, all you have to do is slide the keys onto the clips to snap them in place.
    • If your keyboard doesn't work, take it apart again. Make sure you assembled it properly and plugged in all of the cables.
  10. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    How can I get gunk out from my keyboard?
    James Sears
    House Cleaning Professional
    James Sears leads the customer happiness team at Neatly, a group of cleaning gurus based in Los Angeles and Orange County, California. James and the team have nine years of experience and offer green cleaning, interior and exterior window washing, and general apartment cleaning services. He provides transformative cleaning experiences by reducing clutter and renewing your home environment. James is a Trustee Scholar at the University of Southern California.
    House Cleaning Professional
    Expert Answer
    Try flipping your keyboard upside down and shaking out any loose dust or debris.
  • Question
    Will popping the keys off and putting them back on make them stick when I try to type?
    Community Answer
    No, you can easily put them back into place. They will not stick or fall off if you put them back on in the tracks correctly.
  • Question
    How do I repair a key that has worn away?
    Community Answer
    You could either order a replacement key, or use a correction mistake pen to write the letter on the key and cover with clear nail polish (presuming it's a black keyboard) to protect it.
See more answers
Ask a Question
      Advertisement

      Tips

      • On most keyboards, the space bar is the hardest key to reinstall. Since it's easier to break, consider leaving it in place as you clean.
      • You usually do not need to take apart your laptop to clean the keyboard. If you're knowledgeable about electronics, take apart your laptop to give it a deep cleaning.
      • Laptop keys are a little more delicate and difficult to replace. The space bar and enter key may have separate supports underneath them that need to be installed along with a new key.
      Show More Tips

      Tips from our Readers

      The advice in this section is based on the lived experiences of wikiHow readers like you. If you have a helpful tip you’d like to share on wikiHow, please submit it in the field below.
      • Check Manufacturer’s Instructions: Some keyboards have specific cleaning instructions or warnings.
      • Avoid excess liquid. Using too much alcohol or other cleaners can damage your keyboard.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Read the warranty when you buy a keyboard or laptop. Some cleaning methods may void the warranty. Stick to the manufacturer's recommendations or get a professional cleaning to avoid this.
      • Washing a keyboard can damage it. This is a big problem with laptops since liquid cleaners can damage the entire machine.
      • Compressed air is toxic, so work in a ventilated area and avoid inhaling the contents of a compressed air canister.
      Advertisement

      About This Article

      Article Summary X

      Before cleaning a computer keyboard, shut down your computer and unplug the keyboard if possible. If your keyboard is attached to your computer, disconnect the computer from its power source. For wireless keyboards, remove the battery before you start cleaning. Next, turn the keyboard upside-down and shake it to remove any loose debris. Tilt it back and forth to dislodge anything that’s stuck behind the keys. Turn your keyboard over again and blow on it with compressed air while holding the can’s nozzle at a 45° angle. This will help loosen any remaining dirt. You can also go over the keyboard with a dust vacuum. Just be sure there are no loose keys, first. If your keyboard is extra grimy, wipe around the keys with a cotton swab or a lint-free cloth lightly dampened in rubbing alcohol. Finish by gently wiping the whole keyboard with a dry, lint-free cloth. To learn how to clean the inside of your keyboard, scroll down!

      Did this summary help you?
      Thanks to all authors for creating a page that has been read 1,510,022 times.

      Reader Success Stories

      • Anonymous

        Jan 2, 2017

        "Was very helpful in the area of cleaning dust from CPU tower. Helpful tips on correct procedures. I can now feel ..." more
      Share your story

      Is this article up to date?

      Advertisement