Free online

YouTube to MIDI Converter

Turn the music in a YouTube video into a MIDI file, in your browser. Record the tab the video is playing in — no download, no extension — or drop the audio, and a neural network transcribes it: any instrument, chords included, with a piano roll you can play back before you save. Nothing is uploaded, and nothing is fetched from YouTube.

  • 12audio and video formats, or record the tab
  • Any instrument, chords included
  • Runs in your browser — nothing uploaded, nothing downloaded from YouTube
How it works

Record from a tab

Play the video in another tab, record it here

No download, no extension. Your browser records the audio of the tab you choose, on your machine, and hands it to the converter below.

  1. Open the YouTube video in another tab and pause it at the start.
  2. Press Record here, pick that tab in the dialog, and tick “Share tab audio”.
  3. Switch to the video, press play, and come back when it is done. Press Stop.

Keep the video tab audible: the recording is what your browser hears from that tab, at full quality.

or drop an audio file into the converter ↓

Drop an audio file here

or choose a file

MP3, WAV, M4A, AAC, FLAC, AIFF, OGG — and the audio inside MP4 or MOV

Your file never leaves this browser. Nothing is uploaded.

Advertisement
  • Nothing is uploaded The recorder and the model run on your own machine. Your audio never touches a server.
  • Nothing fetched from YouTube This site does not download videos. The recording is what your browser is already playing, captured by your browser.
  • Free, no account No signup, no credits, no length cap, no watermark on the file you download.

From the video to a MIDI file without leaving the browser

Record the tab or drop the audio, then hear the transcription, tune it, and download the MIDI — all on your own machine.

Record the tab — no download, no extension

Every other way of getting from a YouTube video to a MIDI file starts with a download: a converter site, a browser extension, a desktop app. This one uses your browser's own screen-share audio. Press Record, pick the tab the video is playing in, tick "share tab audio", play the video, come back and press Stop. Your browser records what it was already playing, at full quality, on your machine, and hands it straight to the converter. Chrome and Edge on a desktop; on other browsers, drop the audio file instead.

  • Any instrument, chords included

    The transcription model is Spotify's Basic Pitch: instrument-agnostic and polyphonic, so a piano cover, a guitar tutorial, a string quartet or a synth line all come out as notes — and chords stay chords. Pick what is in the recording and the note range and sensitivity follow.

  • Hear it before you save it

    The transcription is drawn as a piano roll you can play back next to the original. The audio is analysed once; every setting after that re-picks the notes in milliseconds, so you can drag the sensitivity slider and hear the difference instead of guessing at it.

  • Tempo, quantise, pitch bends

    The tempo is detected from the note onsets and becomes the MIDI file's tempo; snap notes to a grid of your choosing; keep or discard pitch bends. The MIDI opens in any DAW, notation program or our own player.

  • Or drop the audio

    If you have the audio already — an MP3 from a legitimate download, a screen recording, a video file — drop it in. MP3, WAV, M4A, AAC, FLAC, AIFF, OGG and the audio inside MP4 or MOV all work.

  • No length cap

    A thirty-second riff or a nine-minute piece. There is no clip limit and no trial; longer recordings simply take longer to analyse.

From YouTube to MIDI in three steps

  1. Play the video in another tab, record it here

    Open the video in a second tab and pause it at the start. Press Record on this page, choose that tab in the browser's dialog and tick "share tab audio". Play the video; when it ends, press Stop. Or skip all that and drop an audio file.

  2. Say what is in it

    Piano, guitar, bass, voice — or leave it on Anything. The choice sets the note range and how strictly notes are picked out, and it can be changed after the fact.

  3. Listen, adjust, download

    Play the transcription against the original, move the sensitivity until it sounds right, snap to a grid if you like, and download the MIDI. Then play it or turn it into sheet music.

Looking for something different?

This page gets the audio out of a YouTube video and transcribes it. If you already have the audio as a file, or a MIDI file, start somewhere else.

  • You already have an audio file

    The same converter, without the tab recorder: drop an MP3, WAV, M4A, FLAC, AIFF, OGG or video.

  • You already have a MIDI file

    Play it with real instruments, render it to MP3 or WAV, or read it as notation.

How the transcription works

Spotify’s Basic Pitch, running on your own machine; the tab recorder is your browser’s own screen-share audio.

The tab recorder

The browser's screen-capture API (getDisplayMedia) with audio. When you choose a tab and tick "share tab audio", the browser gives this page a live audio stream of that tab — the same signal it sends to your speakers, before any compression — and MediaRecorder writes it to an Opus file at 192 kbit/s. The video track is stopped the moment it arrives; nothing visual is recorded. Stopping the share from the browser's own bar ends the recording too.

