FLXCode Decibel Meter

FLXCode apps

Appearance

Decibel Meter

Press Start and see how loud it is. The number is an estimate you can calibrate, shown with min, average, max and Leq.

Press Start and allow the microphone. Nothing is recorded or uploaded.

A browser microphone is not a calibrated sound level meter. Treat the number as an estimate, good to compare two moments, not to prove a limit.

Calibrate the offset

The default 100 is a rough guess for a typical laptop or phone microphone. Every mic and gain setting differs.

Play a steady tone or hold a calibrator or a real meter's reading next to the mic, type its level, then press the button while it plays. The offset is kept in this browser, nothing else is.

No ads. No account. Nothing you record is uploaded. Check it. We count page events with a daily code.

Problem or idea? Email us

Quick start

  1. Press Start decibel meter and allow the microphone.
  2. Hold the device still, microphone towards the sound. Wait a few seconds for the number to settle.
  3. Read the big number, the About-like line and the 60 second line. Leq is the one to quote for a longer stretch.
  4. Want a better number? Calibrate once against a known level.
  5. Press Stop microphone. The browser's recording indicator goes off.

Numbers this uses

  • Offset 100 dB: a rough guess that 0 dBFS is about 100 dB SPL on a typical laptop or phone microphone. It is editable and you should calibrate it.
  • Window: 4096 samples with a Hann window, about 85 ms at 48 kHz.
  • Display: power smoothed with a 125 ms time constant, like the Fast setting of a meter.
  • A-weighting: the IEC 61672 analogue curve with poles at 20.6, 107.7, 737.9 and 12194 Hz and +2.00 dB so it reads 0 at 1 kHz. It is applied to every FFT bin, not as a filter.
  • Exposure limits: OSHA 29 CFR 1910.95 Table G-16 (90 dB(A), 8 h, 5 dB exchange rate) and NIOSH publication 98-126 (85 dB(A), 8 h, 3 dB exchange rate).
  • History line: 60 seconds, one point every 250 ms. The dashed line is 85 dB.

Typical sound levels

dBSound
30Whisper, quiet library
40Quiet room at night
50Light rain, refrigerator hum
60Normal conversation
70Vacuum cleaner, busy restaurant
80Heavy traffic heard from the kerb
90Lawn mower, blender
100Motorcycle, subway train
110Rock concert, chainsaw
120Ambulance siren close by
140Gunshot, fireworks at close range

Rounded values from CDC and NIOSH noise pages. Real sources vary by 5 to 10 dB with distance, model and room.

A browser mic is not a calibrated meter

A sound level meter is a microphone with a known sensitivity, a fixed gain and a checked frequency response. A browser gets a signal in digital units and has no way to learn the real sensitivity. So the tool measures level in dBFS, which is exact, and adds one offset to turn it into an estimate of dB SPL. Calibrating sets that offset for one microphone and one input volume. Phones, laptops and headsets differ by tens of dB. Many phones also roll off below 100 Hz and above 10 kHz, and the A-weighting on top cannot restore what the microphone never heard.

Browsers apply echo cancellation, noise suppression and auto gain unless a page asks them not to. This page asks for all three off, because auto gain would turn a loud room down and a quiet room up and make every level meaningless. If your browser ignores the request, the line under the button says so.

Worked examples

A-weighting for a pure tone, from the same function the meter uses:

FrequencyA-weighting
50 Hz−30.3 dB
100 Hz−19.1 dB
250 Hz−8.7 dB
500 Hz−3.2 dB
1 kHz0.0 dB
2 kHz+1.2 dB
4 kHz+1.0 dB
8 kHz−1.1 dB

Digital level of a 1 kHz sine, and the estimate with the default offset of 100 dB:

Sine amplitudeLevelEstimate
1−3.0 dBFS97.0 dB
0.5−9.0 dBFS91.0 dB
0.1−23.0 dBFS77.0 dB
0.01−43.0 dBFS57.0 dB

