COVID-19 affected our mental health as well as our physical health. In this study, the anxiety and hopelessness levels of healthcare workers and non-healthcare workers and the factors affecting them were evaluated in Turkey. Beck Hopelessness Scale and State-Trait Anxiety Inventory (STAI) was applied online to participants. Totally 2156 individuals were included in the study and 52.0% (n:1121) of them are healthcare workers. The hopelessness and state anxiety levels of healthcare workers were higher than non-healthcare workers. Nurses' hopelessness levels are higher than doctors, and state anxiety levels are higher than both doctors and other healthcare workers. Anxiety and hopelessness levels were higher in women, those living with a high-risk individual at home during the pandemic, those who had difficulty in caring for their children, and those whose income decreased. Anxiety levels are an important predictor of hopelessness. The increase in anxiety levels explained 28.9% of the increase in hopelessness levels. Increased working hours is one of the important factors affecting anxiety. As a conclusion, healthcare workers were more affected psychologically in the COVID-19 pandemic compared to the society. Nurses were affected more than other healthcare workers. It is important to identify the factors affecting anxiety, hopelessness, and individuals who may be more psychologically affected during the pandemic. An important contribution can be made to the protection of public health by ensuring that psychosocial interventions for high-risk groups are planned in advance.