MP3 to MIDI
MP3 to MIDI converter: the codec's delay never reaches your note grid.
Turns an MP3 into a MIDI draft of note events—pitch, timing, velocity—in your browser, no account, no upload.
The selected audio is decoded in your browser; it is not uploaded to a server.
An MP3 carries a fixed encoder delay of roughly a thousand samples, and the browser's decoder removes it before the detector sees a single sample: in the test below, the WAV source and its 320 and 64 kbps encodings all start on sample 17.
What the download contains is a one-track .mid draft for a clear single melodic line, not separated instruments, tone, or a tempo map. Those were never stored as separate data in the MP3, so no converter can hand them back.
Measured, not assumed
An MP3's note grid starts on the same sample as the WAV it came from.
Every MP3 encoder inserts silence at the front of the file and pads the end, so that the transform has a complete block to work on. LAME, the reference MP3 encoder, writes two numbers into the frame header: a 576-sample delay at the front and 1,008 samples of padding at the end. Left in place, the front one would put roughly 13 ms of extra silence before the first sound and the back one roughly 23 ms after the last—the file would be about 36 ms longer overall, but nothing in it would move later. A shift needs delay at the front only; padding at the end can make a file longer, never make it late.
Nothing does remove it at the format level, but the decoder removes it in practice. The container carries a skip_samples field—1,105 in these files, the encoder's 576 plus the 529-sample delay of the decoder's own filterbank—and the browser's decoder applies it, then discards the trailing padding. What the detector receives is a buffer that lines up with the original recording, not one shifted by the codec.
That is checkable without trusting anyone's description of it. A 20-second synthetic source—44.1 kHz, mono, constant envelope at 0.3727, a repeating four-note figure—was encoded to four constant-bitrate MP3s and then all five files were run through the live converter. The first position where the decoded waveform rises above an absolute value of 0.01 was recorded for each:
| File | Note events | First audible sample | First ten pitches |
|---|---|---|---|
| WAV source, 20 s mono | 35 | sample 17 · 0.00039 s | 60, 62, 64, 67, 60, 62, 64, 67, 60, 62 |
| MP3 320 kbps CBR | 35 | sample 17 · 0.00039 s | 60, 62, 64, 67, 60, 62, 64, 67, 60, 62 |
| MP3 192 kbps CBR | 35 | sample 17 · 0.00039 s | 60, 62, 64, 67, 60, 62, 64, 67, 60, 62 |
| MP3 128 kbps CBR | 35 | sample 17 · 0.00039 s | 60, 62, 64, 67, 60, 62, 64, 67, 60, 62 |
| MP3 64 kbps CBR | 35 | sample 17 · 0.00039 s | 60, 62, 64, 67, 60, 62, 64, 67, 60, 62 |
Not "close enough": the same index. The first MIDI note in all five drafts also lands at 0.000 s, because the detector's first analysis frame starts at the top of the buffer, and the last note ends at 19.488 s in every one. There is no 36 ms offset to compensate for and none to hunt for. If a draft made from an MP3 sounds late against the audio, the cause is downstream of the codec—frame hop, note grouping, or a tempo mismatch in your project—not the encoder delay.
All four bitrates also returned the same 35 events with the same pitches. That is worth one line and no more, because of what the source was.
The limit of this test. The source is a synthetic tone sequence with a constant envelope—the easiest possible input for a perceptual encoder. Nothing in it needs the bits that low bitrates throw away, so 128 and 64 kbps keeping every event is the expected result, not a finding about MP3 in general. Do not carry this number over to a real recording: a track with cymbals, breath noise, reverb tails, or a dense mix can absolutely change the event count at 64 kbps, and a quiet attack can disappear entirely. The alignment result is the part that generalises, because encoder delay and its removal are properties of the format and the decoder, not of the music. The bitrate result is a property of this one signal.
Test conditions. Source: a 20-second synthetic WAV, 44.1 kHz, mono, constant envelope 0.3727, four repeating notes (MIDI 60, 62, 64, 67). Encoded with ffmpeg 9.0.2 (libmp3lame) to 320, 192, 128 and 64 kbps CBR, 44.1 kHz mono. Each file was converted once through the live converter at https://localmidi.com/ on Chrome 154.0.8037.57, Windows 11, on a dedicated profile with no extensions enabled, system proxy off and no PAC file, DevTools closed. The delay and padding values come from the MP3 frame header (encoder delay 576, padding 1,008); the decoder's skip_samples side data reports 1,105. Onsets are read from the decoded AudioBuffer after decodeAudioData, not from the DevTools network panel. MIDI note times are parsed from the downloaded blob at 480 ticks per quarter note, 120 BPM.
MP3 page vs. general guide
A format-specific entry point, not a different transcription engine.
This page starts with an MP3 and explains what can go wrong between compressed audio, browser decoding, and the MIDI draft. If your source is WAV, use the focused WAV-to-MIDI page for its format path and shared detector limits. The broader audio-to-MIDI guide compares workflows and helps choose a tool for different source material. These are separate entry points, not claims that each format has a special accuracy mode.
| Question | This MP3 page | General audio-to-MIDI guide |
|---|---|---|
| Starting point | Select an MP3 directly here, up to 20 MB. | Choose among workflows and tools for different audio sources. |
| Conversion code | Both Local MIDI upload paths use the same browser decoder, pitch detector, sensitivity settings, and MIDI writer. MP3 is decoded to audio samples first; it does not select a separate MP3 model. | |
| What to inspect | Quiet attacks, stereo channel placement, and note events after decoding. | Which workflow fits a melody, bends, chords, or a full mix. |
| What the result proves | A note count means the converter emitted that many events; it is not a count of correct notes. | Tool comparisons and detector examples are not a universal accuracy score. |
MP3 compression can soften some low-level detail, but that alone does not predict whether a particular melody will convert well. Compare the MIDI with the same source in your DAW; where a lossless original exists, checking it can help distinguish source-encoding detail from transcription errors.
A short MP3 workflow
Convert the file, then inspect the note events.
- Choose a clear source. Use an MP3 with one prominent melody, bass line, or other single-note part. Keep it under the 20 MB limit.
- Convert locally. Select the MP3 in the converter above, or open the Local MIDI converter full page, and choose the detection sensitivity that best fits the source.
- Download and edit. Save the generated MIDI, open it beside the MP3 in your DAW, and check note pitch, starts, ends, and missing or extra events before using it in a project.
The MIDI does not preserve the MP3's instrument tone, effects, or stereo image. It is note data that can trigger a DAW instrument. The status message reports generated MIDI events only; without an independent note-by-note reference, it cannot tell you precision, recall, or how many source notes were missed.
Measured, second test
Encoding lowers the level by 3–5%, and that is enough to erase a quiet note.
The delay test above used a constant-envelope source — the easiest input an encoder will ever see — and said so. This second test goes the other way. It asks what happens to a note whose level sits just above the detector's amplitude gate, where any loss of level removes the note entirely.
Eight notes of 300 ms each, separated by 100 ms of silence. Four were at full amplitude (0.30 peak); four sat at 0.0215 peak, which is an RMS of about 0.0152 — roughly 1.4% above the Balanced gate of 0.015. Each file was encoded to MP3 at 320, 192, 128, 64 and 32 kbps and decoded back before detection:
| File | Weak-note RMS | Balanced (gate 0.015) | More notes (gate 0.009) |
|---|---|---|---|
| WAV source | 0.01521 | 8 notes, all four weak notes kept | 8 notes |
| MP3 320 kbps | 0.01521 | 8 notes, all four kept | 8 notes |
| MP3 192 kbps | 0.01475 | 4 notes, all four weak notes gone | 8 notes |
| MP3 128 kbps | 0.01445 | 4 notes, all four gone | 8 notes |
| MP3 64 kbps | 0.01445 | 4 notes, all four gone | 8 notes |
| MP3 32 kbps | 0.01445 | 4 notes, all four gone | 8 notes |
Three things in that table matter more than the headline.
320 kbps is bit-identical to the WAV. The weak-note RMS reads 0.01521 on both, and both files return the same eight notes. At this bitrate the encoder did not move the level at all.
Below that, the pattern is a cliff, not a slope. 192 kbps drops the weak notes to 0.01475 and 128 kbps and below settle at 0.01445 — but the detector does not care how far below the gate a note falls, only that it fell. Every bitrate from 192 down lost exactly the same four notes and kept exactly the same four. A note at 0.01475 and a note at 0.01445 are the same result: gone.
The gate you pick can rescue them. At the More notes setting the gate is 0.009, and every bitrate returned all eight notes including 32 kbps. The encoded level of 0.01445 is still comfortably above 0.009. The note was never destroyed by the encoder in any meaningful sense — it was pushed below one specific threshold, and moving the threshold recovers it.
So the practical rule is not "avoid low bitrates". It is: if your source has quiet notes near the gate, either stay at 320 kbps or switch the detector to More notes. Reducing the bitrate moves the level by a few percent; the gate decides whether a few percent matters.
The limit of this test. The source is a synthetic constant-envelope tone sequence, not a real recording with cymbals, breath, or reverb. The exact 1.4% margin above the gate was chosen deliberately to make the crossing visible; a real note sitting further above the gate would survive 128 kbps untouched, and one sitting below it would never have been detected at any bitrate. What generalises is the mechanism — lossy encoding lowers level by a few percent, the detector applies a hard threshold, and a note near that threshold can exist in one file and vanish in another. The specific four notes are a property of this signal.
Test conditions. Source: 8 notes × 300 ms at 44.1 kHz mono, 5 ms linear attack, constant envelope, 100 ms silence between notes; amplitudes 0.30 and 0.0215. Encoded with ffmpeg 9.0.2 (libmp3lame) to 320/192/128/64/32 kbps CBR, 44.1 kHz mono, then decoded back to 16-bit PCM before detection. Detector: Node replication of converter.js (frameSize 1024, hop 256, minLag 31, maxLag 512, unnormalised autocorrelation, ±1 semitone merge; gates 0.009 / 0.015 / 0.023; minimum note durations 0.055 / 0.075 / 0.11 s). Script: run-mp3-edge.js. Log: localmidi-private/logs/mp3-edge-2026-11-09.txt.
MP3-specific checks
Three source details that can change what you hear in the MIDI.
Lossy encoding can soften quiet attacks
MP3 is a lossy format. Low-level attacks, decays, or details masked by louder sounds may be less distinct after encoding; a note detector can then miss a quiet onset or merge it with a neighboring sound. This is the part the delay test above does not clear: a signal with a constant envelope has no quiet attack to lose. The second test on this page measures exactly this — a note sitting 1.4% above the gate survived at 320 kbps and disappeared at 192 kbps and below, while the same files were read correctly at the More notes setting. If the source is important, compare the MP3 with its lossless original.
A stereo MP3 is not split into instruments
A stereo mix still combines instruments in its left and right channels. Local MIDI's current detector reads the first decoded channel; it does not separate stems or combine the channels into independent instrument tracks. A part placed mainly in the other channel may be underrepresented. For a fair check, listen to each channel in your DAW or use a centered, isolated melody.
44.1 kHz is not a fixed conversion requirement here
The browser decodes the MP3 into audio samples, and the detector reads the decoded buffer's sample rate. Local MIDI does not force every MP3 through a separate 44.1 kHz resampling step. If you compare exports from different browsers or projects, check the decoded/source settings and the MIDI timing against the audio rather than attributing a difference to a fixed resampling rule.
Implementation-specific guide
What this MP3 converter actually turns into MIDI.
Why a stereo MP3 can yield an incomplete part
The converter decodes the selected file with the browser's audio decoder, then its detector reads channel zero only. It does not inspect the second channel as a separate source, combine a stereo pair, or split instruments into stems. If the melody is strongly panned away from the first channel, the MIDI draft may not represent it well; check the channel balance before treating missing notes as an MP3-format problem.
Pitch and note boundaries have explicit limits
The current detector declares a 55–1,400 Hz fundamental band — the loop's own arithmetic limits are 86.1 Hz and 1,422.6 Hz, derived rather than measured — and keeps rounded MIDI pitches 28 through 96. It groups adjacent frames when the estimated pitch differs by no more than one semitone. Sensitivity changes both the amplitude gate and the minimum note duration; it is a trade-off between keeping quieter/shorter events and rejecting extra detections, not a quality score.
The exported file is a one-track draft on a fixed tempo basis
Detected note start and end times are converted to MIDI ticks at 120 BPM with 480 ticks per quarter note, then written as a standard single-track MIDI file. That makes the result editable note events, but it does not preserve the MP3's waveform, tempo map, instrument identity, or arrangement. When the source tempo is not 120 BPM, align the audio and MIDI in your DAW and adjust the MIDI tempo or note positions before judging the transcription. If the tempo value itself is what you are missing, measure it first with the BPM counter rather than guessing from the note spacing.
Page-specific evidence: these limits are read from the current Local MIDI detector and MIDI writer in converter.js (channel selection, frequency bounds, sensitivity thresholds, note grouping, 120 BPM, and 480 PPQ).
Convert MP3 to MIDI
Convert an MP3 to MIDI in three steps, and what each step actually decides.
Converting an MP3 to MIDI is the same operation as converting any other supported file here, because the MP3 is decoded to audio samples before the detector runs. Nothing in the MP3 container reaches the note grid. The three steps below are the whole procedure; the notes after each one are the decisions that change the result.
- Pick the file. Choose an MP3 up to 20 MB in the converter at the top of this page. The upload path accepts MP3 only here; other formats have their own pages. A 20 MB MP3 is roughly 20 minutes at 128 kbps or 8 minutes at 320 kbps, so the size limit is rarely the binding constraint for a single part.
- Set the sensitivity, and think about it as a gate. The three settings change two things at once — the amplitude gate (0.023 / 0.015 / 0.009) and the minimum note duration (0.11 / 0.075 / 0.055 s). More notes lowers the gate and shortens the minimum, so it keeps quieter and shorter events. It also keeps more noise. This is the setting that decides whether a note sitting near the gate survives, as the second test on this page shows.
- Download and align. The file is a one-track MIDI draft at 120 BPM and 480 ticks per quarter note. If your project is not at 120 BPM, set the MIDI clip tempo or align it by ear before judging note accuracy. The notes are the data; the tempo grid is a fixed convention.
A result that looks wrong usually traces to one of three causes, in this order of likelihood: the source was not a single melodic line, the note level sat near the gate, or the project tempo did not match the exported 120 BPM. Checking those three before changing tools will save more time than switching converters.
Related reading
Need the broader workflow or accuracy limits?
For the tool decision across audio sources, read the audio-to-MIDI workflow guide. For reproducible detector boundaries and the checks to make in a DAW, see the audio-to-MIDI accuracy guide.
FAQ
MP3 to MIDI questions
Can I convert MP3 to MIDI?
Yes. Choose an MP3 in the converter above. Files up to 20 MB are processed on your device and can be downloaded as a MIDI draft.
Does the MP3 encoder delay shift the notes late?
Not in this path. MP3 encoders write a delay of a few hundred to about 1,100 samples, but the decoder strips it using the file's skip-samples value before the detector sees the audio. In the measurement on this page, the WAV source and its MP3 encodings all started on sample 17, with the first MIDI note at 0.000 s.
Which audio formats can I convert to MIDI?
The Local MIDI converter currently accepts WAV, MP3, M4A, OGG, and FLAC files up to 20 MB. This page focuses on MP3 input.
Does a lower bitrate produce fewer notes?
Not necessarily. On a synthetic constant-envelope tone sequence, 320, 192, 128 and 64 kbps all returned the same 35 events. That source is the easiest case for an encoder, so the result says nothing about real music—treat your own file as the test.
How accurate is the MIDI conversion?
There is no single accuracy percentage for every recording. The current lightweight detector is intended for a clear single-note line; check missing notes, false notes, pitch, and timing in your DAW. Chords, full mixes, and strong pitch bends need more caution.
Does a stereo MP3 become separate MIDI tracks?
No. The converter does not separate instruments or create multitrack MIDI. Use an isolated melodic source and treat the download as editable note data.
How do I convert an MP3 to MIDI?
Choose the MP3 in the converter at the top of this page, pick a sensitivity level, and convert. The file is decoded in your browser, the detector reads the first channel, and the result downloads as a one-track MIDI file at 120 BPM and 480 ticks per quarter note. Files up to 20 MB are accepted; nothing is uploaded.
Is this MP3 to MIDI converter free, and does it need an account?
It is free and needs no account. The conversion runs in the browser on your own device, which is why the 20 MB limit exists — it is a memory bound, not a paywall. There is no tier above it to buy.
Will a lower-bitrate MP3 give me fewer notes?
It can, but only for notes sitting close to the detector's amplitude gate. In the measured test on this page, a note 1.4% above the gate survived at 320 kbps and disappeared at 192 kbps and below; full-level notes in the same files were unaffected at every bitrate. Switching to the More notes setting recovered all of them.