This means your eye is infected, usually by germs like bacteria or viruses. It can make your eye red, swollen, and painful. It might also affect your vision. See a doctor if you think you have an eye infection.
Every report comes from a Lived member, sent anonymously.
Have you tried Moxifloxacin for Eye Infections?
An eye infection happens when bacteria, viruses, fungi or, rarely, parasites invade the eye or the tissues around it. Infections can affect one eye or both, and they cause different problems depending on where they take hold. Most eye infections are on the surface and are more uncomfortable than dangerous. Pink eye (infectious conjunctivitis) inflames the thin membrane covering the white of the eye and the inside of the eyelids, causing redness, watering, grittiness and sticky discharge, and it usually does not affect vision. A stye is a painful red bump at the edge of the eyelid, caused by bacteria in an eyelash follicle or oil gland. A smaller group of infections can threaten sight. Keratitis is an infection of the cornea, the clear dome at the front of the eye, and can leave a scar or open sore (corneal ulcer) that blurs vision. Cellulitis around the eye can stay in the eyelid or spread into the eye socket. Endophthalmitis is an infection inside the eyeball itself, usually after surgery, an eye injection or an injury. Telling the common, mild infections apart from these more serious ones is the main reason the type of infection matters.
Viruses cause most cases of pink eye, often alongside or after a cold, and both viral and bacterial pink eye spread easily through hands, towels, pillowcases and shared eye makeup. Close contact with someone who has it is the most common route. Styes come from bacteria that normally live on the skin, and they are more likely in people with blepharitis (ongoing inflammation of the eyelid edges), rosacea, a previous stye or diabetes. Contact lenses are the most important risk factor for keratitis. Sleeping in lenses, poor cleaning, reusing old solution and exposing lenses to water can let bacteria, fungi or Acanthamoeba (an amoeba found in tap water, soil and fresh water) reach the cornea. A scratch to the eye, especially from plant material, the cold sore virus (herpes simplex) or shingles, severe dry eye and steroid eye drops also raise the risk. Cellulitis around the eye often starts from a nearby sinus infection, an insect bite, a skin wound on the face or dental work, and the milder eyelid form is most common in young children. Endophthalmitis is rare and usually follows eye surgery, an injection into the eye or a penetrating injury, though it can occasionally spread from an infection elsewhere in the body. Redness and discharge are not always an infection. Allergies, smoke, chlorine and some eye products can cause a very similar pink eye that is not contagious.
Most pink eye and styes are diagnosed by looking at the eye and asking about symptoms, recent colds, contact with someone who is infected, and contact lens use. The pattern of symptoms helps, but viral, bacterial and allergic pink eye can look alike, so a sample of discharge is sometimes sent to a lab to identify the cause. When the cornea may be involved, an eye doctor puts a drop of fluorescein, an orange dye that makes scratches and sores glow under blue light, on the eye and examines it with a slit lamp, a microscope that magnifies the front of the eye. If a corneal ulcer is found, a small scraping may be taken to identify the germ and guide treatment. For swelling around the eye, the doctor checks whether the eye bulges or moves normally and may order blood tests or a scan to see whether infection has reached the eye socket. Suspected infection inside the eye is assessed by an ophthalmologist, who may test a tiny sample of fluid from inside the eye and use ultrasound after an injury to look for a foreign object.
Treatment depends on the germ and on where the infection is. Viral pink eye does not respond to antibiotics. It usually clears on its own within 7 to 10 days, and cool compresses and lubricating eye drops can ease the discomfort in the meantime. Bacterial pink eye also often clears without treatment, but antibiotic drops or ointment improve the odds of a quicker recovery: in trials, about two thirds of people using an antibiotic had recovered within 4 to 9 days, compared with just over half of those using a placebo. That modest gain can matter for getting back to work, school or childcare. A stye is treated first with warm compresses, a clean cloth soaked in hot water held to the eyelid for 10 to 15 minutes several times a day, which helps it drain. Squeezing a stye can spread the infection. An antibiotic may be added for an infected stye, and one that lasts or affects vision can be drained in an eye doctor's office under local anesthetic. Keratitis is treated with drops matched to the cause: antibiotic, antifungal or antiviral. Some people also need antifungal or antiviral tablets. Steroid drops can reduce scarring once the infection is under control, but they can make some infections worse, so they should be used only under close supervision by an ophthalmologist and never from an old prescription. If an ulcer leaves a scar that blurs vision, or cannot be controlled with medicine, a corneal transplant may be needed. Eyelid cellulitis is usually treated with antibiotic tablets and starts to improve within a day or two. Infection in the eye socket often needs a hospital stay for antibiotics through a vein, and sometimes surgery to drain an abscess. Endophthalmitis is treated by injecting antibiotic or antifungal medicine directly into the eye, sometimes with surgery to remove the infected gel inside it (vitrectomy).
Most pink eye clears within one to two weeks and leaves no lasting effect on vision. Washing hands often, avoiding touching the eyes, cleaning discharge with a fresh cloth or cotton ball each time, and not sharing towels, pillows, makeup or glasses help protect other people. Contact lens wearers should switch to glasses until the eye has fully recovered, and throw away the lenses, case and solution used during the infection. Eye makeup used while infected should also be replaced. Styes and pink eye can come back, especially when an underlying problem such as blepharitis continues, and regular eyelid hygiene can reduce repeat episodes. The outlook for keratitis, infection in the eye socket (orbital cellulitis) and endophthalmitis depends heavily on how quickly treatment starts. Many people recover good vision, but these infections can leave scarring or permanent vision loss, and treatment often involves frequent drops, close follow-up visits over weeks, and sometimes surgery.
Contact a clinician if pink eye is not improving after a few days or is getting worse, if there is a lot of thick discharge, if you have a weakened immune system (for example from cancer treatment or HIV), or if a stye keeps coming back or does not go away. See an eye doctor the same day for real eye pain rather than grittiness, sensitivity to light, blurred vision that does not clear when you blink or wipe away discharge, or a white spot on the cornea, especially if you recently scratched your eye. These can be signs of keratitis. If you wear contact lenses and an eye becomes red or irritated, take the lenses out and see an eye doctor promptly rather than waiting to see whether it clears like ordinary pink eye, and the same day if there is pain, light sensitivity or blurred vision. Call a doctor right away if a newborn has eye discharge or puffy red eyelids, or if anyone develops redness and swelling that spreads across the eyelid or around the eye, rather than a single bump at the lid edge. Get emergency care if eyelid swelling comes with a bulging eye, pain or difficulty moving the eye, double vision, reduced vision, or fever with a very swollen or worsening eyelid, which can mean infection has spread into the eye socket. Worsening pain, redness or loss of vision in the days or weeks after eye surgery, an eye injection or an eye injury needs emergency assessment by an ophthalmologist, because infection inside the eye can worsen very quickly and cause blindness if not treated promptly.
Last reviewed • Oct 2026
Educational content, not medical advice.
Share what living with Eye Infections is like, what's helped you, or ask the community a question.