Adding sources. Decibels add as energy, so two equal sources make 3 dB more, not double:

Sources (dB)Together
60 + 6063.0 dB
70 + 7073.0 dB
60 + 7070.4 dB
50 + 8080.0 dB
85 + 85 + 85 + 8591.0 dB

Leq of an hour at 85 dB followed by 15 minutes at 95 dB is 89.5 dB, closer to the louder part than the plain average of 87.0.

Daily time allowed at a steady level:

Level dB(A)NIOSHOSHA
858 hno limit set
884 hno limit set
912 h7 h
941 h4.6 h
10015 min2 h
1055 min1 h
1101 min30 min

These are limits for hearing protection programmes. They say nothing about annoyance, and a reading from this page can't confirm either number.

How it works

The page reads a block of raw samples from the microphone about 60 times a second. It computes the signal power two ways from one FFT: flat, and with each bin multiplied by the A-weighting.

level in dBFS = 10 × log10(mean square of the samples)

estimate in dB = level in dBFS + offset

A full-scale sine has a mean square of 0.5, which is −3.01 dBFS. The meter smooths the power, shows the result and keeps min, max, mean and energy average over the time since you pressed Start. Calibration sets the offset to the known level minus the current reading, so the two agree.

Getting a steadier reading

  • Keep the same distance and put nothing over the microphone hole. A hand or a case can change the number by several dB.
  • Outdoors, wind on the microphone reads as loud low noise. Turn your body to shield it.
  • Looking for what makes the noise? Watch it on the spectrogram, and compare a pure hum with the 60 Hz tone.
  • Checking your own microphone for calls instead? Use the mic test, which shows dBFS and clipping.

FAQ

How accurate is an online decibel meter?

Not very. A phone or laptop microphone has its own sensitivity, the system adds gain, and nobody tells the browser what they are. Out of the box the number can be off by 10 dB or more. After you calibrate against a known level it is usually good for comparing one moment with another, within a few dB. It does not replace a Class 1 or Class 2 sound level meter.

Why does it say dB(A)?

The A in dB(A) is a weighting that cuts low and very high frequencies the way the ear does at moderate levels. Noise limits are written in dB(A), so that is the default. At 100 Hz the weighting takes off 19.1 dB, at 1 kHz it takes off nothing. Switch to Flat to see the raw level.

What is a safe noise level?

NIOSH recommends staying under 85 dB(A) averaged over 8 hours, and every 3 dB above that halves the time. OSHA allows 90 dB(A) for 8 hours and halves the time every 5 dB. At 100 dB(A) that is 15 minutes by NIOSH and 2 hours by OSHA. These are exposure limits for hearing damage, not comfort levels.

What do min, average, max and Leq mean?

Min and max are the quietest and loudest readings since you pressed Start or Reset. Average is the plain mean of the dB readings. Leq is the equivalent continuous level: the steady level that carries the same sound energy over the same time. Loud moments weigh more in Leq, so it is always at or above the average.

How do I calibrate it?

Open Calibrate the offset. Play a steady sound next to the microphone while a real sound meter, or a calibrator such as a 94 dB tone, shows its level. Type that level and press Set offset from current level. The meter now adds a fixed offset so it reads the same. Keep the same microphone, the same distance and the same input volume afterwards.

Can I use it to check my neighbour's noise or a workplace limit?

For a first look, yes. As proof, no. Rules and courts want a calibrated meter that meets IEC 61672 and a documented method. If the numbers look close to a limit, borrow or hire a proper meter.

Why does it read high or low when I move?

Sound drops by about 6 dB each time you double the distance from a small source. Wind, a hand on the microphone and a phone case also change the reading. Hold the device still, with the microphone pointing at the source.

Does it record me or send my levels anywhere?

No. The level is worked out in your browser and the sound is never saved or uploaded. We count events like "started the meter" with a daily code, never a level. The only thing kept on your device is the calibration offset, one number, and only if you change it.

More from FLXCode

Share Decibel Meter