Device for welding hard material elements onto teeth of a saw blade, in particular a band or circular saw blade, comprising a saw blade feed device for moving the saw blade in a feed direction, such that a respective intended tooth of the saw blade can be brought into a target position in a working region of the device, comprising a first centering device for centering the saw blade transversely to the feed direction and for fixing the saw blade while the hard material element is welded on, comprising a supply device for supplying a respective hard material element, comprising a second centering device for centering a respective hard material element transversely to the feed direction before the welding, comprising a resistance welding device having a welding electrode that can be deployed into the working region and can be withdrawn from the working region, the supply device being designed to supply and transfer a respective hard material element to the welding electrode, and it being possible for the welding electrode with the hard material element transferred thereto to be deployed into the working region in such a way that the hard material element can be brought toward the tooth in the target position to abut the tooth, characterized in that the hard material element abutting the tooth can be centered relative to the centered and fixed saw blade by means of the second centering device, and in that the first and the second centering device (30, 32) are provided in a common assembly, such that the centering of the saw blade by the first centering device predetermines a centering position for the subsequent centering of the hard material element by the second centering device. comprising a saw blade feed device for moving the saw blade in a feed direction, such that a respective intended tooth of the saw blade can be brought into a target position in a working region of the device, comprising a first centering device for centering the saw blade transversely to the feed direction and for fixing the saw blade while the hard material element is welded on, comprising a supply device for supplying a respective hard material element, comprising a second centering device for centering a respective hard material element transversely to the feed direction before the welding, comprising a resistance welding device having a welding electrode that can be deployed into the working region and can be withdrawn from the working region, the supply device being designed to supply and transfer a respective hard material element to the welding electrode, and it being possible for the welding electrode with the hard material element transferred thereto to be deployed into the working region in such a way that the hard material element can be brought toward the tooth in the target position to abut the tooth, characterized in that the hard material element abutting the tooth can be centered relative to the centered and fixed saw blade by means of the second centering device, and in that the first and the second centering device (30, 32) are provided in a common assembly, such that the centering of the saw blade by the first centering device predetermines a centering position for the subsequent centering of the hard material element by the second centering device.