An assembler is a program that takes basic computer instructions and converts them into a pattern of bits that the computer's processor can use to perform its basic operations. Also, we can say that the assembler is used for the translation of a program from assembly language to machine language.