Introduction
A MOD file, or module, is a song for a tracker, the music programs that began on the Commodore Amiga in 1987. It carries its own short 8-bit samples and a set of patterns: grids of 64 rows that say which sample to play on each channel, at what pitch and with what effect. An order list says in which order the patterns are played. Because the sounds travel with the notes, a module sounds the same on every machine that plays it, which made the format popular for games, demos and the early internet music scene.
No company owns the format and no specification was ever published. It began with
Ultimate Soundtracker, by Karsten Obarski for EAS Computer Technik, and was carried on
by a long line of trackers: the Soundtracker versions that followed it, NoiseTracker,
ProTracker, StarTrekker, then FastTracker and other PC trackers, and OpenMPT and the
ProTracker 2 clone today. What is known comes from their players’ source code and from
community write-ups. The media types in use are audio/mod and
audio/x-mod.
Versions that only add share a format; a version that changes existing structures is a separate format. Most trackers only added to the module, with new effects, a finetune in a byte that had been zero, or new signatures, so most modules are one format. Four layouts differ in what is already there: the number of sample headers, the size of a pattern row, or what a stored pattern holds. Each is described here as a format of its own, with its own reference. ProTracker 3.6 also put modules in an IFF wrapper, the fifth entry below.
A .mod file dropped on any page of this site opens in the explorer,
which shows its structure byte by byte, the samples, the order list and every
pattern note by note, and plays the song as ProTracker plays it.
Variations
| Format | Variation | About | Open |
|---|---|---|---|
.MOD | ProTracker module (M.K.) | 31 samples and 4 channels, marked M.K. at offset 1080: the standard Amiga module. | Open |
.MOD | Multichannel module (xCHN, xxCH) | 31 samples and any channel count other than 4, marked 6CHN, 8CHN, 16CH and so on. | Open |
.MOD | StarTrekker 8-channel module (FLT8) | StarTrekker’s 8 channels, each pattern stored as two 4-channel patterns. | Open |
.MOD | Soundtracker module (15 samples) | The first modules, 1987 to 1989: 15 samples, a 600-byte header and no signature. | Open |
.MOD | ProTracker 3.6 module (IFF) | An IFF wrapper around a module, with version, song information and a comment. | Open |
A 31-sample module has a four-byte signature at offset 1080, such as
M.K., 8CHN or FLT8, which says how many
channels it has and so how its patterns are laid out. The oldest modules, with 15
samples, have no signature: they are recognised by a header that makes sense, and by
the file’s name. All numbers in every layout are big-endian, in the order of the
Amiga’s 68000 processor.
ProTracker module (M.K.)
The standard Amiga module, from 1989 on: 31 samples and 4 channels. A 1,084-byte
header holds the title, 31 sample headers, the song length, a restart byte, the
128-entry order table and the signature; 1,024-byte patterns follow, then the sample
data. NoiseTracker and ProTracker made it the standard, and almost every tracker
since reads and writes it. Later versions only added to it: the restart byte, the
finetune, the E effects and the M!K! signature for more than 64
patterns.
The four bytes at 1080 are M.K. (4D 2E 4B 2E) or another
4-channel signature: M!K!, FLT4, EXO4,
4CHN and a few rarer ones.
Multichannel module (xCHN, xxCH)
The same header with more or fewer channels, from 1 to 99 other than 4, as PC trackers such as FastTracker and some Atari trackers wrote it. A pattern row holds one 4-byte cell for each channel, so a row is 4 bytes times the channel count and a pattern 256 bytes times it: an 8-channel pattern is 2,048 bytes. A reader that assumes 4 channels reads every pattern wrongly.
The four bytes at 1080 give the channel count: a digit and CHN
(6CHN, 8CHN), two digits and CH or
CN (10CH to 99CH, as OpenMPT accepts them),
TDZ1 to TDZ9, CD81, CD61,
OKTA, OCTA, FA05 to FA08,
WARD and 8\0\0\0, for any count other than 4.
StarTrekker 8-channel module (FLT8)
StarTrekker’s 8-channel modules, from 1990. The header is the same, but each 8-channel pattern is stored as two ordinary 4-channel patterns: an even-numbered one for channels 1 to 4 and the next one for channels 5 to 8. The order table names the even pattern of each pair. A multichannel reader would take each pair for two 8-channel patterns and play nonsense.
The four bytes at 1080 are FLT8 (46 4C 54 38) or
EXO8.
Soundtracker module (15 samples)
The first modules, from Ultimate Soundtracker and the Soundtrackers that followed it, 1987 to 1989. The header has only 15 sample headers, so it is 600 bytes long and everything after offset 470 sits at a different place; the byte after the song length is a tempo, not a restart position, and the loop start is counted in bytes rather than words.
There is no signature. A file named .mod, .stk or
mod.-something whose 15-sample header holds sensible values (volumes of
64 or less, a song length of 1 to 128, pattern numbers below 64, text in the names)
is read as this format.
ProTracker 3.6 module (IFF)
From ProTracker 3.59 a module could be saved inside an IFF file. The file starts
FORM, a size and MODL; chunks follow, for the version, song
information and comment, and PTDT holds an ordinary module whole.
Rarer signatures
A few more signatures appear at 1080. OpenMPT records them and the explorer reads them all, within the formats above:
- Digital Tracker on the Atari Falcon wrote
FA04toFA08: the digit is the channel count, and four more bytes (00 40 00 00, which do nothing) follow the signature, so the patterns start at 1088 rather than 1084. - His Master’s Noise (1991), the successor to NoiseTracker, wrote
M&K!andFEST: 4 channels, NoiseTracker’s effects with7xyas a mega arpeggio, and synth instruments stored in patterns (see His Master’s Noise). - Mod’s Grave wrote
.wowfiles, which are 8 channels behind an ordinaryM.K.. They are told by the size: finetunes all 0, every sample with data at volume 64, a restart byte of 0, and a file exactly the length of 8-channel patterns (libxmp’s rule). - Inconexia, a demo by Iguana, uses
M\0\0\0(4 channels) and8\0\0\0(8), three zero bytes after the letter or digit, with the sample data delta-coded: each byte is a change from the last value. .M.Kmarks a hacked DMF from the game Apocalypse Abyss: each pair of bytes in the header and the first pattern is swapped, as the signature itself shows, while the other patterns and the samples are as usual.WARDmarks theMUSIC*.DTAfiles of the DOS game Aleshar: an ordinary 8-channel layout.
Whatever the signature, a 31-sample module saved by ModPlug Tracker may have its
samples packed with ModPlug’s 4-bit ADPCM: a sample’s data then starts with the
letters ADPCM, then a table of 16 steps and two codes a byte (see
ADPCM-packed samples). The
explorer unpacks them.
FastTracker 2’s XM is a separate format.
Versions
The releases that mattered for the files, with the format each one saves. Dates are from the Tracker History project, which takes them from the programs’ files and documents, some of them approximate, unless another source is given.
| Date | Release | What changed | Format |
|---|---|---|---|
| August 1987 | Ultimate Soundtracker 1.0, Karsten Obarski (EAS Computer Technik) | The first modules: 15 samples, 4 channels, effects 1 (arpeggio) and 2 (pitch bend). Wikipedia dates the commercial release to December 1987. | Soundtracker |
| December 1987 | Ultimate Soundtracker 1.21 | A German keyboard map | Soundtracker |
| March 1988 | TJC Soundtracker II, The Exterminator (Mark Langerak) | C set volume, D and E volume slides, tempo changes during play | Soundtracker |
| March 1988 | Soundtracker III, Il Scuro (Ron Birk) of Defjam | Effect F, set speed | Soundtracker |
| April 1988 | Ultimate Soundtracker 1.8 | A CIA timer tempo, kept in the byte after the song length | Soundtracker |
| July 1988 | D.O.C. Soundtracker IX, Unknown of D.O.C. (Michael Kleps) | The word “module”; effects 0, 1, 2, C, E and F; the CIA tempo back | Soundtracker |
| July 1988 | Master Soundtracker 1.0, Tip of The New Masters (Armin Sander) | Samples of up to 32 KB | Soundtracker |
| August 1988 | D.O.C. Soundtracker 2.0, Unknown of D.O.C. | Effects B (position jump) and D (pattern break) | Soundtracker |
| October to November 1988 | Ultimate Soundtracker 2.0 | The last official version (Wikipedia: November 1988) | Soundtracker |
| December 1988 | D.O.C. Soundtracker 2.2, Unknown of D.O.C. | 31 instruments announced | Soundtracker or M.K. (disputed, see below) |
| April 1989 | Soundtracker 2.3, MnemoTroN | 31 instruments and the M.K. signature | M.K. |
| July 1989 | Soundtracker 2.4, MnemoTroN | A replay routine by Mahoney & Kaktus | M.K. |
| August 1989 | NoiseTracker 1.0, Mahoney & Kaktus (Pex Tufvesson and Anders Berkeman) | Vibrato and tone portamento; speeds up to 31 | M.K. |
| August 1989 | Soundtracker 2.5, MnemoTroN | The loop start counted in words | M.K. |
| 1990 | NoiseTracker 1.1, Mahoney & Kaktus | The restart byte | M.K. |
| May 1990 | ProTracker 1.0, Lars “ZAP” Hamre (Amiga Freelancers) | CIA tempo set with F20 and above; the E effects. Another source gives October 1990. | M.K. |
| 1 July 1990 | NoiseTracker 2.0, Mahoney & Kaktus | Wikipedia gives April 1990 | M.K. |
| 14 July 1990 | StarTrekker 1.0, Bjørn Wesen (Exolon of Fairlight) | 8 channels and the FLT signatures | M.K. (FLT4), FLT8 |
| October 1990 | ProTracker 1.0b and 1.0c, Lars Hamre | Pattern loop, glissando and the finetune, with ProTracker’s finetune table | M.K. |
| November 1990 and March 1991 | StarTrekker 1.2 and 1.3, Bjørn Wesen | AM and FM synthesised sounds, macros | M.K., FLT8 |
| 27 December 1990 | ProTracker 1.1a, Lars Hamre | EFx becomes “invert loop” instead of NoiseTracker’s funk repeat | M.K. |
| 16 April and 22 June 1992 | ProTracker 2.1a and 2.2a, Peter “Crayon” Hanning | M.K. | |
| 1 January 1993 | ProTracker 2.3a, Peter Hanning | Up to 100 patterns, with M!K! when there are more than 64 | M.K. |
| 23 January 1993 | FastTracker 1.01, Fredrik Huss (Triton) | 8 channels on the PC; the xCHN signatures are usually credited to it | Multichannel |
| 1993 | ProTracker 3.0 to 3.15, Cryptoburners | M.K. | |
| February 1994 (estimate) | ProTracker 2.3D, Detron and Duff | The version whose replay routine the explorer follows | M.K. |
| November 1994 | FastTracker 2.00, Fredrik Huss and Magnus Högdahl | Up to 32 channels; its own format is XM | Multichannel |
| 1996 | ProTracker 3.59 to 3.62, RD10/Osiris | 3.59 brought a new file format of its own, an IFF wrapper around a module | ProTracker 3.6, M.K. |
| 1997 | ProTracker 4.0 beta 2, Thomas Beyer | M.K. | |
| September 1997 | ModPlug Tracker, Olivier Lapicque (Wikipedia) | A Windows tracker that opens and saves modules | M.K., Multichannel |
| January 2004 | ModPlug Tracker’s source code released, carried on as OpenMPT (Wikipedia) | M.K., Multichannel | |
| 23 February 2019 | ProTracker 2.3E, the ProTracker 2 clone, Olav “8bitbubsy” Sørensen | A faithful remake of ProTracker 2.3D for today’s computers | M.K. |
| 30 October 2026 | ProTracker 2 clone 1.93 | The latest release (the year is inferred from GitHub’s date display) | M.K. |
| 31 October 2026 | OpenMPT 1.32.12.00 (Wikipedia) | The latest release | M.K., Multichannel |
Sources disagree on who first wrote a 31-sample module. Tracker History credits
D.O.C. Soundtracker 2.2 (December 1988) with the extension to 31 instruments and
Soundtracker 2.3 (April 1989) with the M.K. file; another account says 2.2
only announced it. The safe statement is Soundtracker 2.2 or 2.3, 1988 to 1989.
Soundtracker 2.5’s note that it counts the loop start in words suggests that files from
2.3 and 2.4 may still count it in bytes. A 31-sample file does not say which it was, so
the explorer follows OpenMPT: it reads words, unless that would take the loop past the
end of the sample and half the value would not, in which case it reads bytes. See
loops.
The letters M.K. are often said to stand for Mahoney & Kaktus, the
authors of NoiseTracker. Wikipedia calls that a misconception and gives them as the
initials of Michael Kleps, Unknown of D.O.C., and Pex “Mahoney” Tufvesson has said the
same in an interview: the marking he was responsible for was the unofficial
M&K!.
Not described
Unknown
None of these has a public specification; they would have to be worked out from the trackers themselves. The viewer shows each with its raw parameters, marked as such, and does not apply it in playback.
- Reference and viewer: StarTrekker’s E commands and its FM instrument block (FLT8).
- Reference and viewer: the E command numbers of FLT4 and EXO4 (M.K. effects).
- Reference and viewer: the scale of FLT8’s 3xx portamento, and the
ntfield. - Reference and viewer: Ultimate Soundtracker’s effects 0 and 3 to F, and its replay routines (Soundtracker).
- Reference and viewer: the Tracker Joint Contrib (TJC) tempo rule.
Also used for
- Go module file – A Go module's path, Go version and dependencies, as line-oriented UTF-8 text.
Links
Software
- OpenMPT – free tracker that plays, edits and saves MOD files, including Soundtracker and multichannel ones (Windows)
- ProTracker 2 clone – faithful remake of the Amiga ProTracker 2.3D (Windows, macOS, Linux)
- FastTracker 2 clone – remake of FastTracker 2, which reads MOD and multichannel MOD (Windows, macOS, Linux)
- MilkyTracker – free tracker in the FastTracker 2 style that opens MOD (Windows, macOS, Linux)
- Schism Tracker – free Impulse Tracker remake that opens MOD (Windows, macOS, Linux)
- XMPlay – small audio player with strong tracker module support (Windows)
- VLC media player – free player for almost any audio or video file, modules included (Windows, macOS, Linux, mobile)
Developers
- libopenmpt – OpenMPT’s playback library (C, C++)
- libxmp – module player library for MOD, S3M, XM, IT and many more (C)
Reference
- OpenMPT’s MOD loader – the signatures, who wrote them, and how each layout is read (C++)
- OpenMPT’s Soundtracker loader – how 15-sample modules are recognised and read (C++)
- ProTracker 2 clone source – the replayer and tables of ProTracker 2.3D, in
src/pt2_replayer.candsrc/pt2_tables.c(C) - libxmp’s MOD loader – signatures and how Mod’s Grave files and Digital Tracker’s extra header are told apart (C)
- libxmp’s StarTrekker loader – the FLT signatures and the AM synth data in the companion file (C)
- OpenMPT’s ProTracker 3.6 loader – the IFF chunks of the PT36 file (C++)
- Tracker History Graphing Project – release dates and lineage of the trackers, by Claudio Matsuoka
- MOD (file format) – Wikipedia’s article, with the history of the format