The present inventionprovides methods and apparatus for thepreparation of nitrogen fertilizers includingammonium nitrate, urea, urea-ammoniumnitrate, and/or ammonia, at low temperatureand pressure utilizing a source of carbon, asource of nitrogen, and/or a source of hydrogenor hydrogen equivalent. Implementingelectrolyte serving as ionic charge carrier, (1)ammonium nitrate is produced via reductionof nitrogen source at the cathode and oxidationof nitrogen source at the anode; (2) urea orits isomers are produced via simultaneouscathodic reduction of carbon source andnitrogen source; (3) ammonia is produced viareduction of nitrogen source at the cathode andoxidation of hydrogen source or a hydrogenequivalent such as carbon monoxide or amixture of carbon monoxide and hydrogen atthe anode; and (4) urea-ammonium nitrate isproduced via simultaneous cathodic reductionof carbon source and nitrogen source, andanodic oxidation of nitrogen source.