| You can make K from KOH using Mg and tert-butanol in a way that NurdRage demonstrated in one of his videos, and which is also published in the famous
book Small Scale Synthesis of Laboratory Reagents. It should work for Na, but apparently the reaction takes longer and the yield is not so good. But
if you have metallic K, why bother about Na? |