The alignment degree of sintered Nd–Fe–B magnets and its dependence on applied field and compacting mode were studied by magnetic force microscopy. By analyzing the magnetic force images to illustrate the magnetic-domain structure, an experimental method for quantitatively evaluating the alignment degree of sintered Nd–Fe–B magnets was given. The results show that if the compacting mode is the same, the alignment of magnets will be better as field increases. Under the same field, the alignment degree for rubber isostatic pressing with vibration is better than that for nonmagnetic metal die pressing. However, if the sample is compacted by rubber isostatic pressing without vibration, the alignment degree decreases significantly.