Codeine is an alkaloid found in opium in concentrations ranging from 0.3 to 3.0 percent. Codeine can be extracted from opium. Today, most codeine is synthesized from morphine through the process of O-methylation.