Android front camera shows black frames in browser
Test an Android front camera in your browser, learn what black frames mean, and check permissions, camera access, and app conflicts.
You open a website that needs your front camera, but the preview is black. The camera might be blocked by a permission, in use by another app, or having trouble in the browser. A quick comparison can show whether the problem is limited to one website or affects the camera more broadly.
Start with the Camera Test. It shows a live preview along with the resolution and frame rate the browser receives. Then compare the front camera with your phone's built-in Camera app.
Test the front camera
- Open the Camera Test in the same browser where you saw the black frame. Allow camera access when the browser asks.
- Look at the live preview. Check whether it shows your image, stays black, or flashes between an image and a black frame. Note the resolution and frame rate if they appear.
- Open your phone's Camera app and switch to the front camera. Check whether its preview is black too. If the app works, switch back to the browser and compare.
- Close other apps that may use the camera, such as a video call or social media app. Return to the browser and load the test again.
Test on the same phone, in the same lighting, and without changing camera covers or filters between checks. That makes it easier to tell whether the change came from a setting or an app.
What the result means
The Camera app and browser both show a black preview
The issue is probably not limited to that website. Check Android's camera access controls, remove anything covering the lens, and restart the phone. If the built-in Camera app still cannot show an image, the camera or its connection may need service.
The Camera app works, but the browser test is black
The camera can produce an image, so focus on browser permission, Android's permission for that browser, or a temporary browser problem. Check the permission steps below. If the test works in another browser, the original browser or its settings are more likely to be involved.
The Camera Test works, but one website shows black
The camera and browser can work together. The problem may be that website's camera permission, its camera selection, or a conflict with another app or browser tab. Check the site's permission and reload it. For more on problems limited to one app, see Camera works in one app but not another.
The preview appears, then turns black or freezes
A temporary app conflict, browser issue, or camera interruption may be stopping the video stream. Close camera-using apps, restart the browser, and test again. If the same behavior happens in the Camera app, restart the phone as well.
The preview works but looks very dark
A dark image is different from a completely black frame. Add light in front of your face, clean the front lens gently with a soft cloth, and check that a case or screen protector is not covering it.
How to fix it
- Check for anything covering the lens. Remove a case, sliding camera cover, or accessory that overlaps the front camera. Wipe the lens gently with a clean, soft cloth.
- Close other camera apps and tabs. End video calls and close apps that may be using the camera, then close and reopen the browser. Android can limit access when another app is using the camera.
- Allow camera access for the website. In Chrome on Android, tap the site information icon by the address bar, open Permissions, and set Camera to allow. The names and layout can differ in other browsers. Reload the page after changing the permission.
- Allow camera access for the browser in Android. Open Settings › Apps › [your browser] › Permissions › Camera and allow access while using the app. Menu labels vary by phone. If the browser is not listed, open it and revisit a page that requests camera access first.
- Turn on Android camera access. On some Android versions, a privacy control or Quick Settings tile can disable camera access for every app. Look under Settings › Security & privacy › Privacy for a camera access control, or check Quick Settings for a Camera access tile. The exact path varies by phone maker and Android version.
- Reset the site's camera permission. If you previously blocked access, change the permission for that site to allow, then reload it. If the prompt still does not appear, check the browser's site settings for that website and clear its camera block.
- Restart and update the phone and browser. Restarting can release a camera session that did not close properly. Install available browser and Android updates, then repeat the test.
When it may be a hardware problem
If the front camera stays black in the built-in Camera app and in more than one browser after permissions are allowed and the phone has restarted, the problem may be with the camera module or its connection. Check whether the phone was dropped, exposed to moisture, or recently repaired. If so, avoid opening the phone yourself. Contact the manufacturer or a repair shop, especially while it is under warranty.
If the rear camera works but the front one remains black in every app, that is useful information to give the repair provider. A browser test can show what the browser receives, but it cannot diagnose a damaged camera part.
Why the browser and Camera app can differ
The Camera app and a website do not use identical camera controls. A website asks the browser for camera access, and Android also checks whether the browser itself has permission. Some browser versions may offer fewer ways to choose or control a camera than the built-in Camera app. That is why a working Camera app does not automatically prove that a website has permission, and a black browser preview does not by itself prove the camera is broken.
The Camera Test needs camera permission to show its live preview. You can revoke that permission in your browser or Android settings after testing.
