This study introduces a novel method of electric field sintering for preparing NdFeB magnets. NdFeB alloy compacts were all sintered by electric fields for 8 min at 1000~C with different preset heating rates. The characteristics of electric field sintering and the effects of heating rate on the sintering densification of NdFeB alloys were also studied. It is found that electric field sintering is a new non-pressure rapid sintering method for preparing NdFeB magnets with fine grains at a relatively lower sintering temperature and in a shorter sintering time. Using this method, the sintering temperature and process of the compacts can be controlled accurately. When the preset heating rate in- creasing from 5 to 2000~C/s the densification of NdFeB sintered compacts gradHally improves. As the preset heating rate is 2000C/s, Nd-rich phases are small, dispersed and uniformly distributed in the sintered compact, and the magnet has a better microstructure than that made by conventional vacuum sintering. Also, the maximum energy product of the sintered magnet reaches 95% of conventionally vacuum sintered magnets.