The empirical formula refers to the simplest ratio of the number of atoms present in the compound.
The molecular formula gives the information about the total number of atoms, whereas, the empirical formula gives the information about the simplest ratio of the atoms.
Example
Hydrogen peroxide, the molecular formula is and the empirical formula is .
Glucose, the molecular formula is and the empirical formula is .