Context. Methanimine (CH2NH) is a simple molecule composed of methylene and imine. The molecule has been detected toward the Galactic center, star-forming regions, circumstellar envelopes, and other galaxies since 1973. In previous studies, the rest frequency of methanimine has been measured for normal species up to the 650-GHz region, but its 13 CH2NH, CH2 15 NH, and CH2ND isotopologs were limited to the 100-GHz region. Aims. If a rotational temperature of 100 K is assumed for methanimine, the highest intensity falls at approximately 1.5 THz. In addition to normal methanimine, the 13 CH2NH, CH2 15 NH, and CH2ND isotopologs in their ground-vibrational states were observed in the frequency range of 120–1600 GHz to provide accurate rest frequency information. Based on this study, the calculated rest frequencies below 2 THz should be sufficiently precise and support observations using all ALMA and Herschel/HIFI observational bands. Methods. Methanimine was generated by pyrolysis of diaminoethane (DAE) vapor at 850 ◦ C. 13 CH2NH and CH2 15 NH isotopologs were measured with their natural abundance, and deuterization of DAE was performed by mixing normal DAE with deuterated water, D2O, and then pyrolyzed. This gives the deuterated isotopolog of methanimine, CH2ND. Spectral measurements were performed by using the 23 kHz source-frequency modulated terahertz spectrometer at Toho University. Results. Both a -a ndb-type transitions up to 1.6 THz for the three isotopologs and the normal species were measured. Rotational and centrifugal distortion constants for the three isotopologs were accurately determined. For normal species (CH2NH), both electric quadrupole and nuclear spin-rotation coupling constants for nitrogen nucleus were determined, while for the 13 CH2NH and CH2ND species, only electric quadrupole-coupling constants for nitrogen nucleus were determined. Conclusions. Our spectral line frequencies are suitable for a future astronomical search for these isotopologs of methanimine. The 1σ frequency accuracy up to 2 THz is lower than 100 kHz.