Valtrex is used for treating shingles (herpes zoster), cold sores (fever blisters or herpes labialis), and treating or suppressing genital herpes in patients with normal immune systems. It is also used to suppress genital herpes in patients with HIV infection. Valtrex is an antiviral. It works by stopping viral replication.