You can’t give your required minimum distribution from a 401(k) to charity without triggering a tax, but you can donate your 401(k) RMD tax-free if you roll the money over to an IRA.
Source: Kiplinger
Making Charitable Donations From Your Retirement Accounts