A compact nanosecond pulsed X-ray source is described. The X-ray source consists of two important subassemblies: a high-voltage pulse generator and an X-ray diode. The high-voltage pulse generator is designed based on the principle of triple resonance circuit producing a high-voltage pulse across the X-ray diode with amplitude of up to 500 kV. The X-ray diode is a sealed transmission target X-ray tube. Its cathode is comb structure formed from thin tungsten sheets with thickness 50 µm, while its target is made of 100 µm titanium film. The X-ray dose at a distance of 20 cm from the diode is 20 mR per pulse, while the diode voltage is 512 kV. In the case, the full-width at half-maximum of the X-ray pulse is ~5 ns.