Music Software Development

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:

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:

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.