In recent years, several deuterated drugs have entered clinical trials and have been approved for use. Deuterated methylamine and dimethylamine as important intermediates play significant roles in the preparation of deuterated drugs. In this study, we have developed a new method to prepare deuterated methylamine and dimethylamine. This method employs Boc-benzylamine as the starting material and TsOCD3 as the deuterated methylation reagent. Our method gives relatively high yields and involves simple purifications, which provide a favourable supplement for the development and synthesis of deuterated drugs in the future.