We present a tool for measuring the equivalent width (EW) in high-resolution spectra. The Tool for Automatic Measurement of Equivalent width (tame) provides the EWs of spectral lines by profile fitting in an automatic or interactive mode, which can yield a more precise result through the adjustment of the local continuum and fitting parameters. The automatic EW results of tame have been verified by comparing them with the manual EW measurements by the iraf splot task using the high-resolution spectrum of the Sun and measuring EWs in the synthetic spectra with different spectral resolutions and signal-to-noise (S/N) ratios. The EWs measured by tame agree well with the manually measured values, with a dispersion of less than 2 mÅ. By comparing the input EWs for synthetic spectra and EWs measured by tame, we conclude that it is reliable for measuring the EWs in a spectrum with a spectral resolution of R ≳ 20 000 and find that the errors in EWs are less than 1 mÅ for an S/N ratio ≳100.