Viral eye infections
Viral eye infections are infections of the eye or eyelids caused by viruses, ranging from common, mild pink eye to rarer infections that can threaten sight.

Overview
Viral eye infections happen when a virus infects part of your eye. Doctors sometimes call them viral ocular infections (ocular means "of the eye"). They can affect the conjunctiva (the thin, clear layer that covers the white of the eye and lines the eyelids), the cornea (the clear window at the front of the eye), the eyelids, the inside of the eye, or the retina (the light-sensing layer at the back of the eye).
Most viral eye infections are mild. The most common one by far is viral pink eye, which usually clears up on its own within one to three weeks. Some viral infections are more serious, though. Herpes viruses, for example, can infect the cornea or the inside of the eye and may cause scarring and vision loss if they are not treated quickly.
This page gives an overview of the main types, how they are found, and how they are treated. Because some types need urgent care, it is important to know the warning signs.
Main types
Viral conjunctivitis (viral pink eye)
This is the most common viral eye infection. It is usually caused by adenoviruses, the same family of viruses that cause many colds. It spreads very easily, often at home, at school, in workplaces and sometimes in clinics. It often starts in one eye and spreads to the other within a few days.
Herpes simplex eye infection (herpetic keratitis)
The herpes simplex virus, the same virus that causes cold sores, can infect the cornea. This is called herpetic keratitis (keratitis means inflammation of the cornea). It usually affects one eye. The virus can stay asleep in the nerves and come back later, so repeat episodes are common.
Shingles of the eye (herpes zoster ophthalmicus)
Shingles is caused by the chickenpox virus (varicella-zoster virus) waking up years after chickenpox. When it affects the nerve that supplies the forehead, eyelid and eye, it is called herpes zoster ophthalmicus. It causes a painful, blistering rash on one side of the forehead and can inflame many parts of the eye.
Cytomegalovirus retinitis
Cytomegalovirus (CMV) is a common virus that rarely causes problems in healthy people. In people with a very weak immune system, such as those with advanced HIV or after an organ or stem cell transplant, it can infect the retina. This is called CMV retinitis and can lead to blindness without treatment.
Other viral causes
Other viruses can also affect the eyes. Examples include the molluscum contagiosum virus (a poxvirus that causes small bumps on the eyelids), measles, mumps, enteroviruses and, rarely, other herpes viruses. Some viruses can cause inflammation inside the eye (uveitis) or retina, which needs specialist care.
Symptoms
Symptoms depend on which part of the eye is infected. Common symptoms include:
- Pink or red eye
- Watery eyes, often with a clear discharge
- A gritty or burning feeling, like sand in the eye
- Swollen eyelids
- Crusting of the lashes, especially after sleep
- Sensitivity to light (photophobia)
- Blurred vision
Viral pink eye often comes with a cold, sore throat or a tender, swollen gland in front of the ear. It is usually uncomfortable but not very painful, and vision stays mostly clear.
Signs that point to a more serious infection include:
- Real eye pain, rather than just irritation
- Vision that is blurred and does not clear when you blink
- Strong light sensitivity
- A painful rash or blisters on the forehead, scalp, eyelid or tip of the nose
- Floaters (spots or threads drifting in your vision), flashes of light, or a shadow or blind spot, which can be signs of infection at the back of the eye
Causes and how they spread
Viruses are tiny germs that can only grow inside living cells. They reach the eye in different ways:
- Direct contact. Viral pink eye spreads when tears or eye discharge get onto hands, towels, pillowcases, tissues, eye drops or makeup, and then into another person's eye. The virus can survive on surfaces for days or even weeks.
- Coughs and sneezes. Some viruses that cause colds can also reach the eyes.
- Reactivation. Herpes simplex and varicella-zoster viruses stay in the body for life after the first infection. They can "wake up" later, often during illness, stress or a weakened immune system, and travel along nerves to the eye.
- Infection through the blood. CMV retinitis happens when the virus spreads to the retina in someone whose immune system cannot keep it under control.
Risk factors
Anyone can get a viral eye infection. Your risk may be higher if you:
- Are in close contact with someone who has viral pink eye, such as in a household, daycare, school or dormitory
- Touch or rub your eyes often, or share towels, pillows or eye makeup
- Have had cold sores or a herpes eye infection before
- Had chickenpox in the past and are older, or have a weakened immune system (raising the risk of shingles)
- Have a weakened immune system from advanced HIV, cancer treatment, an organ or stem cell transplant, or medicines that suppress the immune system
- Wear contact lenses and do not follow good lens hygiene
Diagnosis
A doctor, optometrist or eye specialist (ophthalmologist) will ask about your symptoms and recent illnesses, then look at your eyes. Tests may include:
- Vision check to see how clearly you can read letters on a chart.
- Slit lamp exam. A special microscope with a bright light lets the eye care provider look closely at the front of the eye.
- Fluorescein stain. A harmless orange dye is put in the eye. Under blue light, it shows scratches or sores on the cornea. Herpes simplex often makes a typical branching pattern.
- Swab test. A sample of tears or eye cells may be tested for viruses, sometimes with a quick in-office test or a lab test (PCR) that detects the virus's genetic material.
- Dilated eye exam. Drops widen the pupil so the back of the eye can be checked. This is important if infection inside the eye or retina is suspected.
- Blood tests, such as an HIV test or immune system tests, when a serious infection like CMV retinitis is found.
It can be hard to tell viral, bacterial and allergic pink eye apart by symptoms alone, so getting checked helps you get the right treatment.
Treatment
Viral pink eye
Antibiotic eye drops do not work against viruses, so they usually do not help viral pink eye. Most cases get better on their own. Treatment focuses on comfort:
- Cool, damp cloths on closed eyes
- Lubricating eye drops (artificial tears) to soothe dryness and grittiness
- Gently cleaning discharge from the lashes with a clean cloth
- Avoiding contact lenses until your eyes are fully better
For severe cases, an eye specialist may sometimes use steroid eye drops for a short time. These should only be used under close supervision.
Herpes simplex eye infection
This needs prompt treatment to protect your vision. Options include antiviral eye drops or gel, such as trifluridine or ganciclovir, and antiviral tablets, such as acyclovir, valacyclovir or famciclovir, which stop the virus from multiplying. People who get frequent repeat episodes may be advised to take antiviral tablets long term to prevent flare-ups. Steroid eye drops can make some herpes infections worse, so they should only be used if an eye specialist recommends them.
Shingles of the eye
Antiviral tablets, such as valacyclovir, famciclovir or acyclovir, work best when started within about three days of the rash appearing. An eye specialist checks the eye and may add eye drops to calm inflammation. Pain relief is also an important part of care.
CMV retinitis
This is treated with strong antiviral medicines such as valganciclovir, ganciclovir or foscarnet, given by mouth, through a vein or sometimes by injection into the eye. Restoring the immune system, for example with HIV treatment, is a key part of long-term control.
Self-care and stopping the spread
Viral pink eye is very contagious, often for as long as your eyes are red and watery, and sometimes for up to two weeks. To protect yourself and others:
- Wash your hands often with soap and water, especially after touching your eyes or face
- Try not to touch or rub your eyes
- Use your own towel, washcloth and pillowcase, and wash them often in hot water
- Throw away tissues right after use
- Do not share eye drops, makeup or contact lens supplies, and replace eye makeup used while you were infected
- Clean shared surfaces such as doorknobs, phones and keyboards
- Ask your doctor, school or employer when it is safe to return, especially if you work closely with others
If you have cold sores, avoid touching your eyes and wash your hands after touching a sore. If you are on long-term treatment to prevent herpes flare-ups, keep taking it as prescribed.
Complications
Most viral pink eye heals without lasting damage. Occasionally, adenovirus leaves small cloudy spots on the cornea that can blur vision or cause glare for weeks to months.
More serious viral infections can lead to:
- Scarring of the cornea and lasting blurred vision
- Repeat flare-ups of herpes eye disease
- Inflammation inside the eye (uveitis) and raised pressure in the eye, which can damage the nerve at the back of the eye (glaucoma)
- Long-lasting nerve pain after shingles
- Retinal damage or detachment, and permanent vision loss, with CMV and some other infections
Outlook
The outlook depends on the virus and how quickly treatment starts. Viral pink eye almost always clears up within a few weeks. Herpes and shingles eye infections usually respond well to antiviral treatment, but they can come back, and regular check-ups help protect your sight. Serious infections such as CMV retinitis can often be controlled, especially when the immune system recovers, but some vision may already be lost by the time they are found. Getting help early gives you the best chance of keeping good vision.
Prevention
- Good hand hygiene is the most effective way to avoid catching and spreading viral pink eye.
- Vaccines. The shingles vaccine lowers the chance of shingles, including shingles of the eye, in older adults and some people with weakened immune systems. Chickenpox, measles and mumps vaccines also prevent infections that can affect the eyes.
- Contact lens care. Clean and store lenses as directed, never use water or saliva on them, and replace them on schedule.
- Regular eye checks if you have a weak immune system, so problems like CMV retinitis are found early.
- Ongoing antiviral treatment for people with frequent herpes eye flare-ups, if your eye specialist recommends it.
In Canada
In Canada, the recombinant shingles vaccine is recommended by the National Advisory Committee on Immunization for adults aged 50 and older and for some younger adults with weakened immune systems. Public coverage varies by province and territory.
When to get medical help
See a doctor, optometrist or eye care provider soon if you have:
- A red or watery eye that is not getting better after a few days, or is getting worse
- Eye symptoms and a weakened immune system
- A history of herpes eye infection and new eye symptoms
- Red eye while wearing contact lenses (take the lenses out)
Get urgent medical help the same day, or go to an emergency department, if you have:
- Red, swollen or sticky eyes in a newborn baby (under 4 weeks old)
- Moderate or severe eye pain
- Blurred vision that does not clear with blinking, or sudden vision loss
- Strong sensitivity to light
- A painful rash or blisters on the forehead, eyelid or nose, along with eye symptoms
- New floaters, flashes of light, or a shadow or curtain over part of your vision
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Viral Eye Infections. meshb.nlm.nih.gov
- MedlinePlus: Eye Infections. medlineplus.gov/eyeinfections.html
- CDC: Conjunctivitis (Pink Eye). cdc.gov/conjunctivitis/
- National Eye Institute: Pink Eye. nei.nih.gov/learn-about-eye-health/eye-conditions-and-diseases/pink-eye