Quick answer: Rinse grass stains on jeans, treat them with an enzyme cleaner that contains protease, then wash in cold water and check before drying. If the stain remains, repeat treatment or use oxygen-based spot treatment, but do not use the dryer until it is fully gone.
Grass stains on jeans are usually a combination stain, which means they need two things to come out cleanly: an enzyme to break down the protein in the grass, and an oxygen-based cleaner to help lift the color. The key is to treat the stain before it dries in, and to avoid the dryer until you know it is gone.
Start by rinsing the stained area with cool or warm water and brushing away any loose dirt or bits of grass. Do not scrub hard, because that can push the stain deeper into the denim fibers.
Grass contains protein, and protease is the enzyme that breaks protein apart so detergent can wash it away. If you skip the enzyme step, you may remove some surface dirt but leave behind the green stain that clings to the denim.
If the stain remains, treat the area again before putting the jeans in the dryer. For a tougher stain, make a paste or slurry with baking soda or washing soda and water, then work it into the spot and let it sit for at least 15 minutes before washing again.
If the stain still lingers after that, spray the area with 3% hydrogen peroxide and let the jeans air dry. This can help correct the remaining color, but only use it on washable fabric and test a hidden area first if your jeans are dark or dyed unevenly.
Not until you are sure the stain is gone. Heat can set the stain and make it much harder to remove. Always inspect the jeans after washing and air dry first if there is any doubt.
Use cold water for the wash cycle whenever possible, and turn the jeans inside out to reduce abrasion. That helps protect the dye while you work on the stain, especially on dark denim.
If the jeans are expensive, the stain is old, or the denim is delicate or heavily dyed, professional cleaning is the safer move. We can often remove the stain without sacrificing the color of the jeans.
Or ask about any laundry or garment care question