I wish I had done this when I was your age.
Roths are your friend. The easiest is to start making all your contributions Roth now. With a lot more planning, decide on when you are retiring and delay taking social security, possibly pension if you have one, one to do the conversions at a low tax bracket.
The planning for future Roth conversions is quite complicated. You have to figure our how you pay the taxes on the conversions (you generally don't want to fund taxes through the proceeds you are taking out of the 401k) and you have to mind Medicare IRMAA and net investment income tax.
If you are generally DIY you can get software like New Retirement to map this out. Or you can hire a financial advisor for help on just this one issue.
In any case, you are at a really good age to start tackling this.