To find the total number of students in the school, we can use the information that 20% of the students have blue eyes and that this number is 160.
Let \( x \) represent the total number of students in the school. According to the problem, 20% of the students have blue eyes:
\[ 0.20 \times x = 160 \]
To solve for \( x \), divide both sides of the equation by 0.20:
\[ x = \frac{160}{0.20} \]
Calculating the right side:
\[ x = 160 \div 0.20 = 160 \times 5 = 800 \]
Therefore, the total number of students in the school is 800.