Bacterial eye infections
Bacterial eye infections are infections of the eyelids, the surface of the eye or the inside of the eye caused by bacteria, ranging from mild pink eye to sight-threatening emergencies.
Clinician view: includes diagnostic criteria, management and safety detail.

Overview
A bacterial eye infection happens when bacteria (tiny germs) grow in or around your eye and cause inflammation. The medical name for this group is bacterial ocular infections. These infections can affect the eyelids, the conjunctiva (the thin, clear layer over the white of the eye and inside the eyelids), the cornea (the clear dome at the front of the eye), or, much less often, the inside of the eye.
Most bacterial eye infections are mild and clear up quickly, sometimes on their own and sometimes with antibiotic eye drops or ointment. A few types are serious and can damage your sight within hours or days, so it helps to know which warning signs need fast care.
Common bacteria that cause eye infections include Staphylococcus, Streptococcus and Haemophilus. Bacteria that cause sexually transmitted infections, such as Neisseria gonorrhoeae (gonorrhea) and Chlamydia trachomatis (chlamydia), can also infect the eye, including in newborn babies.
Main types
- Bacterial conjunctivitis (bacterial pink eye): infection of the conjunctiva. This is the most common type and is usually mild.
- Stye (hordeolum): a painful red bump on the edge of the eyelid caused by an infected oil gland or eyelash root.
- Infectious keratoconjunctivitis: infection of both the conjunctiva and the cornea. When the cornea is infected (bacterial keratitis), it can cause an ulcer and needs urgent treatment.
- Suppurative uveitis and endophthalmitis: rare, serious infections inside the eye. They can follow eye surgery or an injury, or, less often, happen when bacteria spread to the eye through the blood.
- Ocular tuberculosis: a rare form of tuberculosis that affects the eye. It can happen with or without signs of tuberculosis elsewhere in the body.
Infections of the skin and tissues around the eye (preseptal or orbital cellulitis) are also often caused by bacteria and are covered briefly below.
Symptoms
Symptoms depend on which part of the eye is infected. Many bacterial eye infections share these signs:
- Redness of the white of the eye or the eyelid
- Thick yellow, green or white discharge (pus)
- Eyelids stuck together, especially when you wake up
- A gritty or scratchy feeling, as if something is in your eye
- Swelling of the eyelid
Signs that point to a more serious infection
- Eye pain that is more than mild irritation
- Blurred vision or loss of vision that does not clear when you blink
- Strong sensitivity to bright light
- A white or grey spot on the clear front of the eye
- Swelling and redness of the skin around the eye, fever, or pain when moving the eye
- Very heavy pus that comes back quickly after wiping
A stye usually shows up as a tender, red lump near the lash line that may form a small yellow head. Bacterial pink eye often starts in one eye and may spread to the other within a few days.
Causes and how they spread
Bacteria normally live on your skin, in your nose and on your eyelids without causing harm. An infection starts when they get into the eye or grow out of control. This can happen when:
- You touch or rub your eyes with unwashed hands
- You share towels, pillowcases, eye makeup or eye drops with someone who has an infection
- Contact lenses are worn overnight, not cleaned properly, or rinsed with tap water
- The surface of the eye is scratched or injured
- A baby passes through the birth canal of a parent who has gonorrhea or chlamydia
- Germs enter the eye during or after surgery, or from an injury that goes through the eye wall (both rare)
Bacterial conjunctivitis spreads easily through close contact, especially among children in daycare and school.
Risk factors
- Wearing contact lenses, especially sleeping in them
- Being a young child
- Recent eye injury or eye surgery
- Dry eye, eyelid inflammation (blepharitis) or eyelids that do not close fully
- A weakened immune system, or diabetes
- Using steroid eye drops for a long time
- Having a sexually transmitted infection
Diagnosis
A doctor, nurse practitioner, pharmacist or optometrist can often tell that you have a bacterial eye infection by asking about your symptoms and looking at your eye. Pink eye can also be caused by viruses or allergies, so they will look for clues such as thick pus (more common with bacteria) or itching (more common with allergies).
You may need more tests if your symptoms are severe, you wear contact lenses, a newborn is affected, or treatment is not working:
- Slit lamp exam: a microscope with a bright light lets an eye doctor look closely at the cornea and inside the front of the eye.
- Fluorescein stain: a harmless orange dye drop shows scratches or ulcers on the cornea under a blue light.
- Swab or scraping: a sample of discharge or from the cornea is sent to a lab to find the exact germ and the best antibiotic.
- Tests for gonorrhea or chlamydia if these are suspected.
- Scans (such as a CT scan) if an infection behind the eye is possible.
Treatment
Treatment depends on the type and how serious the infection is.
Bacterial pink eye
Mild bacterial conjunctivitis often gets better by itself within about a week. Antibiotic eye drops or ointment can help it clear a little faster and may let children return to school or daycare sooner. Common choices include chloramphenicol, polymyxin b combined with trimethoprim, erythromycin ointment, tobramycin, gentamicin, and fluoroquinolone drops such as levofloxacin or moxifloxacin. Products that combine polymyxin b with bacitracin (ointment) or gramicidin (drops) are also used. All of these work by killing bacteria or stopping them from growing.
Styes
Most styes drain and heal on their own in one to two weeks. Warm compresses held on the eyelid several times a day help. Do not squeeze a stye. If it does not improve or the redness spreads, your clinician may suggest antibiotic ointment or, rarely, drain it.
Corneal infections
Bacterial keratitis is an emergency. An eye doctor usually starts strong antibiotic drops, given very often at first, sometimes around the clock. You will be checked closely until the cornea heals.
Infections inside or around the eye
Infections inside the eye, infections of the tissue around the eye, eye infections in newborns, and eye infections caused by gonorrhea usually need antibiotics by mouth or through a vein, and sometimes injections into the eye or surgery. Ocular tuberculosis is treated with a combination of tuberculosis medicines taken for many months.
Use your medicine exactly as prescribed and finish the full course, even if your eye looks better. Do not use old eye drops, someone else's drops, or steroid drops unless an eye specialist prescribes them.
Self-care and stopping the spread
- Gently wipe away discharge with a clean, damp cloth or cotton pad, from the inner corner outward. Use a fresh pad for each eye.
- Wash your hands before and after touching your eyes or putting in drops.
- Use your own towel, washcloth and pillowcase, and wash them often in hot water.
- Stop wearing contact lenses until your eye has fully healed and your clinician says it is safe. Throw away lenses and cases used during the infection.
- Throw away eye makeup used while you were infected.
- Cool or warm compresses and lubricating eye drops (artificial tears) can ease discomfort.
- Ask your school, daycare or workplace about their rules for pink eye.
Complications
Most bacterial eye infections heal without lasting harm. Possible complications, mostly with corneal or deeper infections, include:
- Scarring of the cornea, which can blur vision
- A hole (perforation) in the cornea
- Spread of infection to the tissues around the eye or inside the eye
- Permanent loss of vision, in rare cases
- In newborns, eye damage from gonorrhea or chlamydia, and chlamydia pneumonia
Outlook
The outlook for bacterial pink eye and styes is excellent. They usually clear within one to two weeks. Infections of the cornea or inside the eye can still turn out well when treated quickly, which is why early care matters so much for these types.
Prevention
- Wash your hands often and avoid rubbing your eyes.
- Follow contact lens care instructions: never sleep in lenses unless your eye care provider has approved it, never use tap water or saliva on them, and replace cases regularly.
- Wear safety glasses for work, sports or yard work that could injure your eyes.
- Do not share eye drops, makeup or towels.
- Get tested and treated for sexually transmitted infections, including during pregnancy.
- Newborns may be given antibiotic eye ointment at birth, depending on local practice.
In Canada
In Canada, many provinces allow pharmacists to assess and prescribe for uncomplicated pink eye; check what applies in your province. Routine newborn eye ointment is no longer recommended by the Canadian Paediatric Society; instead, pregnant people are screened and treated for gonorrhea and chlamydia, and newborns are watched closely for eye infection.
Diagnosis
Bacterial conjunctivitis is a clinical diagnosis: acute purulent or mucopurulent discharge, lid matting and conjunctival injection, usually without significant pain or visual loss. Swabs for culture and sensitivity are indicated for severe or hyperacute disease, neonates, contact lens wearers, immunocompromised patients and treatment failures. Hyperacute copious discharge suggests N. gonorrhoeae; chronic follicular conjunctivitis suggests C. trachomatis; request NAAT and consider sexual partners and genital testing.
Red flags requiring same-day ophthalmology: pain, photophobia, reduced acuity, corneal opacity or fluorescein-staining infiltrate, hypopyon, contact lens wear with a red eye, recent intraocular surgery or penetrating trauma, proptosis or painful or restricted eye movements (orbital cellulitis, CT orbits), and neonatal conjunctivitis.
Management
Uncomplicated bacterial conjunctivitis is largely self-limiting; topical antibiotics modestly shorten duration (Cochrane review; NICE CKS; AAO Conjunctivitis Preferred Practice Pattern). Delayed prescribing is reasonable. Options include chloramphenicol, polymyxin b/trimethoprim, erythromycin or fusidic acid, aminoglycosides, and fluoroquinolones; reserve fluoroquinolones for contact lens wearers or more severe disease to limit resistance. Advise against contact lens wear until resolved.
Bacterial keratitis: corneal scrape for Gram stain and culture before treatment where possible, then intensive topical fortified antibiotics or a fluoroquinolone (for example moxifloxacin or levofloxacin) with frequent review. Avoid topical steroids unless directed by ophthalmology. Gonococcal conjunctivitis requires systemic ceftriaxone plus saline irrigation and ophthalmic assessment for corneal involvement; chlamydial and neonatal infections require systemic therapy per current STI guidance. Endophthalmitis is managed with intravitreal antibiotics with or without vitrectomy. Hordeolum: warm compresses and lid hygiene; systemic antibiotics only for spreading cellulitis. Ocular tuberculosis needs combination antituberculous therapy with infectious disease input.
Cautions: aminoglycosides may cause epithelial toxicity with prolonged use; topical steroid misuse can worsen bacterial and herpetic disease. Prognosis is excellent for conjunctivitis; keratitis outcomes depend on organism, ulcer size and location, and time to treatment.
When to get medical help
See a doctor, nurse practitioner, pharmacist or optometrist if:
- Your eye is red with thick discharge
- Symptoms have not improved after a few days of treatment, or after about a week without treatment
- You wear contact lenses and have a red, sore eye
- A stye keeps growing or comes back often
Get same-day care from an eye doctor or go to the emergency department if:
- You have eye pain, blurred vision or strong sensitivity to light
- You see a white spot on the clear front of your eye
- The skin around your eye is swollen and red, especially with fever or pain when moving the eye
- You have had recent eye surgery or an eye injury and your eye becomes red or painful
- A baby under 4 weeks old has red, sticky or swollen eyes
Call emergency services if you suddenly lose vision, or have eye swelling with confusion, a severe headache or a stiff neck.
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Bacterial Eye Infections. meshb.nlm.nih.gov
- MedlinePlus: Eye infections. medlineplus.gov/eyeinfections.html
- CDC: Conjunctivitis (pink eye). cdc.gov/conjunctivitis/
- NHS: Conjunctivitis. nhs.uk/conditions/conjunctivitis/
- National Eye Institute: Pink eye. nei.nih.gov/learn-about-eye-health/eye-conditions-and-diseases/pink-eye