In this paper, the microstructure and pitting corrosion resistance of S32101 duplex stainless steel keyhole tungsten inert gas welded joints with different heat inputs were studied. The pitting rupture potential of the heat-affected zone and the weld metal zone under different heat inputs were tested.