Dimethyl sulfate (DMS) is a chemical compound with formula (CH3O)2SO2. As the diester of methanol and sulfuric acid, its formula is often written as (CH3)2SO4 or Me2SO4, where CH3 or Me is methyl. Me2SO4 is mainly used as a methylating agent in organic synthesis. Me2SO4 is a colourless oily liquid with a slight onion-like odour. Like all strong alkylating agents, Me2SO4 is toxic. Its use as a laboratory reagent has been superseded to some extent by methyl triflate, CF3SO3CH3, the methyl ester of trifluoromethanesulfonic acid.