The compound is prepared in the lab by treating benzyl alcohol with phosgene:
: PhCHOH + COCl → PhCHOC(O)Cl + HCl
Phosgene is used in excess to minimise the production of the carbonate (PhCHO)C=O. 
The use of phosgene gas in the lab preparation carries a very large health hazard, and has been implicated in the chronic pulmonary disease of pioneers in the usage of the compound such as Zervas.