What is the difference between withstand voltage and rated voltage

They describe different objects.

The rated voltage usually refers to the equipment or components in accordance with certain technical conditions of the working voltage, the actual voltage should be as close as possible to the rated voltage, the equipment can work properly.

The withstand voltage is the requirement of the insulator to ensure that the maximum voltage is not broken down, the actual voltage must be lower than it during normal operation.