To analyze the level of knowledge, attitude, and practice about COVID-19 among Chinese residents, noninterventional and anonymous survey was carried out with an online questionnaire. Among the survey respondents (n = 619), 59.9% were female, 61.1% were from 18 to 30 years of age, and 42.3% held an undergraduate’s degree. The mean scores for each scale were as follows: perceived knowledge (36.3 ± 6.1), attitude (29.4 ± 4.7), practice (44.1 ± 4.8), total score (109.7 ± 13.2), barrier (0.2 ± 0.7), and cognition and behavior change score (8.5 ± 1.4). Perceived knowledge, attitude, practice, total score, and cognition and behavior changes were significantly and positively correlated, whereas barrier was negatively correlated with those scales (P < 0.001). Linear regressions revealed that those respondents who were medical professionals, civil servants, employees of state-owned enterprises and public institutions, and had relatively higher level of education were associated with a higher perceived knowledge score, attitude score, practice score, and total score. Higher mean cognition and behavior change scores was associated with company employees (8.8 ± 1.3). More than half of the respondents (51.4%) were optimistic about the government's interventional measures. The respondents in China had good knowledge, positive attitude, and active practice toward COVID-19, yet, it is advisable to strengthen nationwide publicity and focus on the target undereducated population by means of We-Chat, microblog, website, and community workers for better control effect.