The hepatitis C virus (HCV) exhibits global genotypic diversity. HCV genotyping plays an important role in epidemiological studies and clinical management. Herein, we report the results of HCV genotype and subtype detection in a large number of clinical samples, as performed by an independent laboratory in China. In total, four HCV genotypes and 18 subtypes were identified among 32 030 patients from 29 provinces and municipalities in China. Five dominant subtypes were detected from 98.84% of the samples: 1b (n=16 713, 52.18%), 2a (n=9188, 28.69%), 3b (n=2261, 7.06%), 6a (n=2052, 6.41%) and 3a (n=1479, 4.62%). Twelve rare subtypes were detected, of which four (that is, 6b, 6j, 6q and 6r) are reported for the first time in the Chinese population. Genotypes 4, 5 and 7 were not detected. Mixed infections of the dominant subtypes were found in a small portion of samples (n=65, 0.203%), in the following combinations: 1b–2a, 1b–3b, 1b–6a, 3a–3b, 1b–3a and 2a–6a. No mixed infections with rare subtypes were found. Males, compared with females, showed higher HCV subtype diversity, a lower percentage of HCV1b and 2a and a higher percentage of rare subtypes and mixed infections. Our analyses revealed the comprehensive distribution patterns of HCV genotypes in the general population of mainland China. HCV genotypic patterns were differentially distributed on the basis of geography, sex and age.