The invention relates to a device and method for detecting the topological charge number of vortex beams based on an improved Mach-Zehnder interferometer, and belongs to the technical field of digital holography. The device comprises a semiconductor laser unit, a microscope objective spatial fiber, a collimating lens, a beam splitter prism I, a plane mirror, a beam splitter prism II, a spatial light modulator, a beam splitter prism III, a beam splitter prism IV and a photoelectric coupled device. According to the method, one arm of the device is used for generating the vortex beams to be used as object light, the other arm of the device is used for generating the vortex beams to be used as reference light, the holographic interferometry principle is used for recording the wave front phase information of the vortex beams in an interference fringe mode, phase distribution is digitally reconstructed in the later period, and the topological charge number of the vortex beams can be obtained according to the reconstructed phase distribution in accordance with the definition of the vortex beams. The device and method solve the problem that at present, specific instruments or equipment is needed in the method for detecting the topological charge number of the vortex beams, or an existing detecting method is complex to operate, poor in stability and low in reliability.