What is MusicXML?

MusicXML is an open file format for written music. It describes a score the way a musician reads it — notes, rests, clefs, key and time signatures, beams, slurs, dynamics, lyrics and layout — so that one notation program can save a score and another can open it and keep almost everything intact.

Free to use. Preview instantly — a free account (email link, no password) unlocks the full score.

MusicXML in one paragraph

MusicXML was created in the early 2000s by Michael Good at Recordare as an interchange format for notation software, and has since become the standard way to move sheet music between programs. It is now developed in the open by the W3C Music Notation Community Group; version 4.0 was released in 2021. Practically every serious notation, scanning and music-education app can read it, which is why it is the format people ask for when they say "I want my score in an editable form".

What is inside a MusicXML file

A MusicXML file is plain text in XML, organised by part and measure. A single middle C quarter note looks roughly like <note><pitch><step>C</step><octave>4</octave></pitch><type>quarter</type></note>. Because it is text, it is verbose but easy for software to process, check and convert. Around those notes it records:

.musicxml, .mxl and .xml

ExtensionWhat it isWhen you will see it
.musicxmlUncompressed MusicXML textThe recommended extension for plain files today
.mxlCompressed MusicXML — a zip archive containing the XML (and sometimes images)The most common download format; much smaller files
.xmlUncompressed MusicXML with a generic extensionOlder files and older software

All three hold the same kind of information. If an app refuses one, try the other: most programs can both open and save compressed and uncompressed versions.

MusicXML vs MIDI vs PDF

These three formats are often confused because they can all represent "the same piece". They describe very different things.

MusicXMLMIDIPDF
What it storesThe written score: symbols and their meaningA performance: which keys are pressed, when, how hardA picture of the printed page
Can a notation app edit it?Yes, with spelling, beams and markings intactYes, but notation must be guessed from timingsNo — it must be recognised first (OMR)
Can it be played back?Yes, by software that reads itYes, by almost anythingNo
Keeps lyrics, dynamics, articulationYesPartly (as performance data), lyrics rarelyVisually only
Best forSharing and editing scores between appsDAWs, synthesizers, backing tracksPrinting and reading

A useful rule: if you want to edit or re-engrave the notation, ask for MusicXML. If you want to play it on a synthesizer or in a DAW, MIDI is fine. If you only want to read or print, PDF is all you need. MIDI cannot tell an F♯ from a G♭, knows nothing of beams or slurs, and turns a carefully notated score into something that often needs heavy cleanup when imported back into notation software.

Which apps open MusicXML

Support is close to universal among notation and education tools. Commonly used options include:

Fidelity varies: notes and rhythms transfer reliably, while fine layout and some special symbols can shift between programs. Expect to tidy up spacing after an import.

When you need MusicXML — and when you do not

You need MusicXML when the notation itself has to change or move. Typical reasons:

You do not need it if you only want to hear a piece or practise along with it. A score player can recognise a PDF and play it directly, without you ever handling a file.

Opening a MusicXML file

Double-clicking usually opens it in whichever notation program is installed. If it opens in a text editor or browser instead and you see lines of tags, it is an uncompressed file — open your notation program first and use its Open or Import command. If a download ends in .zip, it may be a renamed .mxl; try opening it directly in your notation app before unzipping.

How to get MusicXML from a PDF

Because a PDF is a picture, converting it to MusicXML requires optical music recognition. Your options, roughly from free to paid:

  1. Audiveris — a free, open-source desktop OMR program that exports .mxl. Powerful but technical; see running Audiveris online.
  2. MuseScore Studio's PDF import — free; sends the PDF to an online Audiveris-based service and opens the result for editing. See our notes on it.
  3. Commercial OMR — PlayScore 2 (MusicXML export in its Professional tier), ScanScore, SmartScore, Soundslice and others, priced differently at the time of writing.
  4. Musaica — see below.

Whichever you choose, check the result against the original. OMR is excellent on clean printed music and weaker on handwriting, dense pages, grace notes, tuplets and lyrics, as our scanning guide explains.

How Musaica uses MusicXML

Musaica is a free online sheet music reader. When you upload a PDF or photo, it recognises the notation with Audiveris and stores the result as MusicXML; that MusicXML is what is engraved on screen with OpenSheetMusicDisplay and played back in your browser. Reading and playing scores is free with ads. Downloading the MusicXML file is part of the paid plan, Musaica Basic ($5.99/month), which also removes ads and adds Smart Playback, Band Mode and HD audio renders. Musaica does not export MIDI; if you need MIDI, open the MusicXML in a notation program and export it from there. More detail is on our PDF to MusicXML page.

Frequently asked questions

What is the difference between .mxl and .musicxml?

.musicxml is plain, uncompressed MusicXML text; .mxl is the same content compressed into a zip archive. Both hold the same score and most apps open both.

Is MusicXML better than MIDI?

For notation, yes: MusicXML keeps note spelling, beams, slurs, dynamics, lyrics and layout. MIDI stores a performance and is better for synthesizers and DAWs. They serve different purposes.

Can MuseScore open MusicXML?

Yes. MuseScore Studio opens and saves both .musicxml and .mxl files, and is free.

How do I convert a PDF to MusicXML for free?

Use an optical music recognition tool. Audiveris is free and open source, and MuseScore Studio’s PDF import is free. Expect to correct some errors on complex scores.

Does Musaica export MusicXML for free?

No. Reading and playing scores in Musaica is free, but MusicXML export is part of the paid Musaica Basic plan. Musaica does not export MIDI.

Hear your sheet music now

Upload a PDF or a photo and press play. It runs in your browser — nothing to install.

Open the free sheet music reader

Last updated