To get coffee stains out of a white shirt you can do so by using some vinegar, dish soap and warm water.
To remove the coffee stains from a white shirt or other clothing mix two cups of warm water with one tablespoon of dish soap, and one tablespoon of white vinegar.
Using a clean, white cloth, blot the stain with the mixture.
(Make sure the rag is clean and fresh, like a paper towel, to avoid color transference.)
Repeat blotting until the stain is gone.
Dried coffee stains on clothing often require a soak in a cleaning solution to completely lift out the spot.
A solution of distilled white vinegar, liquid detergent, and water can effectively loosen coffee stains after a few minutes.
Another way to get rid of coffee stains out of a white shirt or other clothing is to presoak the coffee stain in a solution of 1 quart warm water, ½ teaspoon dishwashing detergent (not laundry detergent) and 1 tablespoon of white vinegar for 15 minutes. rinse the stained area with warm water.
Then use a sponge and rubbing alcohol to blot up any remaining stain. rinse the fabric again with warm water.