Although previous studies reported a link between sleep problems and the occurrence of hallucinations, more detailed information is needed to translate this association into clinical practice. This study investigates sleep quality and its relation to prevalence, type, content, and phenomenology of hallucinations, using an online survey in a large population sample (n=10,299). Based on community-based cluster analysis, four groups could be distinguished that differed in terms of sleep quality. Our results confirm previous studies in showing that poor sleep is associated with the occurrence of hallucinations, and extend previous results on a number of aspects. First, we show that particularly fragmented sleep relates to the occurrence of hallucinations. Second, we show that this is the case for hallucinations across the auditory, visual, olfactory, and tactile domains. Third, our results show that fragmented sleep not only relates to the occurrence, but also to the content, frequency, duration, and associated distress of hallucinations. Finally, compared to poor sleep, good sleep quality is associated with hallucinations that are less negative and disruptive. We conclude that sleep hygiene measures could have a large positive impact on individuals whose fragmented sleep underlies the occurrence of bothersome hallucinations.