MIDI Type 0 vs Type 1: what changes and which to use
Both types play the same notes: Type 0 keeps every channel in one track, and Type 1 gives each part its own track.
Short answer
MIDI Type 0 (Format 0) puts all notes, tempo changes and lyrics into one track. Up to 16 instruments stay separate on channels 1 to 16. MIDI Type 1 (Format 1) stores a tempo track plus one named track per part. Your keyboard’s manual lists the formats it plays: if it lists only Format 0 (often written SMF 0), save as Type 0. Pick Type 1 for DAWs and notation apps, so each part opens on its own track.
What actually changes inside the .mid file
Every Standard MIDI File starts with a 14-byte MThd header chunk. Bytes 8–9 hold the format code (00 00 or 00 01) and bytes 10–11 hold the number of MTrk track chunks.
| Detail | Type 0 (Format 0) | Type 1 (Format 1) |
|---|---|---|
| Header bytes 8–11 | 00 00 00 01 (format 0, always 1 track) |
00 01 00 nn (format 1, nn simultaneous tracks) |
| MIDI channels | All 16 channels interleaved in one stream | All 16 channels, usually one part per track |
| Tempo and time-signature map | Inside the single track | In Track 1 (the conductor track, with 0 notes) |
Track names (Piano, Lead Vocal) |
One track, so part names no longer name tracks (they can stay in the file as text) | Each track keeps its own FF 03 name |
| Two parts sharing one channel | Merged into one part | Kept separate (for example left hand and right hand both on channel 1) |
| Pick it for | Devices whose manual asks for Format 0 | DAWs, notation software, editing each part |
Type 0 is the simpler file to play: every event is already in one time-ordered list. A Type 1 player has to merge several tracks as it plays.
Worked example: converting Type 1 to Type 0 and back
Open the MIDI File Inspector, click Try an example to load demo-song.mid, and click Fix all so drums move to channel 10:
- In Format 1 (tracks): the header bytes read
4D 54 68 64 00 00 00 06 00 01 00 05 01 E0. The file is 7,052 bytes: 5 tracks, 480 PPQ, 793 notes, 1:14.7 long. Track 1 holds the tempo map (120 BPM, then 90 BPM at bar 33), while Tracks 2–5 are namedPiano,Bass,StringsandDrums. - Convert to Type 0: next to Save as, choose Format 0 (one track) and click Download fixed MIDI. All 5 tracks merge into 1 track holding 1,612 events across channels 1, 2, 3 and 10. The file shrinks to 6,680 bytes with header
4D 54 68 64 00 00 00 06 00 00 00 01 01 E0. The Events tab lists 1,613, counting the end-of-track marker. - Split Type 0 back to Type 1: reopen that 6,680-byte file and save as Format 1 (tracks) (7,177 bytes). Track 1 keeps the tempo map. Each channel gets its own track, named after its channel and General MIDI instrument (table below).
Every note, velocity, program change, drum hit and tempo change survived the round trip. The part names did not come back as track names. Format 0 has one track, so the names stay in the file as text but no longer name tracks:
| Track | Fixed Format 1 (7,052 B) | Merged Format 0 (6,680 B) | Re-split Format 1 (7,177 B) | Notes |
|---|---|---|---|---|
| 1 | Demo song (conductor) | Demo song (all 1,612 events, plus end-of-track) | Demo song (conductor) | 0 |
| 2 | Piano (ch 1) | Merged into Track 1 (ch 1) | Channel 1: Acoustic Grand Piano | 207 |
| 3 | Bass (ch 2) | Merged into Track 1 (ch 2) | Channel 2: Electric Bass (finger) | 117 |
| 4 | Strings (ch 3) | Merged into Track 1 (ch 3) | Channel 3: String Ensemble 1 | 81 |
| 5 | Drums (ch 10) | Merged into Track 1 (ch 10) | Channel 10: Drums | 388 |
The Drum Pattern Maker also saves its beats as Format 0 or Format 1.
Common mistakes when converting MIDI formats
- Thinking Type 0 forces all parts onto one instrument. Tracks and channels are separate concepts. Each Note On and Program Change carries its own 4-bit channel number, so piano, bass and drums stay distinct inside one Type 0 track.
- Merging two tracks that share channel 1 before finishing edits. If the melody and the piano chords both use channel 1, Type 0 merges them into one part. Splitting the file by channel later gives them back as one track. Keep a Type 1 copy, or give each part its own channel first.
- Putting tempo changes on a later track in Type 1. Standard MIDI Files place Type 1 tempo and meter meta events in Track 1 so every player reads one conductor map.
When neither Type 0 nor a 16-channel Type 1 file fits
MIDI Format 2 holds a set of independent single-track patterns rather than one song. If a program asks for it, check its manual; the inspector saves a Format 2 file as Format 2. A status byte addresses only 16 channels. For more than 16 parts at once, a file can use the Device Name meta event to address more than one device. The MIDI Association’s Standard MIDI Files page lists it as a later addition.
Sources
- The MIDI Association: Standard MIDI Files. The format codes 0, 1 and 2, the tempo map in the first track and the
MTrkchunks are in its specification (RP-001). Members can download it there; the page also lists the Device Name meta event. - The MIDI Association: General MIDI Level 1, for the specification (RP-003) behind the 16 channels and program numbers.
Spotted a mistake in this guide? Email contact@fasttool.app. We reply within 7 business days.