Free online tool

MP3 to MIDI Converter

Turn an MP3, WAV or other recording into a MIDI file in your browser, check every note on a piano roll and listen back before you download.

Convert audio to MIDI

Choose a recording of one instrument or voice. Basic Pitch, Spotify’s open-source transcription model, finds the notes right here in your browser. Check them on the piano roll, listen back and download a MIDI file.

Or drop a file here. MP3, WAV, M4A/AAC, OGG, FLAC or WebM, up to 150 MB and 10 minutes. It stays on this device.

Notes are found by Basic Pitch by Spotify (Apache License 2.0), running on TensorFlow.js in your browser. It works best on one instrument or voice and on clean recordings; a full mix with drums gives extra notes, and there is no stem separation. Your audio is never uploaded.

Runs on your device

Decoding, Spotify's Basic Pitch model and the MIDI writer all run in your browser. Your recording is never uploaded, and only your settings are remembered on this device.

Piano roll and playback

See every detected note against a keyboard, zoom in on a passage, and play the notes, the original recording or both together to hear what was caught and what was missed.

Re-tune without waiting

The model runs once. Changing the onset or note threshold, the minimum note length or the pitch range re-reads its output in a moment, and presets cover piano, voice, guitar and dense mixes.

How to convert MP3 to MIDI

  1. 1

    Choose or drop an MP3, WAV, M4A, OGG or FLAC file, or press Try an example.

  2. 2

    Pick the section to transcribe, up to 10 minutes, and press Convert to MIDI.

  3. 3

    Check the notes on the piano roll, play them against the original, and adjust the preset or thresholds.

  4. 4

    Set the tempo and instrument, then download the MIDI file and open it in your DAW or notation app.

What people use this tool for

  • Turn a hummed or sung melody into MIDI and play it with any virtual instrument.
  • Transcribe a solo piano recording to edit the notes or turn them into sheet music.
  • Bring a guitar riff or bass line from a practice recording into your DAW.
  • Find out which notes a recording contains when learning a part by ear.

Frequently Asked Questions

How does this MP3 to MIDI converter work?

Your browser decodes the file, mixes it to mono and resamples it to 22,050 Hz. Spotify's Basic Pitch neural network then reads it in overlapping 2-second windows and estimates, about 86 times a second, which of the 88 piano pitches are sounding and where notes start. Notes are read from that output with Basic Pitch's own method and saved as a Standard MIDI File with 480 ticks per quarter note.

Which recordings convert to MIDI best?

One instrument or one voice, recorded cleanly: solo piano, a sung or hummed melody, a guitar or bass line, a flute or violin part. A full mix with drums gives extra notes, because drum hits and overlapping instruments look like pitches to the model, and there is no built-in stem separation. If you only have a mixed song, isolate the part you want first and convert that.

Is my audio uploaded?

No. The file is read, decoded and transcribed in your browser. Zutilium only sends the converter's code and the Basic Pitch model files, about 2 MB, when you first convert. Settings such as thresholds, tempo and instrument are kept in this browser's local storage under zutilium:mp3-to-midi; the audio and the notes are not stored.

What files and lengths does it accept?

Files up to 150 MB and 10 minutes long, in any format your browser can decode: MP3, WAV, M4A/AAC and FLAC open in current browsers, and OGG and WebM in most. Pick a start and end to convert only part of the file, such as a solo. The whole recording is decoded in your browser's memory, which is why longer files are refused. In Chromium on an Apple M1 Max, a minute of audio took about 5 seconds with WebAssembly and about 1 second on the graphics card (WebGL); phones are slower.

What do the onset threshold, note threshold and other settings do?

The onset threshold sets how clear a note's start must be: lower splits notes more finely, higher merges them. The note threshold sets how confident the model must be for a note to continue: lower finds more and longer notes. A note must be longer than the minimum length, counted in 11.6 ms frames: at the default 128 ms (11 frames), notes of 12 frames (139 ms) or more are kept. The pitch range drops notes outside it, and the melodia trick also finds notes whose start the model missed. Each change re-reads the model's output without running it again.

Does it detect the tempo, key or drums?

No. Notes keep the timing they have in the recording, and the MIDI file uses the tempo you enter (120 BPM by default) so its beat grid lines up in your DAW. Quantizing to a 1/4, 1/8, 1/16 or 1/32 note grid, or triplets, is optional and off by default. Basic Pitch transcribes pitched notes only, so drums are not written as a drum track.

Does the MIDI file include velocities and pitch bends?

Yes. Each note's velocity comes from how strongly the model detected it. With Pitch bends on, notes that play alone get bend events from the model's finer pitch estimate, in thirds of a semitone within a range of plus or minus 2 semitones. A MIDI channel has one pitch wheel, so notes that overlap another note keep their plain pitch, as in Basic Pitch.

Who made the transcription model?

Basic Pitch was created by Spotify and is open source under the Apache License 2.0. This page runs the published model with TensorFlow.js, both unmodified, in your browser; the note reading, piano roll, synth and MIDI writer were built for Zutilium from Basic Pitch's documented method.