Basically there are a few ways to change nitrogen into nitrates, nitrogen oxides or ammonia, or make nitric acid from nitrogen, the nitrogen does not react easily, and seems to rather stay or go back to nitrogen, but none of the processes are easy on a small scale, and would not be worth the effort to attempt unless you just want to make a few drops to prove you can do it, I already mentioned the high voltage arc or lightning producing nitric from the air Here are a couple more methods.
Wikipedia quote:
Modern ammonia-producing plants depend on industrial hydrogen production to react with atmospheric nitrogen using a magnetite catalyst or over a promoted Fe catalyst under high pressure (100 atm) and temperature (450°C) to form anhydrous liquid ammonia. This step is known as the ammonia synthesis loop (also referred to as the Haber-Bosch process):[23]
3 H2 + N2 → 2 NH3
http://en.wikipedia.org/wiki/Nitrate_fixation
http://en.wikipedia.org/wiki/Nitrification
To me it would be much easier to make nitric acid from composted soil (manure and urine), or bat guano from caves, chicken manure, blood meal, or other high nitrate source, using this to make KNO3 salts then using them to make nitric acid, than it would from high voltage arc, or with high temperatures and pressures with a catalyst reaction.
But with fertilizer so abundant and cheap why bother unless you just want to prove the process, or had no alternative.
Basically buy nitric if you can , buy fertilizer if you have to make your own.
Ammonium nitrate mixed with potassium hydroxide will make potassium nitrate and ammonium hydroxide, the ammonium hydroxide when water removed by evaporation would convert to ammonia and water, as more water was removed as vapor, the ammonia would also vapor off, leaving crystals of potassium nitrate, (do not heat too strongly to crystallize the salt, the potassium salts are less soluble than sodium salts, (so it may be easier than using sodium salts), as the KNO3 can crystallize out long before all of the liquid is gone allowing you to separate crystals from the evaporated solution.
NH4NO3 + KOH --> KNO3 + NH4OH
NH4OH (H2O) --> NH3 + H2O
Another method:
2NH4NO3 + K2CO3 --> 2KNO3 + H2O +CO2 + 2NH3
here again careful crystallization, the water, carbon dioxide, and ammonia vapor off.
Another:
NH4NO3 + NaOH --> NaNO3 + NH4OH
NH4OH --> NH3 + H2O
and:
NH4NO3 + NaHCO3 --> NaNO3 + NH4CO3
not sure how the ammonium carbonate would react but I guess it would vapor off as ammonia and carbon dioxide gas as well. ( but I am not sure).