You do not need to write a notice to vacate unless your lease requires one.
However, we always recommend putting this notice in writing because it ensures you and your landlord are on the same page about your plans.
Ensure you follow all the guidelines in your lease agreement and document each part of the process.