Also, many employers now offer after-tax 401ks, and/or Roth 401ks. These are not the same thing. While both are after-tax contributions, the gains in the after-tax 401k are taxed at ordinary income rates (as opposed to a traditional 401k, which also taxes the principle contributions at ordinary rates when withdrawn in retirement). However, Roth 401ks are completely tax-free just like Roth IRAs.
The after-tax 401k shouldn't exist, IMO, because I can only imagine rather specific and abnormal circumstances where it would make sense. Just putting that into a regular brokerage account is pretty much the same treatment, with the exception you have to wait until 59.5 to withdraw the 401k. The only disadvantage in the brokerage is you are taxed on ordinary income (dividends, bond interest, etc), plus capital gains when you transact.
Now the actual limit for 401k contributions is $70k - $23,500 pre-tax...plus another $7500 catch-up if you're 50+. This also includes your employer match, which ALWAYS goes to pre-tax (and does not count against your individual pre-tax limit). Won't really affect anyone here, really, but that limit is PER EMPLOYER. However, you remain capped at $23,500 pre-tax regardless how many employers you have.
So let's just say you contribute $20k, and your employer matches $10k. If your employer plan allows, you can then contribute another $40k after-tax either to 401k or Roth. However, many employers (like mine) - or maybe it's federal law - only allow you to designate that $23,500 as pre-tax 401k or after-tax Roth.
Enter the "in-service" [meaning you continue to be employed there, not a seperation event) rollover. Some employers allow you continue making after-tax 401k contributions. You then convert like mentioned previously - rollover into a Roth 401k. It doesn't cost anything because the original contribution was after-tax. But now my gains are also tax free.
BIG BIG CAVEAT: This is relatively "simple" if you don't have existing pre-tax IRA accounts. If you do, it gets very messy. Ideally you'd want to convert that first so you have no pre-tax IRAs, but that can be expensive (and stupid if you're in a high tax bracket).