Mass spectrometry is a technique that involves ionizing molecules and analyzing their mass-to-charge ratios. There are several ionization methods including electron impact ionization, which uses an electron beam to ionize volatile compounds; chemical ionization, which uses ion-molecule reactions to form analyte ions; and electrospray ionization, which uses a high electric potential to produce charged droplets from a sample solution and form gas-phase ions. Each ionization method has advantages for certain compound types and is suited to different sample properties like volatility and thermal stability.