An apparatus for inspecting empty containers in order to detect dirt therein is disclosed. A radiation source generates exciting radiation, and the exciting radiation is directed onto the inner wall of a container and excites dirt to be detected in such a way that the dirt emits luminescent radiation. At least one device detects the luminescent radiation emitted by the dirt, and another device analyzes the detected luminescent radiation. Also disclosed is a corresponding method for inspecting empty containers in order to detect dirt therein.