Guide · Video in
Why Webcams Look Grainy and How to Fix It
By Device Bench · Published · Reviewed
A webcam usually looks grainy because it is short of light. In a dim room its automatic settings raise gain to brighten the picture, and gain amplifies the sensor's noise along with the image: that is the speckle crawling through the shadows. The camera may also lengthen exposure or apply heavier noise reduction, which blurs movement and smears fine detail. To fix a grainy webcam, add light in front of you. If the picture is also hazy, clean the lens, and if it lacks detail, check the resolution the camera delivers. Check the call app separately from the local preview.
Open the webcam test to see the resolution and frame rate your camera delivers, and freeze a frame to compare grain and detail before and after a change. Everything runs in your browser and no video leaves your device.
Why does my webcam look grainy?
A camera sensor has a grid of photosites that convert incoming light into electrical signals. Every reading also contains noise, random variation from the light and the electronics, and every camera produces some. How visible it becomes depends on the scene, the sensor and the processing. Webcam sensors are physically small, so each photosite collects a modest amount of light even in a bright room. Some grain in dim light is therefore normal, and on its own it is no sign that the camera is faulty.
In a dim room, the useful signal is weaker. Raising gain brightens the image and amplifies the noise with it, which shows up as speckle in the shadows that changes at random from frame to frame. Noise reduction smooths that speckle and removes fine detail along with it, such as hair, skin texture or the weave of a shirt. So adding light and raising gain are different fixes: light increases the signal the sensor captures, while gain only amplifies what is already there.
Why dim video is also choppy and blurry
At 30 frames per second, each frame can be exposed for at most a thirtieth of a second, about 33 milliseconds. In dim light, automatic exposure can use more of that interval, so movement blurs within a frame. To gather more light, some cameras or capture systems also lower the delivered frame rate in dim light: halving the frame rate doubles the time each frame has to collect light.
The webcam test counts the frames presented each second where the browser supports video-frame callbacks, and otherwise shows the frame rate the camera reports. Compare the same camera with stronger and weaker front light, keeping its position and other settings steady. A frame-rate drop that repeats with the lighting is consistent with low-light compensation, and adding front light is the simplest thing to try first.
How to fix a grainy webcam
Light your face from the front. Put the main light in front of you, such as a lamp behind the screen aimed at your face. More light raises the signal the sensor captures without asking software to invent detail. Depending on the camera and its automatic settings, it may permit lower gain, shorter exposure, or a higher delivered frame rate. Compare the same scene before and after, and check noise, motion blur and detail one by one, since they do not always improve together.
Remove strong backlight. A bright window behind you can make automatic exposure favor the background and leave your face dark, and if the camera then brightens your face with gain, the grain comes with it. Face the window instead, or close the curtain, then compare the preview. Look for clearer facial detail as well as a brighter picture.
Clean the lens. Laptop lenses sit where lids get gripped, and fingerprints or skin oil leave a film that scatters light: the image turns hazy and low in contrast, with blooming around bright areas. Wipe the lens gently with a dry microfiber cloth, following the camera maker's guidance if it gives any, and expect to repeat it, because the film comes back with handling. Cleaning clears haze; it does nothing for sensor noise or compression artifacts.
Check the resolution you are getting. The webcam test asks for 1920×1080 as an ideal size and shows the settings the browser negotiated. A lower mode can come from the camera, capture constraints, a call-app default, a cable or hub, the operating system, or another active application. The browser exposes the result, not the cause, so change one condition at a time and compare the reported mode with the image.
Compare another camera. If the computer has more than one camera, such as a laptop's built-in camera and a plug-in webcam, the webcam test lists the cameras the browser reports and shows how many there are. Choosing one from the list while the preview runs switches to it, so you can compare them in the same light.
Then consider the camera itself. If the image is well lit, clean and running at the selected resolution and still lacks detail, you have probably reached the limit of the sensor and lens. Compare settings before you replace anything. Sharpening raises edge contrast on detail that was captured; it cannot add detail the sensor never recorded.
Why a call can look worse than the preview
This site's preview shows the local track the browser supplied to the page, without a call app or remote receiver. A video call adds encoding, bandwidth controls, transport, decoding and the other participant's display, and the app can change quality during the call. Blockiness, smearing during movement or a visible resolution change can arise along that path.
A call app can also request its own capture size. The two camera tools on this site ask for different sizes, 1920×1080 on the webcam test and 1280×720 on the video call test, so the same camera can deliver a different mode to each. If the local preview stays sharp while a call is blocky, look at the call app: its capture settings, encoding and bandwidth can all differ from this preview. If the local preview itself is grainy, fix the light first. A cleaner input also leaves the encoder less random detail to spend bits on.
Compare frames before and after a change
Use the freeze-frame on the webcam test to inspect shadows and edges. Note the resolution and frame-rate readouts, then change one thing: turn on the front light, wipe the lens, or move the camera. Unfreeze, capture another frame and compare the same parts of the image. Use the live preview as well when judging motion.
Room light, camera mode and automatic settings can drift between checks, so keep the subject, position and other controls steady where you can. If a frame looks better, repeat the comparison to confirm the improvement holds, and note which change produced it.
Sources and standards
W3C and MDN describe capture tracks and browser-reported settings. Logitech explains exposure, focus, white balance, lighting and automatic controls from a camera maker's perspective.
- W3C Media Capture and Streams: camera permissions, tracks, constraints, and settings.
- MDN: MediaStreamTrack.getSettings(): the configured width, height, frame rate, and other values a track can report.
- Logitech: Optimize webcam settings: a camera-maker guide to exposure, focus, white balance, lighting, and the limits of automatic settings.
See a mistake or a changed standard? Report a correction.