An X-raydevice is proposed for examiningsyringe caps (3) that have acannula (27), with an X-raysource (5), an X-ray detector(9), and with a holder (39) whichholds the syringe cap (3) in thebeam path (13) at an examinationsite (15). The X-ray device ischaracterized by the syringe cap(3) being arranged in the beampath (13) in such a way that itslongitudinal axis (17) coincideswith the main axis (19) of thebeam path (13).