Atoms are the smallest unit of matter. Elements are made of the same type of atoms. They are represented by a symbol.
Compounds have different kinds of atoms combined in fixed ratios. They are represented by a formula.
Molecules are the smallest unit of elements or compounds which can exist independently. The number of atoms in a molecule is called atomicity.