This research introduces a safety hysteresis comparator that detects transient overvoltage in the track circuit relay interlocking of railway signaling system. This overvoltage is caused by voltage faults transmitted through the electric conductor on the track feed unit to the receiver equipped with the track relay, which acts as the occupied track circuit controller. The circuit was designed using safety system design principles and concepts. Findings illustrated that the transient overvoltage detection of the safety hysteresis comparator in the track circuit activated when the input voltage (Vin) was higher than the high hysteresis signal level (Vhyst_H). When Vin was less than low hysteresis signal level (VVhyst_L), the output voltage (Vo) state was low. Otherwise, it was high. The hysteresis voltage was 4.4 V. The installation of the transient overvoltage detector in the track circuit was to monitor the transient overvoltage fault in the track circuit and to confirm that the hysteresis comparator was in the safety failure mode, which was the safety function for the track circuit to be compliant with the IEC 61800-5-2 standard to ensure the system stability and reliability. It would maximize the performance of the controlling function and commanding of train arrangement of State Railway of Thailand (SRT).