Ambient Light Tester
Test your device ambient light sensor: live lux reading, analog meter, min/max/avg stats and CSV/JSON export. Chrome/Android only — not iOS or Firefox.
About Ambient Light Tester
Test your device's ambient light sensor with a beautiful analog meter display. Measure illuminance in lux units, track minimum, maximum, and average values, and monitor light level changes over time with a live history chart. Perfect for testing automatic brightness adjustment, photography lighting, or understanding ambient light conditions.
- Press Start measuring to activate the ambient light sensor.
- Watch the analog meter needle move as light levels change around you.
- Observe the color-coded condition badge showing current brightness level.
- Track the history chart to see light level fluctuations over time.
- View statistics showing maximum, minimum, and average lux values.
- Use the reference guide to understand different lighting conditions.
- Press Reset to clear all statistics and start fresh measurements.
Frequently Asked Questions
The tool uses the W3C AmbientLightSensor API to read illuminance from your device's built-in ambient light sensor in lux (lx). Lux is the SI unit for illuminance — luminous flux per unit area — and represents how bright the environment appears to the human eye, weighted by the photopic luminosity function V(λ) which peaks at green wavelengths around 555 nm. The tool reports current lux, plus minimum/maximum/average over the measurement window. It does not measure color temperature, ultraviolet content, or full-spectrum intensity — the sensor is essentially a photopic-weighted photodiode that gives one scalar value. For research-grade colorimetry you would need a spectrophotometer; this tool gives consumer-grade indication of "how bright is it".
The ambient light sensor drives auto-brightness, dark-mode auto-switching, and adaptive backlight on most modern devices. Testing helps verify that auto-brightness actually responds to your environment — if the sensor is dirty, dead, or obscured by a screen protector or case, auto-brightness will misbehave. Photographers and videographers use lux readings to estimate exposure (1 lux = 1 EV difference from a 320 lux reference) without a dedicated light meter. Office workers verifying ergonomic compliance can check whether their desk meets the OSHA-recommended 300–500 lux. Sleep researchers track evening light exposure (below 50 lux before bed promotes melatonin). And anyone debugging a phone repair can confirm the new sensor module reads correctly after replacement.
Practical reference points: under 1 lux is moonlit night (full moon overhead gives 0.1–0.3 lux); 1–10 lux is dim residential indoor at night; 10–100 lux is residential evening living; 100–300 lux is general indoor working light; 300–500 lux is office work and reading; 500–1000 lux is bright office or supermarket; 1000–10000 lux is overcast outdoor daylight; 10000–25000 lux is full daylight in shade; 25000–100000+ lux is direct sunlight at noon (up to 130000 lux on equatorial summer days). The OSHA, EN 12464-1, and IES standards specify minimum lux for various tasks: 200 for warehousing, 500 for offices, 750 for drafting, 1500 for precision assembly. Surgical theaters use 30000–60000 lux.
Ambient light sensors in phones are surprisingly small (often 1×1 mm) and use a single broadband photodiode or RGB array with limited dynamic range. Several factors cause apparent jitter even at constant illumination: fluorescent and LED light sources flicker at 100/120 Hz which beats against the sensor sampling rate to produce slow oscillations, your hand shadowing the sensor when you move the phone, sensor quantization noise (steps of 1–10 lux at low values), and sensor warm-up drift in the first few seconds after enabling. Most browsers also low-pass filter the sensor output to about 1 Hz update rate to save battery and reduce fingerprinting risk. For research, average over 10–30 seconds. For UX testing, the steady-state value matters more than instantaneous jitter.
A single-photodiode ambient light sensor cannot distinguish sun from office light — both can read 1000 lux. However, modern phones increasingly use multi-channel sensors with separate clear, red, green, blue, and infrared (IR) photodiodes. Daylight has a relatively flat spectrum with strong IR component (sun delivers about 50% of its energy below 700 nm and 50% as IR/heat). Indoor LED light is heavily blue-weighted with almost no IR. Fluorescent has narrow peaks at mercury emission lines. By comparing channel ratios the sensor or its driver can identify light source type and adjust auto white balance for the camera. This tool reports the photopic lux value only, but on supported devices the sensor module internally uses spectral data for color temperature estimation.
Three main reasons. First, calibration: consumer phone sensors are calibrated for relative response, not absolute precision. Errors of ±20–30% are normal and ±50% is not unusual. Dedicated lux meters from Konica Minolta or Sekonic cost hundreds of dollars and use NIST-traceable references for ±3% accuracy. Second, spectral response: a phone's ambient light sensor may have imperfect photopic V(λ) matching, over-counting blue light from LED sources. A proper lux meter uses a precision V(λ) filter or RGB calibration. Third, field of view: phone sensors have a small angular aperture (often ±30°), while a cosine-corrected lux meter integrates over a full hemisphere with proper angular weighting. For everyday "is it bright enough" questions phones are fine; for compliance audits or photography, use a real meter.
These three photometric units form a coherent system. Candela (cd) is the SI base unit for luminous intensity — how bright a source appears in one specific direction. Lumens (lm) is luminous flux, the total amount of visible light emitted by a source in all directions; a 1 cd source radiating uniformly into a steradian gives 1 lumen, and a 100-watt incandescent bulb emits about 1500 lumens. Lux (lx) is illuminance at a surface: 1 lux = 1 lumen per square meter. So if you take a 1000-lumen bulb and illuminate a 1 m² area, you get 1000 lux at that distance. The inverse square law applies: doubling the distance to a point source quarters the lux. The Talbot, footcandle (10.76 lux), and phot (10000 lux) are older units sometimes encountered in legacy specifications.
The foundational standard is CIE (International Commission on Illumination) S 017 defining photometric quantities and the V(λ) function used for human-eye-weighted illuminance. ISO/CIE 11664 covers colorimetric procedures. For workplace lighting, EN 12464-1 (Europe) and IES RP-1 (US) specify minimum illuminance levels by task type. ANSI/IES TM-30 covers color rendering quality. The ambient light sensor itself in phones typically meets the JIS C 7612 specification for illuminance meters Class A (±5%) or Class B (±10%) — most consumer sensors are below Class B. Calibration laboratories trace measurements to a NIST or PTB reference standard. The Web AmbientLightSensor API specification is part of the W3C Generic Sensor specification family but is gated behind permission and feature policy for privacy.
Work through this checklist. (1) Use a supported browser: the AmbientLightSensor API works in modern Chrome and Chromium-based browsers (Edge, Opera) on Android and on desktops/laptops that have a light sensor; it is enabled by default in current releases, gated only by a permission prompt. It is NOT available in any version of Firefox or in Safari/Chrome on iOS or iPadOS — on those the tool shows a persistent unsupported notice rather than a fake reading. (2) Use HTTPS: the Generic Sensor API only runs in a secure context, so the page must be served over https. (3) Allow the permission: when you press Start, accept the browser's sensor permission. If you previously blocked it, click the padlock/site-info icon in the address bar, find the ambient light or sensors permission, set it to Allow, and reload. (4) Check device hardware: many desktop monitors and some laptops have no light sensor, so even a supported browser will report it cannot read. (5) Make sure nothing covers the sensor — a case, screen protector, or your finger over the small sensor window near the front camera will suppress readings. If the tool displays a yellow blocked/unsupported banner, it has told you exactly which of these conditions failed.
No data is uploaded. All sampling, statistics, and the analog dial run entirely in your browser on your device — after the page loads, the tool makes no network requests for measurement. The Export CSV and Export JSON controls build the file locally from the readings already collected in memory and trigger a normal browser download; nothing is sent to a server. The export contains a summary header (minimum, maximum, average lux, sample count, session duration in seconds, and an export timestamp) followed by the full sample log: a relative timestamp in seconds and the lux value for every reading. That makes it a self-contained, documentable artifact you can attach to a QA report, RMA/warranty ticket, or pre- vs post-repair comparison, and it drops straight into Excel, Google Sheets, or an automated test pipeline. Because the AmbientLightSensor is a privacy-sensitive sensor, browsers also throttle and quantize it to limit fingerprinting — another reason the data never leaves your machine unless you choose to export it.

