QR codes were invented in 1994 by Masahiro Hara, an employee of Japanese company Denso Wave. Hara originally created them as a way to track vehicles and parts through high-speed component scanning during the manufacturing process.