Vinegar and baking soda are safe for most types of carpets, but it's always best to do a spot test in an inconspicuous area first. Some delicate or specialty carpets may require specific care instructions.