An X-ray collimator has a collimation plate, and a shielding box made of a tungsten plastic composite, the shielding box having an opening on the top and the bottom thereof respectively, and a support part for supporting the shielding box. The collimation plate is disposed on the shielding box or the support part. Compared to the use of the shielding box alone, the collimator reduces the volume of the collimator without reducing its shielding performance.