How to Fix an Electronic Keyboard That Has Corroded Batteries

Techwalla may earn compensation through affiliate links in this story.
Rechargable batteries will corrode the battery compartment of a keyboard if left untouched.

Batteries, especially the rechargeable batteries found in most wireless keyboards, have a tendency to leak if they are left inside the battery compartment for too long. This is bad news, since the white crystalline substance that builds up on the terminal contacts is corrosive, and if left unchecked can do serious damage to the contacts and the wiring. Fortunately, the acid can be neutralized through exposure to CO2, such as that found in baking soda.


Step 1

Remove the batteries from the keyboard while wearing chemical-resistant gloves. If they are stuck, gently pry them out with a butter knife or other flat, thin object. Lever the batteries straight up, and avoid applying pressure to either side of the battery compartment. Place the batteries in a plastic bag for proper disposal.

Step 2

Mix water and baking soda into a thick paste. Start with about a teaspoon of baking soda and add water a few drops at a time until it can be mixed into a paste with the consistency of cake frosting.


Step 3

Apply the baking soda paste generously to any corroded areas using cotton swabs. Allow the paste to sit for 15 minutes.

Step 4

Use a slightly moistened toothbrush to gently agitate the paste. Rinse the toothbrush often, and continue until the majority of the paste has been scrubbed away.

Step 5

Examine the terminals for corrosion. Use a toothpick to scrape corrosion or paste from underneath the contact points if necessary.

Step 6

Wipe away the remaining paste with a moist lint-free cloth. Insert new batteries only when the compartment has dried completely.

Things You'll Need

  • Chemical-resistant gloves

  • Baking soda

  • Cotton swabs

  • Toothpicks

  • Toothbrush

  • Lint-free cloth


If the keyboard does not work once the corrosion has been cleaned off and new batteries put in, the contacts or wiring has probably been damaged by the corrosion. Examine the wiring for any loose ends and replace the terminal contacts if possible.

If you can remove the battery compartment from the rest of the keyboard, soaking it in white vinegar is a fast and easy method of getting rid of corrosion. Make sure the compartment is completely dry before reinstalling it.


Always wear chemical-resistant gloves when handling leaky batteries, as the acidic compounds leaking out of the battery can severely irritate or even burn skin.

Batteries, especially rechargeable ones, should never be thrown in the trash. They contain chemicals and heavy metals that pose serious risks to the environment. Many national home improvement stores have recycling bins for old batteries located at the front of their stores, and most communities have a hazmat pickup day every year for the disposal of dangerous waste like batteries.