Abstract The poor generation efficiency causes the low signal-to-noise ratio (SNR) of the electromagnetic acoustic transducers (EMATs). The magnetic fields at the edges of the magnet are fully utilized in the narrow-magnet EMAT to generate Rayleigh waves of higher amplitudes than the conventional EMAT. This paper applies the coded excitation technology to narrow-magnet EMAT to further improve the SNR and the lift-off performance in aluminum plate detection. The main phase encoding methods are Barker code and Golay code. Compared with the conventional tone-burst excitation method, both coded excitation technologies can effectively improve the SNR of the Rayleigh wave. Theoretically, the received Rayleigh waves using the Golay-coded excitation method have no sidelobe, which is different from the case using the Barker code. Hence the Golay-coded excitation achieves higher SNR in the received ultrasonic waves. In addition, the application of the Golay-coded excitation can also effectively improve the lift-off performance of the narrow-magnet EMAT.