Isopropyl alcohol will work if you don’t have any rubbing alcohol around. Denatured alcohol may work if the ink is extremely stubborn. This may leave some discoloration behind, so spot test it first!
This may strip dye out of your carpet, so spot test it first in an area you don’t care about.
You can use shampoo or laundry detergent instead of dish soap if you prefer. [4] X Research source If the ink won’t come out all the way, scrub the soaped-up area with a clean toothbrush to work it out of the fibers.
Dry the carpet with a clean rag or paper towel when you’re done.
This may not work if there’s no alcohol in the active ingredient for the product you’re using. [8] X Research source
The WD-40 won’t leave a stain behind, but it might leave a residue or texture. Warm water and a rag should soak it up no problem if it bothers you.
Even if your carpet isn’t white, the discoloration from the bleach may be preferable to the ink stain, and depending on the pattern of your carpet, the bleach may not stand out. [11] X Expert Source Haim ShemeshCarpet & Rug Cleaning Specialist Expert Interview. 12 May 2020.
If it leaves any residue or stain behind, use a small drop of dish soap and warm water to blot the remaining ink out.