Valtrex is the brand name for valacyclovir, an antiviral drug used to treat infections caused by certain types of viruses. In adults, it’s prescribed for shingles (herpes zoster), cold sores around the mouth, and to help lessen the effects of genital herpes.