Home › Audio & Video › Audio to MIDI Converter

Audio to MIDI Converter

Convert a recording of piano, guitar, singing or whistling into MIDI notes. The Basic Pitch AI model (by Spotify, running in your browser with TensorFlow.js) detects chords and melodies; a built-in tracker handles single-note lines instantly. Fine-tune the result with the sliders, check it on the piano roll and play it back, then download a standard .mid file.

Last updated:

Showing a demo melody.

Advertisement
Advertisement

How to use the Audio to MIDI Converter

  1. Choose a recording: drop an MP3, WAV or other audio file. A demo melody is converted when the page opens.
  2. Pick the engine: Basic Pitch AI for piano, guitar and anything with chords; the built-in tracker for singing, humming or whistling one note at a time. Press Convert to MIDI.
  3. Adjust the sliders: raise Note sensitivity if notes are missing, lower it if you see stray notes. Raise Minimum note length to remove short blips.
  4. Check the piano roll and press play with MIDI notes, Original or Both to compare.
  5. Set tempo and quantize if you want notes snapped to a grid, then Download .mid file and open it in your DAW or notation app.

Getting a clean transcription

RecordingEngineSuggested settings
Solo pianoBasic Pitch AISensitivity 45–55 %, sustain 50 %, min length 60–100 ms
Acoustic or clean electric guitarBasic Pitch AISensitivity 40–50 %, lowest note E2, min length 80 ms
Singing or hummingBuilt-in trackerSensitivity 50 %, min length 100–150 ms
Whistling, flute, recorderBuilt-in trackerSensitivity 50–60 %, lowest note C4
Bass lineBuilt-in tracker (or AI)Highest note C4, min length 80 ms
Full song mixBasic Pitch AISensitivity 30–40 %, then clean up; isolate the part first if you can

Notes, MIDI numbers and frequencies

MIDI numbers each key from 0 to 127; middle C (C4) is 60 and A4 (440 Hz) is 69. A frequency f converts to a MIDI note with n = 69 + 12 × log2(f ÷ 440), rounded to the nearest whole number.

NoteMIDIFrequencyTypical source
A02127.5 HzLowest piano key
E24082.4 HzGuitar low E string
C460261.6 HzMiddle C
A469440.0 HzTuning reference
C6841046.5 HzHigh soprano, whistling
C81084186.0 HzHighest piano key

Tips

  • Record close to the instrument in a quiet room; reverb and background noise turn into extra notes.
  • Sustain pedal and ringing strings make notes overlap. Raise the sustain threshold if the MIDI sounds smeared.
  • The detected notes come from pitch, not from music theory: check accidentals and octaves before printing sheet music.
  • Find the song's tempo with a BPM finder and enter it before quantizing, so the MIDI lines up with your project grid.

Frequently asked questions

How does the audio to MIDI conversion work?

With the AI engine, the audio is resampled to 22,050 Hz mono and fed to Basic Pitch, an open-source neural network from Spotify's Audio Intelligence Lab. It outputs, about 86 times per second, the probability that each of 88 piano keys is sounding and that a note starts. Notes are then extracted with the sensitivity (onset) and sustain (frame) thresholds you set. The built-in tracker instead measures a single pitch with the YIN algorithm and splits notes where the pitch or loudness changes.

Can it convert chords and full songs?

Basic Pitch is polyphonic, so piano chords, strummed guitar and several instruments at once are detected. A full mix with drums, bass, vocals and effects produces many extra notes, though: results are best with one instrument recorded cleanly. For a song, isolate the part first (for example with a vocal remover) and convert that.

Which engine should I use for singing or humming?

Use the built-in tracker for a single voice, whistling, flute or any instrument that plays one note at a time. It ignores harmonics and breath better than a polyphonic model, works instantly and needs no download. Basic Pitch also works on voice but may add octave or harmony notes.

Why are there extra or missing notes?

Lower Note sensitivity to remove ghost notes from harmonics, room echo or noise; raise it to catch soft notes. Raise Sustain threshold if notes run on too long, and increase Minimum note length to drop very short blips. Limiting the lowest and highest note also removes rumble and squeaks. Expect to tidy up the MIDI in your editor: no automatic transcription is perfect.

