Short answer
White spirit can lift some oil-based paint from carpet, especially if the spill is fresh. Dried oil-based paint is much harder and may not come out completely. Latex, which is water-based, usually responds better to water and mild soap while it is still wet.
What white spirit is
White spirit is a petroleum-based solvent. It is very close to mineral spirits, the name most US stores use. It is flammable, so it needs good ventilation and no open flames or sparks nearby.
Identify the paint first
Check the paint can if you still have it. Latex paint is water-based and cleans up with water while it is wet. Oil-based paint is solvent-based and needs a solvent. If you do not know which you have, test a hidden corner of the carpet before you treat the stain.
Latex paint
- Fresh spills: Blot up as much as you can. Dab with cool water and a little mild dish soap, blot, rinse with clean water, and blot dry.
- Dried spills: Water usually will not soften dried latex. Some guides suggest rubbing alcohol to soften it. Test first, and blot or gently lift the paint rather than scraping it.
Oil-based paint with white spirit
- Blot up any wet paint first, pressing rather than rubbing, so you do not spread it.
- Test a small hidden spot with a tiny amount of white spirit, then let it dry and check for color change or fiber damage.
- Apply a small amount of white spirit to a clean white cloth, not straight onto the carpet. Blot the stain from the outside in.
- Switch to a clean section of cloth as the paint transfers.
- Once the paint is lifted, wash the area with a mix of mild dish soap and warm water to remove solvent residue. Rinse with clean water and blot dry.
- Let the area air out fully before you walk on it.
Safety
- Ventilate the room and open windows.
- Wear gloves and keep children and pets away.
- Keep flames, sparks and hot appliances away.
- Never mix white spirit or any solvent with bleach.
- Lay used rags out flat outdoors to dry before you throw them away, because oily rags can heat up.
Other solvents people ask about
Will acetone ruin my carpet? It can damage or discolor carpet, so test it first. Does WD-40 remove stains from carpet? It may loosen some oily marks, but it leaves an oily film that needs washing off, so it is not a first choice for paint. For nail polish specifically, the guide to how to get nail polish out of carpet fast covers the solvents people try.
When to stop
Stop if the carpet color changes, if the fibers feel stiff or gummy, or if the paint is spreading. Dried oil-based paint may not come out completely, so a professional carpet cleaner is the right call when the stain is large or old.