Primary alcohols 2(a–h) and o‐aminobenzamides 1(a–h) can be selectively oxidized electrochemically to yield dihydroquinazolinone 4(a–h) and quinazolinones 5(a–h) in an efficient and chemoselective manner. This methodology employs sodium chloride (NaCl) 3(a) as a co‐catalyst and electricity as the oxidizing agent, utilizing cost‐effective and commercially available materials such as Graphite anode, Iron (Fe) cathode, and isopropyl alcohol (iPrOH) as a solvent and weak base. The synthesis yields various quinazolinone derivatives with diverse structural characteristics in good quantities, showcasing the method‘s broad applicability. This approach facilitates the production of a range of dihydroquinazolinones and quinazolinones (24 examples), highlighting its versatility and compatibility with different functional groups. Characterization of the synthesized derivatives included CHN analysis, 1HNMR spectroscopy, and determination of melting points.