The invention relates to the technical field of computer cases. The invention further discloses a computer case flatness inspection device based on the electromagnetic induction principle. The devicecomprises a base and a shell, a telescopic rod is movably connected to the exterior of the base, a supporting plate is movably connected to the top of the telescopic rod, a limiting plate is movably connected to the exterior of the base, a rotating shaft is movably connected into the shell, rollers are movably connected to the exterior of the rotating shaft, and a movable plate is movably connected to the exterior of the rotating shaft. Under the interaction of the base, the shell, the telescopic rod, the supporting plate, the limiting plate, the rotating shaft, the rollers, a movable plate, the movable rod, a lead screw, a sliding block, an N pole, an S pole and a connecting rod, the case flatness inspection device can be suitable for detecting cases with different thicknesses, can be suitable for assembly line work of factories, can sense the flatness of the cases under the transmission of structures, and further gives a prompt to an operator through the alarm, so that the flatness of the cases can be detected.