Amorphous FeNiPt nanoparticles with tunable length have for the first time been reported to exhibit excellent electrocatalytic performance in the electrochemical determination of thiols.