Yellow eye discharge is almost always a sign of a bacterial infection, most commonly bacterial conjunctivitis (pink eye). The sticky, yellow or yellow-green material forms when your immune system sends white blood cells to fight bacteria on the surface of the eye, and the debris accumulates as pus. While bacterial pink eye is the leading cause, a few other conditions can produce yellow discharge too, and the pattern of symptoms around it helps narrow down what’s going on.
Bacterial Conjunctivitis: The Most Common Cause
Bacterial conjunctivitis produces the classic sticky, gooey yellow or green discharge that can make it hard to open your eyes in the morning. The discharge builds up overnight because you’re not blinking it away, so many people first notice it as crusted eyelids when they wake up. During the day, the eye continues to produce yellowish material that collects in the inner corner.
In adults, the infection is typically caused by staph bacteria. In children, the usual culprits are different species that commonly live in the nose and throat. Most cases start in one eye and spread to the other within a day or two, usually from touching the infected eye and then the healthy one. You’re contagious from the moment symptoms appear until about 48 hours after starting antibiotic eye drops, according to the American Academy of Ophthalmology. Mild cases sometimes clear on their own within a week or two, but antibiotics speed recovery and reduce the chance of spreading it.
A more aggressive form, called hyperacute bacterial conjunctivitis, causes massive amounts of discharge along with severe swelling, pain, and blurred vision. This type requires prompt treatment because it can damage the cornea quickly.
Other Conditions That Cause Yellow Discharge
Blepharitis
Blepharitis is chronic inflammation of the eyelid margins. It doesn’t produce the heavy, dripping discharge of conjunctivitis, but it does cause greasy, crusted scales that cling to the eyelashes and can look yellowish. Many people with blepharitis wake up with their eyelids stuck together, which can feel similar to a bacterial eye infection. The key difference is that blepharitis tends to be an ongoing, recurring problem rather than a sudden infection, and the irritation is concentrated along the lash line rather than across the whole eye. Styes, which are painful red bumps at the base of a lash, are a common complication and can also produce localized yellow or white discharge.
Blocked Tear Ducts in Babies
Newborns and young infants often develop yellow, sticky discharge from one or both eyes due to a blocked tear duct. The duct that normally drains tears from the eye into the nose hasn’t fully opened yet, so tears pool and become a breeding ground for bacteria. The discharge can look alarming, but this is one of the most common minor issues in newborns. The majority of blocked tear ducts resolve on their own by the time a child turns 1, usually without any procedure.
Corneal Infection (Keratitis)
Keratitis is an infection of the cornea, the clear front surface of the eye. It can produce discharge along with redness, pain, light sensitivity, and blurred vision. Contact lens wearers face the highest risk, especially those who sleep in their lenses, wear them longer than recommended, skip proper disinfection, or swim while wearing them. Bacteria, fungi, and even parasites from contaminated water can infect the cornea. Keratitis is more serious than conjunctivitis because it can scar the cornea and permanently affect vision if untreated.
How to Tell It Apart From Viral or Allergic Pink Eye
Not all pink eye produces yellow discharge, and the type of discharge is one of the best clues to what’s causing it. Normal eye discharge is white or pale cream. Viral conjunctivitis produces watery, clear, or slightly white discharge, not the thick yellow kind. Allergic conjunctivitis also produces watery discharge and tends to affect both eyes at once with intense itching.
Bacterial conjunctivitis stands out because the discharge is thicker, more opaque, and distinctly yellow or greenish. It also tends to keep coming back throughout the day rather than being mostly watery with occasional crustiness. Pain and a gritty sensation are common with bacterial infections, while itching is the hallmark of allergies. Viral pink eye falls somewhere in between: uncomfortable and watery, often accompanied by a cold or upper respiratory infection.
Cleaning and Comfort at Home
Warm compresses are the simplest way to manage the sticky buildup. Soak a clean washcloth in warm water, wring it out, and hold it gently against your closed eyelids for a few minutes. This softens the crusted discharge so you can wipe it away without pulling at your lashes. Repeat this three or four times a day. If only one eye is affected, use a separate cloth for each eye to avoid spreading the infection.
A cold compress can help with swelling and discomfort if the eye feels puffy or irritated. Avoid rubbing your eyes, wash your hands frequently, and don’t share towels or pillowcases. If you wear contact lenses, switch to glasses until the discharge has completely resolved.
When Yellow Discharge Signals Something Serious
Most cases of yellow eye discharge are straightforward bacterial conjunctivitis that clears up with a short course of antibiotic drops, typically used several times a day for about a week. But certain symptoms alongside yellow discharge point to something more urgent.
Eye pain combined with vision loss requires immediate evaluation by an eye specialist. Significant light sensitivity with eye pain can signal keratitis, inflammation inside the eye, or other conditions that risk permanent vision damage if treatment is delayed. Severe swelling that extends beyond the eyelid to the skin around the eye socket may indicate orbital cellulitis, a deep infection that requires hospital-level treatment. Any history of eye trauma followed by discharge and pain also warrants same-day evaluation.
For infants, heavy yellow or green discharge that doesn’t improve with gentle cleaning, or discharge accompanied by significant redness and swelling, should be assessed promptly. In newborns under two weeks old, eye discharge can occasionally signal an infection picked up during delivery that needs specific treatment.
What to Expect From Treatment
For standard bacterial conjunctivitis, prescription antibiotic eye drops are the main treatment. A typical regimen involves using drops every few hours while awake for the first couple of days, then reducing to four times a day for about five more days. Most people notice improvement within two to three days. Children under 1 need dosing determined by their doctor.
Blepharitis is managed differently since it’s a chronic condition rather than a one-time infection. Regular eyelid hygiene, including warm compresses and gentle lid scrubs, forms the backbone of long-term management. Styes usually drain and heal on their own with warm compresses, though larger or persistent ones occasionally need to be drained.
For blocked tear ducts in babies, gentle massage of the inner corner of the nose (where the tear duct sits) a few times a day can help open the duct. If it hasn’t resolved by age 1, a brief procedure to open the duct may be recommended.

