MIDIPLAYER ONLINE
← Back to MIDI Player Online

Mary Had a Little Lamb

Sarah Josepha Hale (1830) · Traditional childhood song
Key C major Tempo 100 BPM Duration 19.2s Melody 26 notes
0:00
◇ 26 notes · 19.2s · plays in your browser — no upload, no account, 100% local

About Mary Had a Little Lamb

Mary Had a Little Lamb is one of the most beloved public-domain melodies available to play online. Mary Had a Little Lamb is one of the most famous nursery rhymes in the English language. The poem was written by Sarah Josepha Hale in 1830 and published in Boston. It was inspired by a real incident: Mary Sawyer, a young girl from Sterling, Massachusetts, who brought her pet lamb to school. The melody was composed by Lowell Mason in 1831. The rhyme has become a cultural touchstone — it was the first phrase Thomas Edison recorded on his phonograph in 1877.

As a public-domain composition, Mary Had a Little Lamb can be freely performed, arranged, and studied by musicians of all levels. The melody has endured for generations because of its memorable contour and emotional resonance.

Musical structure and analysis

This arrangement is written in C major at 100 BPM. The melody is in C major with a simple, descending contour. The form is a four-phrase structure: the first phrase descends from E to C ("Mary had a little lamb"), the second repeats the descent, the third ascends ("its fleece was white as snow"), and the fourth returns to the opening pattern. The narrow range (E4 down to C4 and back) makes it ideal for beginners.

Difficulty level and practice tips

Absolute beginner. The melody uses only three notes (E, D, C) for the first phrase, making it one of the simplest melodies ever written. The rhythm is simple quarter notes. This is often the very first piece taught on piano, recorder, and xylophone.

This is the ideal first piece for any instrument. The three-note pattern (E–D–C) should be played with even tone and steady rhythm. Once comfortable, try playing the melody starting on different notes to explore different keys. The song is excellent for building confidence in new players.

Did you know?

Mary Had a Little Lamb was the first words ever recorded on a phonograph. In 1877, Thomas Edison recited the nursery rhyme into his tinfoil phonograph as a test. The recording was lost, but Edison later recalled: "It was a triumph with myself, but I was always afraid it would be a failure with others."

Play Mary Had a Little Lamb in MIDI Player Online

The demo above plays the single-line MIDI arrangement of Mary Had a Little Lamb — 26 notes in C major at 100 BPM, generated from the same melody.mid you can download. Use "Open in piano roll" to load it into the main Online MIDI Player for note-by-note visualization, adjustable tempo and A/B practice looping. Everything runs locally in your browser — no upload, no account, no install required. You can also browse our collection of 50 public-domain songs and the Public Domain MIDI. For the file itself: MIDI viewer, online MIDI keyboard, MIDI to MP3 — all in the browser, nothing uploaded.

Frequently asked questions

Can I play Mary Had a Little Lamb online in my browser?

Yes. Use the demo player above to hear this public-domain Traditional childhood song melody instantly, or drop your own MIDI file into the MIDI Player Online tool for full piano-roll playback, tempo control and A/B practice looping. Everything runs locally in your browser — no upload, account or install.

Who composed Mary Had a Little Lamb?

Mary Had a Little Lamb is Sarah Josepha Hale (1830) (Traditional childhood song). It is in the public domain, so it can be freely arranged, performed and used.

What key is Mary Had a Little Lamb usually played in?

This arrangement is written in C major. The demo above uses that key so you can hear the melody as traditionally performed.

Is a MIDI file version of Mary Had a Little Lamb available?

Yes — a free single-track .mid of the melody above is generated from the same note data the demo plays: 26 notes, C major, 100 BPM. "Open in piano roll" loads it into the main player, or download it and drop it into any DAW or sequencer.