MIDI to MusicXML converter
Open a Standard MIDI File to get a MusicXML score you can open in MuseScore, Finale, Sibelius, Dorico, Flat or any other notation program. The file is converted by this page on your device and never uploaded.
Converter
Or drag a file onto this box, or try a sample:
Result
| Part | MIDI channel | Notes | Voices |
|---|
Preview the MusicXML
Why MIDI does not convert to notation perfectly
A MIDI file records a performance: which key went down, when, and for how long, in ticks. Sheet music records decisions a MIDI file does not contain: note values, rests, voices, ties, enharmonic spelling and where beams go. A converter has to make those decisions, so every MIDI-to-notation tool, including the importers in MuseScore and Sibelius, produces a score you will want to tidy. This one makes them in a predictable way:
- Quantizing. Note starts and ends are rounded to the nearest grid step. A sixteenth-note grid suits most music; choose eighth notes for a played-in file with loose timing, or 32nd notes for fast runs. Triplets are rounded to the straight grid.
- Chords and voices. Notes that start and end together become one chord. A note that overlaps another without lining up, such as a held bass note under a moving melody, goes into a second voice, up to four per part. Voices after the first are written after a
<backup>, the way MusicXML layers voices. - Note values. Lengths are split at barlines and into printable values (whole, half, quarter and so on, with dots), joined by ties.
- Spelling. If the file has a key signature event with flats, black keys are written as flats; otherwise as sharps. The clef is chosen from the part's range.
- Parts. A format 1 file gives one part per track, named from the track name. A format 0 file gives one part per channel, named from its General MIDI program. Channel 10 becomes a drum part with a percussion clef and a General MIDI drum sound for each note, so it plays back correctly.
- Meta events. Time signatures (and changes, at the next barline), the first key signature and every tempo change are written into the score, with a metronome mark and a
<sound tempo>for playback.
Getting a cleaner score
Start from a quantized file if you can: a MIDI file exported from a DAW's piano roll converts far better than a live recording. Look at the file in the MIDI file analyzer first to see its tracks, channels and time signature. If a single-track file holds a whole band, the MIDI format converter can split it into one track per channel. Piano music arrives on one staff; notation programs can split it across a grand staff (in MuseScore, select the part and use Tools → Explode, or set the part to piano and move notes between staves).
Opening the file
MuseScore, Finale, Sibelius, Dorico, Notion, Flat and Noteflight all import uncompressed .musicxml files: use File → Open or File → Import. The output is MusicXML 4.0 score-partwise, the layout described in MusicXML basics. To go the other way, convert a score back with the MusicXML to MIDI converter. The conversion code is a tested module, midi-to-musicxml-core.mjs, built on the functions explained in the MusicXML tutorial.