The invention relates to a digital synthetic aperture imaging method based on pupil modulation. The digital synthetic aperture imaging method performs functions of restoring the optical field of the pupil, correcting single-aperture aberration, realizing multi-aperture common-phase, and obtaining high-resolution image through synthesis. According to the digital synthetic aperture imaging method, the pupil plane of each imaging subsystem is modulated by means of an external diaphragm; according to different modulation information (diameter, position or size of the light through hole of the diaphragm) and a corresponding image, reconstructing the optical field of each pupil by means of a Fourier ptychography algorithm; representing phase distribution of the optical field by means of a Zernike polynomial, optimizing a pixel evaluation function by means of a digital correction method, correcting an aberration of the single aperture and aberrations between multiple apertures, and combining pupil incoming optical fields for obtaining a high-resolution image based on a digital imaging principle. According to the digital synthetic aperture imaging method, optical field reconstruction, aberration correction and image synthesizing are combined. The digital synthetic aperture imaging method has advantages of high resolution of obtained image, compact optical path, simple device structure, low cost, etc.