The conversion from neutral to zwitterionic glycine is studied using infrared spectroscopy from the point of view of the interactions of this molecule with polar (water) and non-polar (CO 2 , CH 4 ) surroundings. Such environments could be found on astronomical or astrophysical matter. The samples are prepared by vapour-deposition on a cold substrate (25 K), and then heated up to sublimation temperatures of the co-deposited species. At 25 K, the neutral species is favoured over the zwitterionic form in non-polar environments, whereas for pure glycine, or in glycine/water mixtures, the dominant species is the latter. The conversion is easily followed by the weakening of two infrared bands in the mid-IR region, associated to the neutral structure. Theoretical calculations are performed on crystalline glycine and on molecular glycine, both isolated and surrounded by water. Spectra predicted from these calculations are in reasonable agreement with the experimental spectra, and provide a basis to the assignments. Different spectral features are suggested as probes for the presence of glycine in astrophysical media, depending on its form (neutral or zwitterionic), their temperature and composition.