What is the difference between uniform corrosion and pitting corrosion?

Uniform corrosion occurs when the metal surface corrodes evenly, resulting in a uniform thickness reduction. In contrast, pitting corrosion is a localized form of corrosion that occurs when a small area of the metal surface is attacked, resulting in the formation of a pit or cavity. Pitting corrosion is often more damaging than uniform corrosion because it can lead to rapid penetration of the metal and cause structural failure. Factors such as chloride ions, oxygen, and acidity can contribute to pitting corrosion.