Herpes simplex virus (HSV) is a human pathogen that causes different pathologic manifestations. Rapid and feasible detection and discrimination methods for HSV genotyping is a challenge in clinical laboratories, especially in children suffering from herpetic encephalitis. A quantitative real-time polymerase chain reaction (PCR)-based genotyping assay using SYBR Green I was established. We designed only 1 pair of primer for HSV 1 and 2, targeting thymidine kinase gene conserved region. HSV genotypes were determined by PCR using melting curve analysis with LightCycler. Different HSV genotypes were successfully detected in all clinical samples. The melting temperature for HSV 1 and 2 was 85.5±0.78°C and 89±0.53°C, respectively. These 2 genotypes were completely distinguished by means of the accurate melting assay. Importantly, detection was reliably performed within only 1 hour. The assay had no cross-reactivity across species, an excellent dynamic range from 10 to 10 copies per reaction, a good intra-assay and interassay reproducibility, and a detection limit of a single copy per reaction. Our homebrew designed and validated quantitative real-time PCR followed by a melting curve analysis provided a rapid and convenient screening test for differential identification of HSV genotypes 1 and 2. We recommend the large-scale application of this method for HSV 1 and 2 detection.