Dimethyl sulfate is a chemical compound with formula (CH₃O)₂SO₂. As the diester of methanol and sulfuric acid, its formula is often written as (CH₃)₂SO₄ or Me₂SO₄, where CH₃ or Me is methyl. Me₂SO₄ is mainly used as a methylating agent in organic synthesis.