Hydrogen peroxide is safe for most fabrics, including cotton, linen, and polyester. However, it is recommended to test a small, inconspicuous area of the garment before treating the entire stain to ensure the hydrogen peroxide does not cause discoloration or damage to the fabric.