Does quantize change the timing?

With Quantize off, notes keep their exact timing in seconds and the MIDI file just uses your tempo to convert seconds into beats. With quantize on, every note start and end snaps to the nearest grid step (for example a 1/16 note at your BPM). Set the tempo to the song's real BPM first, or the grid won't line up with the beat.

What is in the .mid file?

A standard MIDI file (format 0) with one track: a tempo event, a 4/4 time signature, a program change for the instrument you picked, and note-on/note-off events with velocities taken from the loudness of each note. It opens in GarageBand, FL Studio, Ableton Live, Logic, MuseScore and any other MIDI app.

Is my audio uploaded?

No. Decoding, the AI model and the MIDI writing all run in your browser. The first time you use the AI engine, the model files and TensorFlow.js are downloaded from a public CDN, but your recording never leaves your device.

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

MIDI PlayerPlay MIDI files in your browser with a piano roll, tempo control, track mute and WAV export.Song Key FinderFind the key, scale, Camelot code and BPM of any song from an audio file, privately.Online PianoPlay a virtual piano with your mouse, touch or computer keyboard and record a WAV.Auto-Tune VoicePitch-correct singing to a key and scale, from natural to robotic T-Pain style, with a pitch graph.Online MIDI EditorPiano-roll MIDI editor: open or create .mid files, draw notes, set instruments and tempo, play and save.Screen RecorderRecord your screen with mic and system audio.Audio to TextTranscribe MP3, WAV and M4A recordings to text in your browser with Whisper. Export TXT, SRT, DOCX.Audio ConverterConvert MP3, WAV, M4A, OGG and FLAC to MP3 or WAV in batch, right in your browser.Audio CutterTrim MP3 and audio files, add fades and make ringtones.Audio JoinerMerge MP3 and other audio files into one track with crossfade.WAV to MP3Convert WAV files to MP3 at 128, 192 or 320 kbps, in batches.Voice RecorderRecord and trim audio in your browser.MP3 to WAVConvert MP3 files to WAV in batches.Audio Speed ChangerSpeed up or slow down audio, with or without pitch change.Audio Pitch ChangerShift the pitch of a song or recording up or down without changing tempo.Audio Volume Booster & NormalizerMake audio louder, normalize peaks or loudness, with a limiter against clipping.Clear Audio RecorderRecord clean audio with noise suppression and gain control.Sound Level MeterEstimate noise level in decibels using your microphone.Audio ReverserReverse any audio file and play it backwards, then download the result as WAV.Hearing TestCheck your hearing by ear and frequency, plot an audiogram and find your upper frequency limit.Text to Morse AudioTurn text into Morse code sound at any WPM with Farnsworth timing, then play it or save a WAV.Audio Bitrate CalculatorWork out audio file size from bitrate and length, WAV size, or the bitrate for a target size.Audio Spectrum AnalyzerLive FFT spectrum analyzer for your microphone or an audio file, with dominant frequency and note.Subwoofer Bass TestTest your subwoofer and bass response with 10–200 Hz tones, presets and a low-frequency sweep.M4A to MP3Convert M4A, AAC and iPhone voice memos to MP3 in batch, privately in your browser.Voice ChangerRecord or upload your voice and make it chipmunk, deep, robot, alien, radio or echo. Save as WAV.Ringtone MakerCut the best 15–40 seconds of any song, add fades and save it as an MP3 ringtone.OGG to MP3Convert OGG Vorbis and Opus audio to MP3 in batch, keeping tags. Free, no upload.FLAC to MP3Convert FLAC to MP3 at up to 320 kbps, keeping tags and album art. Batch, no upload.AAC to MP3Convert AAC and M4A audio to MP3 in batch, at 128 to 320 kbps. Free, no upload.OPUS to MP3Convert OPUS audio and voice messages to MP3 in batch, at 64 to 320 kbps. No upload.Audio NormalizerNormalize audio to a peak level or a LUFS loudness target, in batch, and save as WAV or MP3.Audio Noise ReducerRemove background hiss, hum and room noise from a recording using a noise profile, then save WAV.Audio Fade In and OutAdd a smooth fade in and fade out to any song or recording, then save it as MP3 or WAV.Audio Equalizer10-band EQ for audio files: boost bass, clarify vocals or tame treble, then save as MP3 or WAV.Audio MixerMix up to 4 audio tracks with volume, pan, start offsets and fades, then save the mix as MP3 or WAV.Waveform Image GeneratorTurn any song or recording into a waveform image: bars, mirror or line, as PNG or SVG.8D Audio ConverterMake any song 8D: sound circles around your head with reverb. Preview live, save MP3 or WAV.Online VocoderClassic robot vocoder in your browser: speak or load a voice, play the synth carrier, record.Podcast Chapters GeneratorTurn timestamps into Podcasting 2.0 JSON chapters, YouTube chapters, or ID3 chapters inside your MP3.Stream Countdown OverlayMake a "starting soon" countdown screen for OBS: pick time, colors, fonts and animation, copy the URL.Audio LooperLoop any part of a song seamlessly with a crossfade, repeat it N times or to a length, export.Audio Sample Rate ConverterResample audio to any rate from 8 to 96 kHz and change bit depth. WAV or MP3 output.Audio Spectrogram GeneratorTurn any audio file into a spectrogram image: FFT size, color maps, log or linear scale, PNG export.Audio SplitterSplit audio into equal parts, fixed-length pieces or at silences, and download a ZIP.Bass BoosterBoost the bass of any song with a low-shelf EQ and limiter, compare A/B, export MP3 or WAV.MP3 CompressorMake MP3 files smaller: re-encode at a lower bitrate, mono or sample rate, or fit a target size.MP3 Tag EditorEdit MP3 ID3 tags: title, artist, album, year, genre, track and album art, one file or many.Nightcore MakerSpeed up and pitch up any song into nightcore, add bass boost, save MP3/WAV or a cover video.Slowed and Reverb GeneratorMake slowed + reverb versions of any song: speed, reverb, room size and bass, export MP3/WAV.Stereo to Mono ConverterMix stereo audio to mono, extract the left or right channel, or swap channels. WAV or MP3.Tab Audio RecorderRecord audio from a browser tab or your system, mix in the mic, save WebM, WAV or MP3.WMA to MP3Convert WMA files to MP3 at 128-320 kbps or VBR, keeping tags. Batch convert, no upload.LUFS MeterMeasure integrated LUFS, true peak and loudness range of a song or video against Spotify and YouTube targets.MIDI to MP3Render MIDI files to MP3 with General MIDI SoundFont instruments, tempo, transpose and reverb.Online Audio EditorEdit audio in your browser: cut, copy, paste, fade, normalize, effects, markers, undo. Export MP3/WAV.Online Audio MasteringMaster songs automatically to -14 or -9 LUFS with EQ, multiband compression and a true-peak limiter.Podcast Audio EnhancerOne-click voice cleanup: noise reduction, de-ess, EQ, compression and -16 LUFS loudness.Subwoofer Box CalculatorSealed or ported sub box volume, port length for a tuning frequency and a panel cut list.Baby Monitor (Sound Alert)Turn a spare phone or laptop into a sound-activated baby monitor with alerts and a wake-up log.Dog Training ClickerOnline dog clicker: tap the big button for a crisp click, adjust tone and volume, time treats and sessions.Speaker Impedance CalculatorTotal ohms for 2-8 speakers in series, parallel or series-parallel, with amp check and diagram.8-Bit Sound Effect GeneratorMake retro game sounds: coin, jump, laser, explosion, power-up. Tweak, mutate and export WAV.Add Reverb to AudioAdd room, hall, plate or cathedral reverb to any audio file, preview live, export WAV or MP3.Audio Effects StudioAdd chorus, flanger, phaser, tremolo, distortion and bitcrusher effects to audio. Export WAV/MP3.Audio Translator to EnglishTranslate speech in audio or video files from 90+ languages into English text, with SRT export.Add Background Music to VoiceMix a voice recording with background music: auto-ducking, intro/outro, fades, loudness, MP3.Speaker Crossover CalculatorPassive 2-way and 3-way crossover capacitor and inductor values, 1st to 4th order.
See all 99 Audio Converters & Editors →