What is an SF2 file?
An SF2 file is a SoundFont: a single file that holds recorded instrument samples together with the settings that turn them into playable instruments. One SF2 can hold a single piano or a whole bank of 128 General MIDI sounds. Here's what's inside one, how it compares with SFZ, and how to play it in your DAW. I make simpleSF2, a SoundFont player, and the screenshots here are from it with the free FluidR3 GM bank loaded. Below, I trace one note through FluidR3 GM's file from preset to sample.
By Aiden Shihadeh, developer of simpleSF2 · Published · Updated
Quick answer
| What it is | A SoundFont 2 file: instrument samples plus the settings that make them playable |
|---|---|
| File extension | .sf2 |
| What one holds | Anything from a single instrument to a General MIDI bank of 128 presets plus drum kits |
| What plays it | A SoundFont player plugin, a sampler that imports SF2, or a synth like FluidSynth |
| SF2 vs SFZ | SF2 is one binary file. SFZ is a text file that points to separate samples. Compare them. |
| Where to get free ones | Thousands are free to download. The best free SoundFonts lists good places to start. |
| Can my DAW open it? | Most DAWs can't put one straight on a track. See the DAW guides below. |
SF2 in short
- Format: SoundFont 2, a sample-based instrument format. The file
extension is
.sf2. - What it holds: audio samples, plus key ranges, loop points, envelopes, filters and other settings, all packed into one file.
- Where it came from: E-mu Systems and Creative Labs created SoundFonts for Sound Blaster AWE sound cards in the 1990s. Version 2 became the version everyone uses, and the specification is open.
- What plays it: a SoundFont player such as simpleSF2, a sampler that can import SF2, or a software synth like FluidSynth.
simpleSF2 plays SF2 and SFZ files in any DAW on Windows, macOS and Linux. Download free
Unlock multiple libraries, 16-channel multitimbral mode, and reverb and chorus for £9.99. One-time purchase.
Unlock 16 channels + reverb — £9.99What's inside an SF2 file
A SoundFont is organised in three layers, which is why one file can hold so much:
- Samples. The raw recordings, such as a piano note recorded every few keys, with loop points so a note can sustain.
- Instruments. Each instrument maps samples across the keyboard and velocity range, and sets how they sound: volume envelope, tuning, filter and effects.
- Presets. A preset is what you actually pick and play. It combines one or more instruments and has a bank and program number, so a General MIDI bank can put 128 presets in bank 0 and drum kits in bank 128.
Because the settings live in the file, an SF2 sounds the same in any player that follows the specification. You load the file, choose a preset and play.
Inside two real SF2 files
To show what those layers look like in practice, I read the headers of two free General MIDI SoundFonts that come with many Linux systems: FluidR3 GM and TimGM6mb. Both cover the same 128 General MIDI instruments, but they're built very differently.
| FluidR3 GM | TimGM6mb | |
|---|---|---|
| File size | 148 MB | 6 MB |
| Presets | 189: 128 in bank 0, 30 variations in banks 8 to 16, 31 drum kits in bank 128 | 136: 128 in bank 0, 8 drum kits in bank 128 |
| Instruments | 193 | 210 |
| Samples | 1,418 | 520 |
| Typical sample length | About 1.2 seconds | About 0.06 seconds |
| Most common sample rate | 44.1 kHz, with others at 32 and 22.05 kHz | 44.1 kHz, with others at 22.05 and 12 kHz |
Three things stand out:
- Almost all of the file is audio. Sample data makes up more than 96% of both files. The presets and instruments that describe how to play them take up a few hundred kilobytes at most.
- Size comes from sample length. TimGM6mb is small because most of its samples are tiny looped snippets, a few hundredths of a second long. FluidR3 keeps longer recordings, so notes have a real attack and decay before the loop starts.
- One file can mix sample rates. Both banks store some sounds at lower rates to save space. The player handles that, so you never have to.
Bigger isn't automatically better: a small bank loads faster and uses less memory, which matters when you run several instances. But the length of the recordings is the clearest sign of how much detail a SoundFont can have.
One note, traced through a real SF2
Here's what's inside FluidR3 GM, the 148 MB bank from the table above, read straight from the file on 4 November 2026. An SF2 is a RIFF file, the same container WAV uses, with three sections:
FluidR3_GM.sf2 148,398,306 bytes
RIFF 'sfbk'
├─ LIST 'INFO' 236 bytes
│ name, author, licence
├─ LIST 'sdta' 148,196,124 bytes
│ └─ smpl all the audio
└─ LIST 'pdta' 201,910 bytes
├─ phdr 189 presets
├─ pbag, pgen, pmod
│ preset zones, settings
├─ inst 193 instruments
├─ ibag, igen, imod
│ instrument zones, settings
└─ shdr 1,418 sample headers
The sample data is 99.9% of the file. Everything that turns those recordings into 189 playable presets fits in 202 KB.
To see how the layers connect, I followed one key press through the file: middle C (MIDI note 60) at velocity 100 on bank 0, program 0, the piano.
| Step | What the file says |
|---|---|
| 1. Preset | Yamaha Grand Piano, bank 0, program 0. Settings for the whole preset: 14 dB quieter, 10% sent to reverb. |
| 2. Preset zone | Velocity 97 to 104. The preset has nine velocity zones, and all nine point to the same instrument. The only thing they change is the release: 0.4 seconds below velocity 65, rising to 1.2 seconds at 121 to 127. At velocity 100 the note rings for 0.9 seconds after you let go. |
| 3. Instrument | Yamaha Grand Piano, 41 zones. The zone for keys 59 to 62 (B3 to D4) is the one that plays. |
| 4. Instrument zone | Two samples, P200 Piano D5(L) and P200 Piano D5(R), panned 50% left and right so they play as a stereo pair. The root key is set to 62 (D4), so middle C is the D recording played two semitones lower. |
| 5. Sample | 32 kHz, 16-bit, 3.25 seconds long. The last 0.96 seconds is a loop, so a held note can sustain past the end of the recording. |
| 6. Envelope and filter | Attack 8 ms, hold 0.6 seconds, then a 29-second decay to silence. The low-pass filter starts at 12 kHz. |
So FluidR3's piano has one recording for every few keys and no real velocity layers: its nine velocity zones only change how long a note rings after you let go, and the player makes soft notes quieter. A piano SoundFont with real layers, such as Salamander Grand Piano with 16 recordings per note, sounds different when you play harder. You can hear that in the best free SoundFonts guide.
What SF2 files are used for
- General MIDI banks. A full set of 128 instruments plus drums, so any MIDI file plays back with sensible sounds.
- Game and retro music. SoundFonts are a common way to recreate the sound of older consoles and sound cards, and many game soundtrack fans share them.
- Single instruments. A sampled piano, guitar, orchestral section or drum kit, packed into one easy file.
- Notation and MIDI playback. Programs such as MuseScore use SoundFonts for their built-in sounds.
SF2 vs SFZ (and other formats)
- SF2 is a single binary file with samples and settings inside. It's easy to share and load, but you need an editor to change it.
- SFZ is a plain text file that points to separate sample files (usually WAV or FLAC). It's easy to edit in any text editor and has no size limits in practice, but an instrument is a folder of files rather than one file.
- SF3 is a compressed variant of SF2 that stores samples as Ogg Vorbis to make files smaller. Not every SF2 player opens it.
- DLS is a similar downloadable-sounds format from the MIDI Manufacturers Association, used by some operating systems and games.
simpleSF2 plays both SF2 and SFZ files directly, so you don't have to convert between them. For a fuller comparison, see SF2 vs SFZ.
How to open an SF2 file
Most DAWs can't put an SF2 file straight onto a track. You have two options:
- Use a SoundFont player plugin. It plays the SF2 as it is, with every bank and preset browsable in one place. simpleSF2 does this as an AU, VST3 and CLAP plugin on Mac, Windows and Linux, and it's free to start.
- Import it into your DAW's sampler. Some DAWs convert SF2 files into their own sampler format. That works for a single instrument, but whole banks get split up or lose settings.
Step-by-step guides for each DAW:
- SoundFonts in Logic Pro
- SoundFonts in FL Studio
- SoundFonts in Ableton Live
- SoundFonts in Reaper
- SoundFonts in GarageBand
- SoundFonts in Cubase
- SoundFonts in Studio One
- Opening an SF2 file without a DAW, or on Linux
- The best free SoundFonts
- Best free SoundFont players
- Play a MIDI file with a SoundFont
- Make your own SoundFont
- All SoundFont guides
Where to find SF2 files
There are thousands of free and paid SoundFonts online, from complete General MIDI banks to single sampled instruments. Before you use one in a release, check its licence: many free SoundFonts allow use in your music, but some are for personal use only or were made from samples their authors didn't own.
simpleSF2 comes with a library of starter sounds, so you can play something before you've found your own. See the credits for where they come from.
Common questions
Is an SF2 file the same as a SoundFont?
Yes. "SoundFont" is the format's name and .sf2 is the file extension for
SoundFont 2, the version in use today. People use the two terms interchangeably.
Can I play an SF2 file on its own, without a DAW?
An SF2 holds sounds, not a song, so you need something to play notes with it: a MIDI keyboard in a DAW, a MIDI file, or a standalone SoundFont player. The quickest way is my free online MIDI player: add a MIDI file and your SF2, and it plays in your browser.
Can I convert an SF2 to WAV or SFZ?
Yes. My free SF2 to WAV converter saves each note of a preset, or the samples inside, as WAV files, and the SF2 to SFZ converter turns it into SFZ files and samples. Both run in your browser. To hear a song played with it as a WAV, the MIDI to WAV converter renders a MIDI file through your SF2. You don't need to convert anything to play it in simpleSF2.
Is there a free SF2 player plugin?
Yes, a few. simpleSF2 (mine), Bertom SF2 Player and juicysfplugin play SF2 files directly, and sforzando converts them to SFZ. Outside a DAW, FluidSynth and Polyphone are free too. Best free SoundFont players covers what each one is good at.