We describe a matrix-assisted laser desorption/ionization-time of flight (MALDI-TOF) mass spectrometry (MS)-based assay for human papillomavirus (HPV) genotyping--the restriction fragment mass polymorphism (RFMP) assay, which is based on mass measurement of genotype-specific oligonucleotide fragments generated by TypeIIS restriction endonuclease cleavage after recognition sites have been introduced by PCR amplification. The use of a TypeIIS restriction enzyme makes the RFMP assay independent of sequence and applicable to a wide variety of HPV genotypes, because these enzymes have cleavage sites at a fixed distance from their recognition sites. After PCR amplification, samples are subjected to restriction enzyme digestion with FokI and BtsCI and desalting using Oasis purification plates, followed by analysis by MALDI-TOF MS. Overall, the protocol is simple, takes approximately 4-4.5 h and can accurately detect and identify at least 74 different HPV genotypes.