Convert J2B to ALAC — Free Online Tool

Convert J2B game audio files from Jazz Jackrabbit 2 into ALAC (Apple Lossless Audio Codec) format, preserving every audio detail in a lossless .m4a file compatible with Apple devices and iTunes. This tool decodes the ASYLUM Music Format wrapped inside J2B and re-encodes it using Apple's lossless ALAC codec — entirely in your browser, no upload required.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

J2B files are a proprietary game audio format used exclusively in Jazz Jackrabbit 2, consisting of the ASYLUM Music Format (AMF) wrapped in a simple custom header. FFmpeg strips the J2B wrapper, decodes the underlying module-based audio data (which uses tracker-style sample and pattern playback), and renders it to a PCM audio stream. That raw audio is then encoded using Apple's ALAC codec and stored in an MPEG-4 (.m4a) container. Because ALAC is lossless, the rendered audio is stored without any further quality degradation — though keep in mind that the original J2B audio itself was rendered from a module format, so this conversion preserves the rendered output faithfully rather than the raw instrument samples and patterns.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg multimedia processing tool, which handles the decoding of the J2B/ASYLUM module format and the encoding to ALAC. This runs entirely via WebAssembly in your browser on this page.
-i input.j2b Specifies the input file in J2B format. FFmpeg detects the J2B wrapper, strips the custom header, and passes the underlying ASYLUM Music Format data to its module audio decoder for rendering.
-c:a alac Sets the audio codec to ALAC (Apple Lossless Audio Codec), encoding the rendered PCM audio from the J2B decoder into a lossless audio stream that will be stored in the .m4a container.
-c:a alac A duplicate of the preceding codec flag — FFmpeg processes the last occurrence, so the effective codec remains ALAC. This redundancy does not affect the output; the conversion proceeds identically to if this flag appeared only once.
output.m4a Defines the output file name and format. The .m4a extension tells FFmpeg to use the MPEG-4 container, which is the standard and recommended container for ALAC audio and ensures compatibility with Apple Music, iTunes, and all Apple devices.

Common Use Cases

  • Archiving Jazz Jackrabbit 2 game music in a lossless format for long-term preservation with full fidelity
  • Adding JJ2 game tracks to an Apple Music or iTunes library in a format natively supported by Apple devices without transcoding
  • Creating a high-quality audio reference of J2B tracks for audio engineers or composers studying the game's music
  • Importing JJ2 music into Final Cut Pro or Logic Pro X for use in video edits or remixes, where ALAC is the preferred lossless input format
  • Preserving the rendered output of ASYLUM module tracks as lossless audio before any downstream lossy encoding for streaming or podcasts
  • Building a retro game music collection in ALAC alongside other lossless formats like FLAC, using .m4a for consistency across Apple ecosystem workflows

Frequently Asked Questions

ALAC stores the rendered audio losslessly, meaning no additional quality is lost during this specific conversion step. However, J2B files are module-based — the original 'source' is a set of instrument samples and playback patterns, not a linear audio stream. FFmpeg renders these patterns into audio first, and that rendered output is what ALAC captures losslessly. The result is a perfect lossless snapshot of how FFmpeg interprets the J2B file, not a lossless reconstruction of the original tracker samples themselves.
J2B files are extremely compact because they store music as tracker data — a set of short instrument samples plus sequencing instructions, similar to sheet music. A few kilobytes of J2B data can represent minutes of music. When converted to ALAC, the audio is rendered into a full linear PCM stream and then losslessly compressed, which is inherently much larger. A 30-second J2B track might produce an ALAC file hundreds of times larger, because ALAC stores actual audio samples rather than musical instructions.
Yes. ALAC in an .m4a container is natively supported across the entire Apple ecosystem, including iPhone, iPad, Mac, Apple TV, and Apple Watch via the Music app. It is also recognized by iTunes on Windows. No third-party app or codec installation is needed — Apple devices treat ALAC as a first-class audio format, making this conversion ideal if your goal is to play JJ2 music natively on Apple hardware.
The command shown is for a single file, but you can adapt it for batch processing in a shell script. On Linux or macOS, you can run: for f in *.j2b; do ffmpeg -i "$f" -c:a alac "${f%.j2b}.m4a"; done. On Windows PowerShell, a similar loop can iterate over .j2b files in a directory. This is especially useful if you have the full Jazz Jackrabbit 2 music set and want to convert all tracks at once, particularly for files over 1GB in total size that exceed in-browser processing limits.
This is a minor redundancy in the generated command — '-c:a alac' appears twice, but FFmpeg simply applies the last valid value for that parameter, so the conversion works correctly. The effective instruction is to encode the audio stream using the ALAC codec. If you're running this command locally, you can safely remove the duplicate flag and use 'ffmpeg -i input.j2b -c:a alac output.m4a' for a cleaner command with identical output.
J2B files carry very minimal metadata — typically just basic module header information embedded in the ASYLUM format, such as a title string. FFmpeg will attempt to map any available metadata to the ALAC .m4a container, which supports standard iTunes-compatible tags like title, artist, and album. However, because ASYLUM/J2B is a game-specific format with no standardized tagging scheme, you should expect little to no metadata in the output and may want to add tags manually using a tool like MP3Tag or MusicBrainz Picard after conversion. ALAC does support chapters, but J2B files contain no chapter data to preserve.

Technical Notes

J2B is a niche, game-specific audio format exclusive to Jazz Jackrabbit 2, built on top of the ASYLUM Music Format (AMF), itself a variant of the tracker music tradition common in DOS-era games. FFmpeg's support for J2B is handled through its module audio demuxer, which renders the tracker patterns using internal sample data. The rendering quality (sample rate, bit depth) depends on FFmpeg's internal AMF decoder defaults. The output is encoded with Apple's ALAC codec (-c:a alac) and stored in an MPEG-4 container (.m4a) — a format that is widely supported on Apple platforms and also playable in VLC, foobar2000, and other modern players on Windows and Linux. ALAC uses lossless compression similar in concept to FLAC but optimized for Apple's ecosystem; bit depth and sample rate are preserved exactly from the decoded PCM stream. One known limitation is that the J2B-to-PCM rendering step is performed by FFmpeg's decoder, which may not perfectly replicate the original game engine's audio rendering behavior — subtle differences in volume envelopes, panning, or effects may exist compared to in-game playback. No quality settings are available for ALAC since it is inherently lossless; the file size is determined solely by the duration and sample rate of the rendered audio.

Related Tools