Home › Device & Internet Tests › Phone Flashlight

Phone Flashlight

Tap the button to switch on your phone's camera LED straight from the browser. Choose a steady beam, a strobe, the SOS distress signal or any message in Morse code. If your device does not allow it, the page lights up the screen instead.

Last updated:

Uses your phone's camera LED (torch). Tap the button and allow camera access.

Output: camera torch
Mode

A constant beam from the rear LED. Works in Chrome and other Chromium browsers on most Android phones. On iPhone, iPad and computers the page lights up the whole screen instead.

Advertisement
Advertisement

How to use the Phone Flashlight

  1. Open the page on your phone in Chrome on Android for LED control.
  2. Tap Turn on flashlight and allow camera access when asked. The rear LED lights up.
  3. Pick a mode: Steady, Strobe (set the speed), SOS, or Morse with your own message.
  4. Set Auto-off if you want the light to switch off by itself.
  5. Tap the button again to turn the light off and release the camera.

How the camera torch works in a browser

The phone's flashlight is part of the camera module, so a web page can only reach it through the camera API. When you tap Turn on, the page asks for the rear camera with getUserMedia, checks the video track's capabilities for torch, and then calls applyConstraints({advanced: [{torch: true}]}). Strobe, SOS and Morse modes simply switch that constraint on and off on a timer. When you turn the light off, the camera track is stopped, which also turns the LED off and removes the camera-in-use indicator.

Support by device

Device and browserCamera LEDWhat the page does
Android with Chrome, Edge, Samsung Internet, OperaUsually yesTurns on the rear LED
Android with FirefoxUsually noUses the screen as the light
iPhone and iPad (any browser)NoUses the screen as the light
Laptops and desktopsNo (webcams have no torch)Uses the screen as the light

Morse code timing reference

Morse code by light uses the same timing as by sound. Speed in words per minute (WPM) is based on the word PARIS, which is 50 dot units long, so one dot lasts 1,200 ÷ WPM milliseconds.

ElementLengthAt 8 WPM
Dot (light on)1 unit150 ms
Dash (light on)3 units450 ms
Gap between dots and dashes in a letter1 unit150 ms
Gap between letters3 units450 ms
Gap between words, or before repeating7 units1,050 ms

For signaling by eye over a distance, slower is better: 5 to 8 WPM is easy to read. To look up or decode letters, use the Morse code translator.

Safety tips

  • Do not shine the LED directly into anyone's eyes, and never point a strobe at drivers.
  • Strobe and fast flashing can trigger seizures in people with photosensitive epilepsy.
  • In a real emergency, call your local emergency number first; a light signal is a backup for being seen.

Frequently asked questions

How can a website turn on my phone's flashlight?

Browsers that support the Media Capture torch constraint let a page that has camera permission switch the camera's LED on and off. The page opens the rear camera at low resolution, never shows or records the picture, and only sends the torch on or off command. Turning off releases the camera.

Does it work on iPhone?

Not with the LED. Safari and every other browser on iPhone and iPad do not let web pages control the torch, so the page automatically uses a full-screen white light instead. For the LED on iPhone, use the flashlight button in Control Center.

Which phones support the camera torch in the browser?

Most Android phones in Chrome, Edge, Samsung Internet and other Chromium-based browsers support it. Some phones only expose the torch on one of several rear cameras; the page tries each camera until it finds one with a torch, and you can also pick one from the Camera list.

Why does the strobe look slower than the setting?

Switching the LED takes a short command to the camera each time, and many phones cannot do that more than about 8 to 10 times per second. At high settings, flashes may merge or skip. The screen light can blink faster but is much dimmer.

How is SOS signaled?

SOS is three short, three long, three short: · · · − − − · · ·. Using standard Morse timing, a dash lasts three dots, the gap inside a letter is one dot, the gap between letters is three dots and the pause before repeating is seven dots. At 8 WPM one dot is 150 ms.

Does leaving the flashlight on drain the battery?

The LED uses noticeably more power than the screen alone, and the camera stays active while the light is on. Use the auto-off timer for long sessions. The LED can also get warm; some phones switch it off automatically when hot or when the battery is low.

Is anything recorded?

