ABX Audio Blind Test
Operator: Abdulla Al Fahad. How tools are built and checked
Whether a 128 kbps MP3 sounds different from its lossless source is a question you can answer for yourself with a blind test. In an ABX test you hear A and B, then X, which is secretly one of them, and say which. Guess once and you are right half the time; guess right 12 times out of 16 and chance becomes an unlikely explanation.
Key features
- Two files of up to 6 minutes, decoded at 44.1 kHz, with an offset of up to 500 ms to line B up with A and a cross-correlation check that reports how far B still lags A in the loop and offers the correcting offset
- B level-matched to A by integrated loudness over the loop region (ITU-R BS.1770), capped at 12 dB, with a further trim of up to 6 dB either way
- A loop of 1 to 60 seconds, and A, B and X buttons (or the keys A, B and X) that switch without a gap
- 6 to 40 trials, X drawn from the browser's secure random generator, answers with 1 or 2 or the buttons, and optional feedback after each trial
- An exact one-sided binomial p-value, the score needed for p of 0.05, a trial table and a CSV
- Both signals are lowered together if matching would push the louder one over full scale
How the test is run and scored
Both files play at the same time from one clock, each through its own gain. Pressing A, B or X changes which gain is open, with a 5 ms ramp so there is no click, so the music never jumps or restarts when you switch. X is routed to whichever file the current trial drew.
A leftover offset between the files would make the switch itself audible, as a small jump in the music. The page therefore correlates the two over the loop region (up to about 12 s, within ±1 s) and shows how far B arrives after or before A, with a button that applies it to the offset field. Two files that are not versions of the same recording correlate poorly, and the page says that instead.
Loudness matters because a louder version nearly always sounds better, whatever its quality. The page measures the integrated loudness of both files over the loop region, using the BS.1770 K-weighting and gating, and plays B at the gain that makes the two equal. For a region under 400 ms it falls back to the RMS level. The measured values and the applied gain are shown.
Common use cases
- A mastering engineer loads two bounces of the same song with different limiter settings, lets the page bring the second to the first's loudness, and checks whether the difference in peak handling is audible at all.
- A listener checks a 320 kbps MP3 against its FLAC source over 20 trials, where 15 or more correct answers are needed for p under 0.05.
- A forum member records the same DAC output twice, once through each of two cables, and runs 16 trials on the two recordings; the CSV shows each answer and the time taken, so a pass can be posted as evidence about the recordings.
How to use this tool
- Load version A and version B; if one starts late, set an offset in milliseconds until they line up.
- Choose the loop: a 10 to 20 second passage where you think the difference lives, such as cymbals, reverb tails or a quiet intro.
- Pick the number of trials and press Start the test.
- For each trial, listen to A, B and X as often as you like, then press X is A or X is B.
- Read the verdict and p-value at the end and download the CSV if you want the record.
Example
A lossless file as A and its 128 kbps MP3 as B, 16 trials
Loop region 12 to 22 s, loudness matching onWhat the scores mean
12 of 16 right: p = 0.038, below 0.05, so the run shows you can tell them apart.
11 of 16 right: p = 0.105, which chance produces about one run in ten, so it does not.
9 of 10 right: p = 0.011. With 10 trials the smallest passing score is 9; for 6 trials only 6 of 6 passes (p = 0.016).Tips for best results
- Use a loop of one passage rather than the whole song: you will hear differences faster, and the switching stays on the same bars.
- Keep feedback off until the test is done. Learning which is which from feedback turns later trials into recognition, not blind listening.
- Take a break after 10 trials. Listening fatigue lowers the score without changing the files.
Common pitfalls
Browsers decode, resample and play through the system mixer, so this is not a bit-perfect playback chain, and speakers or headphones limit what can be heard. A set-up that cannot reproduce 16 kHz cannot reveal a lowpass there.
A pass shows you heard something that differs between the files, not what it is. Loudness is matched to ITU-R BS.1770, which is not the same as matching for every listener.
Common errors and how to fix them
- After the offset, the two files overlap for less than a second
- Reduce the offset, or choose files that cover the same stretch of music.
- The file is 9 minutes long; this tool takes up to 6 minutes
- Cut a section from each file first; an ABX test only needs a few minutes of material.
Best practices
- Fix the number of trials before you start; stopping when the score looks good makes the p-value meaningless.
- Use at least 16 trials; with 8, only 7 correct or better counts and one lucky streak can pass.
- Make sure both files are the same master: a different master changes the sound for reasons other than the encoding.
Reading the p-value
The p-value is the chance of scoring at least as well as you did by guessing every trial at 50%. It is the sum of the binomial probabilities from your score up to all trials, computed exactly: for 9 right out of 10 that is 11 of 1,024 possible outcomes, 0.0107. A p of 0.05 or lower is the usual bar. A result above it means this run gave no evidence of a difference; it does not show there is none, because a short test can miss a small difference you can hear.
Frequently asked questions
Why is B's loudness changed and not A's?
A is the reference. Changing only B keeps A at the level of the file you loaded, and the page shows exactly how many dB B is moved.
How is X chosen?
Each trial draws A or B at random from the browser's cryptographic generator, independently of earlier trials, so X can be the same file several times in a row.
Does it work with more than two channels?
Files with more than two channels are reduced to their first two, and a mono file plays on both sides.
Why does the page say B arrives later than A when the files start together?
Lossy encoders add a delay, typically about 25 ms for MP3, so a decoded MP3 starts a little late against its source. The note appears when the correlation over the loop region finds a lag of 1 ms or more, and pressing its button moves B to cancel it.