MIDI file analyzer
Open a Standard MIDI File to see how it is built: its format, timing resolution, tempo map, tracks and channels, and a searchable list of every event with its byte position. The file is read and decoded by this page on your device. It is never uploaded.
You can also drag a file onto this box.
Summary
Tracks
| Track | Name | Events | Notes | Channels | Programs (as stored, 0–127) | Bytes |
|---|
Channels
Channels are shown as 1–16, the way instruments and DAWs label them. Inside the file the same channels are stored as the numbers 0–15.
| Channel | Events | Notes | Note range | Programs (General MIDI names) |
|---|
Event inspector
| Track | Tick | Delta | Time (s) | Byte offset | Type | Channel | Details |
|---|
No MIDI file at hand? Try the downloads on the MIDI test files page, or listen to a file in the MIDI player with piano roll.
Format 0, 1 and 2
The header chunk states one of three layouts. A format 0 file has a single track and every channel lives in it, which is what simple hardware and ringtone players expect. Format 1, the usual export from a DAW, holds several tracks that start together; by convention the first track is a "conductor" track with the tempo and time signature changes. Format 2 is rare: each track is a separate pattern with its own timing. The byte layout of the header and track chunks is covered step by step in the MIDI file format guide.
Ticks, seconds and the tempo map
Events are not stamped with seconds. Each one stores a delta: the number of ticks since the previous event in the same track. The header says how many ticks make a quarter note, and Set Tempo events say how many microseconds a quarter note lasts from that point on. To place an event in time you add up the deltas to get an absolute tick, then walk through the tempo changes before it, converting each stretch at its own speed. That list of changes is the tempo map, and it is why the Time column above can grow unevenly while the Tick column grows steadily. Files that use SMPTE division skip all of this: their ticks are fixed fractions of a second. The music data structures guide shows how to store notes and tempo changes so this conversion stays cheap.
Why channel numbers look off by one
A channel message keeps its channel in the low four bits of the status byte, so the stored value runs from 0 to 15. People and instruments count channels from 1 to 16. Both describe the same channel: stored 9 is channel 10, the General MIDI drum channel. Program numbers have the same split: files store 0–127 while many instrument lists print 1–128, which is why this page shows the stored number next to the General MIDI name. The MIDI messages guide breaks down every status byte. If a file opens here but behaves strangely in your software, the MIDI troubleshooting guide lists common causes.