A clean, white cloth ensures that dyes from the cloth won't run into the carpet.
Avoid rubbing or scrubbing - this will cause the stain to spread.
How to Remove Coffee Stains from Carpet. You're walking around with a cup of coffee and suddenly you trip and spill it all over your floor. Let's face it, coffee stains are unsightly and can make your carpet look old and dirty. Don't worry! You can clean that mess right up. Follow these steps to rid your carpet of that stain.
Blot the area with a clean, white cloth to absorb all the liquid you can. Blot from the outside of the stain in to avoid spreading the stain.
Mix 1 teaspoon clear, mild liquid dish washing detergent with 1 cup lukewarm water.
Sponge the area with the detergent solution. Blot again with a clean, white cloth.
Mix 1/3 cup white vinegar with 2/3 cup lukewarm water.
Sponge the area with the vinegar solution. Blot with a clean, white cloth.
Sponge the area with clean water. Blot with a clean, white cloth.