Language: English

tools / webcam-test

webcam-test/

Check whether your webcam shows a picture and measure its real resolution and frame rate; switch cameras, mirror and take a snapshot. The picture is shown only in your browser — never uploaded or recorded.

Camera not opened yet

After you press Start test, the browser will ask to allow the camera. Video only — the microphone is not used.

Picture

The camera picture will appear here

Readings

Name—
Actual resolution—
Requested resolution—
Aspect ratio—
Frame rate reported by browser—
Measured frame rate—

What is a webcam test

A webcam test opens the camera with getUserMedia and shows the picture in the page. This page reads the actual resolution, works out the real frame rate by counting the frames shown in the last 2 seconds with requestVideoFrameCallback, and can switch cameras, mirror the view and take snapshots.

How it works

The browser requests video only with getUserMedia and hands the camera stream straight to the page’s video element; nothing goes over the network. The actual resolution is the width and height of the frames the video receives; the “Frame rate reported by browser” is the rate set when the camera was opened; the “Measured frame rate” counts frames actually presented on screen in the last 2 seconds with requestVideoFrameCallback (presentedFrames) and divides by the elapsed time. Browsers without that API show only the reported value — no estimate is made up.

Example: if presentedFrames goes from 120 to 180 in 2 seconds, the measured rate is 30.0 fps. 1280 × 720 reduces to 16:9; when the aspect ratio is within 1% of 16:9, 4:3, 1:1 or 3:2 it is shown as that common ratio.

For 720p, 1080p and Max the page asks for 1280 × 720, 1920 × 1080 and 4096 × 2160 as ideal values; if the camera can’t deliver, it gives the closest it can, so trust the actual resolution in the readings. Every half second the page shrinks the picture to 32 × 18 and takes the average brightness (0–255); if it stays below 10 for 2 seconds in a row, it warns that the picture is black.

FAQ

No picture after pressing Start, or camera permission denied — what now?

Click the permission icon on the left of the address bar, set the camera to Allow, then press Start test. If it still fails, check your system privacy settings allow this browser to use the camera. If it says the camera is busy, close any meeting app or other tab using it.

The webcam picture is black but there’s no error

The browser has the camera, but the picture is completely black. Check the lens cover or a laptop’s physical privacy shutter, then any camera key on the keyboard and whether the camera is turned off in system settings. The page checks average brightness every half second and shows a warning below the picture if it stays under 10 (out of 255) for 2 seconds. A very dark room can also look almost black — turn on a light and look again.

The actual resolution is lower than the camera’s rated resolution

The default setting is chosen by the browser and may be lower than the highest resolution the camera supports. Press 1080p or Max to request a higher resolution again; the actual resolution in the readings is what you really got. If it still won’t go higher, the camera may not support it, it may be on a slower USB port, or the browser may limit the resolution; a meeting app may also show a different value.

Why is the measured frame rate below 30 or 60?

The “Frame rate reported by browser” is the target set when the camera opened; the “Measured frame rate” is the number of frames actually presented on screen in the last 2 seconds. If the measured rate is lower, some frames never arrived: a busy computer, too high a resolution or limited USB bandwidth can all cause this. Try a lower resolution, close other programs using the camera or heavy apps, and see whether the measured rate goes back up. Some browsers lack the per-frame callback; then only the reported value is shown, marked as not measured.

How do I switch between front and back cameras or an external webcam?

After you press Start test and allow access, a Camera drop-down appears when there are two or more cameras; picking one closes the current camera and opens the new one. Phones also get Front and Back buttons. The browser only tells the page camera names after you allow access, so the list is empty before that.

What does Mirror do, and will my snapshot be flipped?

Mirror flips the picture left to right, like looking in a mirror; front cameras are usually shown this way, and it is on by default. Snapshots are saved as you see them: with Mirror on, the snapshot is flipped — untick Mirror first if you want it unflipped. Snapshots are PNG files at the actual resolution, with the resolution and time in the file name.

Is the video uploaded? How do I know the camera is off?

No. Nothing is uploaded, recorded or stored in the browser. The picture is shown only on this page, and a snapshot is created only when you press the button and is downloaded to your own device. When you press Stop, switch to another tab or leave the page, the page stops every camera track, so the camera light and the camera icon on the tab should turn off; if they stay on, another tab or app is using the camera.