Context. The study of the chemical reactivity in interstellar ices in astrophysical environments is an important tool for understanding the origin of the organic matter in molecular clouds, in protoplanetary disks, and possibly, as a final destination, in our solar system. The laboratory simulations of the reactivity in ice analogs provide important information for understanding the reactivity in these environments. Here, we used these experimental simulations to trace some formation pathways of two nitriles, acetonitrile and amino acetonitrile, which are two potential precursors of amino acids in astrophysical environments. Aims. The purpose of this work is to present the first experimental approach for the formation of acetonitrile and amino acetonitrile in interstellar-like conditions. Methods. We use Fourier Transform InfraRed (FTIR) spectroscopy and mass spectrometry to study the formation at 20 K of acetonitrile CH 3 CN from VUV irradiation of ethylamine and of amino acetonitrile NH 2 CH 2 CN from VUV irradiation of ammonia: acetonitrile mixture. Isotopic substitutions are used to confirm identifications. Results. We demonstrate that acetonitrile can be formed at 20 K from the VUV irradiation of ethylamine with a yield of 4%. Furthermore, in presence of ammonia, at 20 K and under VUV irradiation, the acetonitrile can lead to the amino acetonitrile formation. These results suggest that acetonitrile and amino acetonitrile can be formed in astrophysical environments that are submitted to VUV irradiations.