API
getDisplayMedia + MediaRecorder (Opus in WebM)
Works in
Chrome, Edge and other Chromium browsers on desktop
Not available in
Firefox, Safari, and phones — they do not expose tab audio; use the file path
Leaves your machine
Nothing

The model

Basic Pitch, an open-source transcription model published by Spotify under the Apache 2.0 licence. It is small and instrument-agnostic by design: rather than learning one instrument in detail, it predicts three things for every 11-millisecond frame of audio — which pitches are sounding, which are starting, and where the pitch sits between the semitones.

Model
Spotify Basic Pitch
Download
917 KB, fetched once
Note range
A0 to C8
Polyphony
Unlimited

Where it runs

Everything happens in this tab. The audio is decoded by the browser, downmixed to mono and resampled to 22.05 kHz, then passed through the model using WebGL on your graphics hardware. The first conversion after opening the page is slower than the ones after it — your browser compiles the shader programs the model runs on, once; that work starts as soon as you press Record or choose a file.

What it is not good at

Worth knowing before you judge a result. Drums and percussion have no pitch to transcribe. Dense mixes with vocals, guitars and keys on top of each other come out as an approximation of the loudest lines. A solo instrument, a piano cover or a tutorial video gives the cleanest transcription — which is most of what people convert from YouTube.

Frequently asked

How do I convert a YouTube video to MIDI?

In Chrome or Edge on a desktop, without downloading anything:

  1. Open the video in another tab and pause it at the start.
  2. Press Record on this page, pick that tab in the dialog and tick "Share tab audio".
  3. Play the video. When it ends, come back and press Stop — the recording goes straight into the converter.
  4. Press Convert, listen to the transcription, adjust, and download the MIDI.
Does this tool download from YouTube?

No. It never contacts YouTube. The tab recorder captures what your own browser is already playing, on your own machine, using the same screen-share feature you would use in a video call. If you prefer, you can drop an audio file you already have.

Is it legal to convert a YouTube video to MIDI?

It depends on the content and what you do with the result, not on the tool. Transcribing music you have the rights to, or for private study, is generally fine; publishing or selling a transcription of someone else's copyrighted song is not. YouTube's terms of service also restrict how its content may be used. When in doubt, use the transcription for practice and learning.

Why can't I record the tab in Firefox or Safari, or on my phone?

Those browsers do not let a page capture another tab's audio. On them, and on phones, use the second path: get the audio as a file and drop it into the converter. The transcription itself works everywhere.

The recording is silent. What went wrong?

Almost always the "Share tab audio" box in the browser's dialog was not ticked, or a window or screen was shared instead of a tab — only tabs carry audio. Press Record again, choose the tab itself, and tick the box. Muting the video tab also mutes the recording.

How accurate is the conversion?

Very good on a solo instrument or a piano cover, decent on a small ensemble, approximate on a dense mix with vocals. It is a transcription, not a recovery — there is no exact answer hidden in an MP3 — so treat the result as a first draft, listen to it here, and nudge the sensitivity until it matches what you hear.

Can I convert a YouTube piano tutorial to MIDI?

Yes, and tutorials are among the best sources: one instrument, clearly played, usually without a backing track. Choose "Piano or keys" as the source and the note range and sensitivity are set for it.

Can it convert songs with vocals?

It will transcribe the pitched content it can pick out, and a sung melody often comes through well; but a full mix — vocals over guitars over keys — comes out as an approximation of the loudest lines. Choose "Voice or solo melody" for a vocal line.

What audio formats can I drop in?

MP3, WAV, M4A, AAC, FLAC, AIFF and OGG, plus the audio inside MP4, MOV and WebM video files — including a screen recording you made yourself.

Is there a length limit?

No. A nine-minute piece is fine; it takes proportionally longer to analyse. Very long recordings are easier to work with if you record just the section you want.

Is my recording uploaded anywhere?

No. The recorder, the model and the piano roll all run inside this browser tab. The only download is the 917 KB model, which your browser caches.

How long does it take?

The first conversion after opening the page includes compiling the model's shaders, which can take a while on integrated graphics; that starts as soon as you press Record or pick a file, so most of it is done by the time you press Convert. After that a three-minute recording analyses in a few seconds on a desktop with graphics acceleration.

What can I do with the MIDI file?

Open it in any DAW or notation program, play it here with real instruments, turn it into sheet music, or render it back to audio with a different instrument.

Does it work on a phone?

The converter does — drop an audio file and it transcribes on the phone, more slowly. The tab recorder does not: mobile browsers do not expose tab audio.