A heavy-ion time-of-flight spectrometer called HiToF, with magnet focusing accomplished by a quadrupole triplet lens, was constructed at the Beijing Tandem Accelerator National Laboratory, mainly for studies of multi-nucleon transfer reactions at energies near the Coulomb barrier. The spectrometer was equipped with a rotating chamber with a diameter of 40 cm and could be rotated over a large angular range from \(-40^{\circ }\) to \(160^{\circ }\) . The length from the target to the focal plane is 2.7 m, enabling high-precision time-of-flight measurements using two microchannel plate detectors with a 1.9 m apart and a typical time resolution of 120 ps. A multisampling position-sensitive ionization chamber for \({\Delta }E-E\) measurement is placed on the focal plane, which offers a \({\Delta }Z/Z\) resolution of \(\frac{1}{50}\) . The setup provided a maximum solid angle \({\Delta }{\Omega }\) = 20 msr. An experiment on \(^{32}\) S + \(^{90,94}\) Zr at a beam energy of 135 MeV was performed to test the performance. The projectile-like ions were identified with a mass resolution of \({\sigma } = 0.2\) amu. The results showed that the HiToF spectrometer is a powerful setup for studying heavy-ion reaction mechanisms at low energies.