Ultraviolet(UV)‐curing 3D printing in the preparation of explosives has get more attention due to its manufacturing flexibility. To study the effects of binder formulations on compressive properties of PBX for UV‐curing, cast HMX‐based polymer‐bonded explosives (PBX) with 5 groups of binder formulations are prepared by extruded‐based UV curing 3D printer. The test shows that the density of printed explosives exceeds 90% of the theoretical density and quasi‐static compression tests are conducted to analyze the mechanical properties of printed explosives. The results suggest that the elastic modulus and compressive strength of printed explosives with photocurable monomer TMP3EOTA as binder resin have increased by 693.1% and 424%, respectively, compared to those using polyether resin. Moreover, the mechanical properties improve as the content of Isophorone diisocyanate(IPDI) increases from 1 wt. % to 22 wt. %. The addition of aluminum powder decreases the elastic modulus and strength of samples printed by 59.5% and 62%. Meanwhile, the failure modes of printed grains have been also determined. This work provides practical references for future research of PBX on UV‐curing.