A compiler is a 🔧 software tool that translates 🖥️ source code written in a high-level programming language into a lower-level language, often machine code or assembly language, that can be understood and executed by a 💻 computer.