No. The camera image is never displayed, saved or uploaded; the page only needs camera access because the LED belongs to the camera.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Screen FlashlightTurn your screen into a bright white or coloured light that stays awake.Keep Screen AwakeStop your phone or computer screen from sleeping with one tap, with an optional timer.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.Webcam TestCheck your webcam, resolution and frame rate.Internet Speed TestMeasure download, upload, ping and jitter.What Is My IPSee your public IP address and location.Typing Speed TestMeasure your typing speed in WPM.Reaction Time TestTest your reflexes over 5 rounds and see your average and percentile.Click Speed TestTest your clicks per second (CPS) in 1 to 60 second modes.Jitter Click TestMeasure jitter clicking CPS, peak speed and click consistency.Kohi & Butterfly Click TestKohi, butterfly and drag click CPS tests with left/right click stats.Refresh Rate TestCheck your monitor's refresh rate in Hz and spot dropped frames.Aim TrainerPractice clicking targets and measure accuracy and reaction time.Spacebar CounterHow fast can you press space? Timed spacebar clicker test.Microphone TestTest your microphone with a live level meter.Keyboard TesterTest every key and check for ghosting.Mouse TesterTest clicks, double clicks and the scroll wheel.Dead Pixel TestFind dead or stuck pixels on your screen.Touch Screen TestCheck multi-touch points, draw trails and find dead zones on any touchscreen.Gamepad TesterTest controller buttons, triggers, stick drift and vibration in your browser.What Is My Screen ResolutionSee your screen resolution, viewport, pixel ratio, colour depth and display features.Vibration TestTest your phone's vibration motor with short, long, SOS, heartbeat and custom patterns.Battery Status CheckerCheck your battery level, charging state and time to full or empty.What Are My GPS CoordinatesSee your latitude and longitude in decimal and DMS, with accuracy and maps.Online CompassUse your phone as a compass with heading in degrees and cardinal points.Bubble LevelTurn your phone into a spirit level with surface and bar modes.Ring LightTurn your screen into a ring light or fill light with adjustable color temperature.Online RulerAn actual-size on-screen ruler in cm, mm and inches, calibrated with a credit card.Online ProtractorMeasure any angle on screen or in a photo with a draggable 360° protractor.Device Pixel Ratio CheckerSee your device pixel ratio, CSS viewport, physical resolution and screen PPI live.Browser Feature CheckerTest which Web APIs, CSS features and JavaScript syntax your browser supports.Local Storage InspectorView, edit and clear the cookies, localStorage and other data this site stores in your browser.FPS TestMeasure your browser's live frame rate, 1% lows and frame times, and compare 15-240 FPS.GPU TestSee your graphics card, WebGL and WebGPU support and limits, and run a quick GPU benchmark.Mouse DPI TestFind your mouse's real DPI by moving it a measured distance, with multi-run averaging.Color Blindness TestQuick 14-plate dot test that screens for red-green and blue-yellow color vision deficiency.Number Memory TestRemember a number that grows one digit each level. Track your digit span and best score.CPU BenchmarkTest your processor's single-thread and multi-thread speed in the browser and compare scores.What Is My ElevationSee your current elevation above sea level in feet and meters from GPS and terrain data.What Is My Time ZoneSee your time zone, UTC offset, abbreviation and daylight saving status instantly.10 Second ChallengeStop the hidden timer at exactly 10.00 seconds. See your error in ms, streaks and best tries.Astigmatism TestCheck each eye with a calibrated clock-dial chart and note which lines look darker.Camera and Mic Permissions CheckerSee if camera, mic, location, notifications and clipboard are allowed, blocked or not set, and fix it.Are Cookies Enabled TestCheck if cookies, localStorage and sessionStorage work in your browser, with fix steps.Dual N-Back TestWorking memory training: match squares and spoken letters from N steps back, with auto-levels.GPS Route TrackerRecord a walk, run or ride on a map: distance, time, pace, elevation, GPX and KML export.Hand-Eye Coordination TestKeep your cursor or finger on a moving target for 30 seconds and get your % time on target.Heart Rate Monitor (Camera)Measure your pulse with your phone camera and flash: live BPM, waveform and history.Is JavaScript Enabled TestCheck instantly if JavaScript is enabled, see your JS engine and get how-to-enable steps.Keyboard CleanerLock your keyboard in full screen so you can wipe it clean; hold Esc or click to unlock.MIDI MonitorLog every MIDI message from all inputs: notes, CC, pitch bend, clock and SysEx in hex.Online PedometerCount steps with your phone's motion sensor: distance, calories, cadence and saved sessions.Perfect Pitch TestHear random piano notes and name them without a reference tone. Find out if you have perfect pitch.Qibla Direction FinderFind the Qibla from your location: exact bearing to the Kaaba, live phone compass and map path.Reading Speed TestTime how fast you read a passage, answer comprehension questions and compare with adult averages.Schulte TableFind the numbers 1 to 25 in order as fast as you can. Grids 3×3 to 7×7, letters mode, history chart.Typing Test with CertificateTake a timed typing test and download a printable certificate with your net WPM and accuracy.Typing Test for KidsBig, friendly typing test for ages 6–12 with simple words, a key helper, stars, WPM and accuracy.Words Per Minute CalculatorWork out typing WPM (gross, net, CPM, accuracy) or your reading and speaking speed.Frame Skipping TestLight one box per frame and photograph it to catch skipped frames after overclocking a monitor.Ghost Touch TestLeave your screen untouched and log every phantom touch with a heatmap and timeline.Projector Test PatternFull-screen projector focus grid, keystone lines, color bars and 16:9, 4:3 and 2.35:1 frames.Online Serial PlotterPlot live numbers from Arduino, ESP32 or any USB serial device as a multi-line chart.Bluetooth Device ScannerFind nearby Bluetooth LE devices and read their services, characteristics and battery level.Keyboard Layout DetectorFind out if your keyboard is QWERTY, AZERTY, QWERTZ, Dvorak or Colemak and see its key map.Mouse Acceleration TestMove the same distance slowly and quickly to detect OS mouse acceleration with raw input.Touch Screen Accuracy TestTap shrinking targets to measure touch offset error per screen region, with a heatmap.Trackpad Gesture TestTest pinch zoom, two-finger scroll, swipes, force click and wheel delta modes live.
See all 129 Device & Internet Test Tools →