Convert AC3 to J2B — Free Online Tool

Convert AC3 (Dolby Digital) audio files to J2B format, the ASYLUM Music Format-based audio used by Jazz Jackrabbit 2. This tool decodes your AC3 stream using FFmpeg's built-in AC3 decoder and re-encodes it as MP3 via libmp3lame, wrapped in a J2B-compatible container — all processed locally in your browser.

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

AC3 is a lossy multichannel audio codec (Dolby Digital) commonly carrying 5.1 surround sound at bitrates up to 640k. J2B is a game-specific audio container used by Jazz Jackrabbit 2, built around the ASYLUM Music Format with an MP3 audio stream encoded by libmp3lame inside it. During this conversion, FFmpeg fully decodes the AC3 bitstream — including any multichannel surround configurations — to raw PCM audio, then re-encodes it as a stereo MP3 stream at 128k using libmp3lame, and writes the result into the J2B container structure. Because AC3 and MP3 are entirely different codecs, this is a full transcode (not a remux), meaning audio quality undergoes a second generation of lossy compression. Any surround sound channels present in the AC3 source will be downmixed to stereo during the encode.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool. In this browser-based tool, FFmpeg runs as a WebAssembly binary (FFmpeg.wasm) entirely within your browser — no data leaves your machine.
-i input.ac3 Specifies the input file, an AC3 (Dolby Digital) audio file. FFmpeg uses its built-in AC3 decoder to read and decode this file, handling any channel configuration from mono up to 5.1 surround.
-c:a libmp3lame Selects libmp3lame as the audio encoder, which produces an MP3 audio stream. This is required because J2B wraps an MP3 stream, and libmp3lame is FFmpeg's standard high-quality LAME-based MP3 encoder.
-b:a 128k Sets the output MP3 audio bitrate to 128 kilobits per second. This is the default quality level for J2B output, appropriate for the game-audio context of the format; it can be raised up to 320k for better fidelity at the cost of a larger file.
output.j2b Specifies the output filename with the .j2b extension. FFmpeg uses the file extension to select the J2B muxer, which writes the libmp3lame-encoded MP3 stream into the ASYLUM Music Format-based J2B container structure used by Jazz Jackrabbit 2.

Common Use Cases

  • Extracting dialogue or sound effects from a DVD-ripped AC3 audio track to use as custom audio assets in a Jazz Jackrabbit 2 mod or level pack
  • Converting Dolby Digital broadcast audio recordings to J2B for use in retro game audio projects that target the Jazz Jackrabbit 2 engine
  • Preparing AC3 audio from a home theater rip for testing J2B playback pipelines or custom game audio toolchains
  • Archiving or documenting AC3 audio samples in the J2B format for research into 1990s game audio formats and ASYLUM Music Format implementations
  • Downmixing a 5.1 AC3 surround track to a stereo MP3-based J2B file for use in environments where multichannel audio is not supported
  • Generating test J2B files from known AC3 sources to verify compatibility with Jazz Jackrabbit 2 audio loaders or emulators

Frequently Asked Questions

No. J2B uses an MP3 audio stream encoded by libmp3lame, and MP3 via libmp3lame in standard configurations is a stereo format. FFmpeg will automatically downmix your AC3's surround channels (front left, front right, center, LFE, surround left, surround right) to a two-channel stereo mix during the transcode. If your AC3 source is already stereo or mono, no downmix occurs.
Yes, this conversion involves two generations of lossy compression. Your AC3 file was already lossy-compressed using Dolby Digital encoding. FFmpeg decodes it back to PCM and then re-encodes it as MP3 at 128k using libmp3lame. Each encode cycle introduces additional artifacts, and 128k MP3 is significantly lower fidelity than a typical 192k–448k AC3 source. If your source is high-bitrate AC3 (e.g., 448k from a DVD), the quality difference will be noticeable on critical listening.
Replace the -b:a 128k flag with a higher value supported by libmp3lame, such as -b:a 192k, -b:a 256k, or -b:a 320k. For example: ffmpeg -i input.ac3 -c:a libmp3lame -b:a 320k output.j2b. Keep in mind that J2B files are intended for a 1990s game engine, and very high bitrates may not be meaningful depending on how the J2B loader reads the embedded MP3 stream.
Yes, on a desktop you can use a shell loop. On Linux or macOS: for f in *.ac3; do ffmpeg -i "$f" -c:a libmp3lame -b:a 128k "${f%.ac3}.j2b"; done. On Windows Command Prompt: for %f in (*.ac3) do ffmpeg -i "%f" -c:a libmp3lame -b:a 128k "%~nf.j2b". The browser-based tool processes one file at a time, so the desktop command is the recommended approach for bulk conversions.
AC3 files rarely carry rich metadata tags, and J2B is a minimal game-audio container derived from the ASYLUM Music Format that does not support standard ID3 or Vorbis comment metadata. FFmpeg will attempt to pass through any metadata it finds, but in practice you should not expect metadata to survive this conversion in any meaningful or readable form.
The J2B format is built around the ASYLUM Music Format, which in the Jazz Jackrabbit 2 context wraps an MP3 audio stream. libmp3lame is the standard high-quality open-source LAME MP3 encoder used by FFmpeg for all MP3 encoding tasks. Since J2B requires an MP3-compatible audio stream, libmp3lame is the correct and only practical encoder choice for producing valid J2B output with FFmpeg.

Technical Notes

AC3 (Dolby Digital) supports up to 5.1 channels at bitrates from 32k to 640k and is decoded natively by FFmpeg without any external library. J2B is an obscure game-audio container tied specifically to Jazz Jackrabbit 2 (Epic MegaGames, 1998), wrapping audio in the ASYLUM Music Format structure with a simple proprietary header. FFmpeg's J2B muxer accepts an MP3 audio stream via libmp3lame as its audio codec. Because the source (AC3) and destination (MP3/libmp3lame) codecs are entirely incompatible, a full decode-and-reencode pipeline is unavoidable — there is no lossless path here. The default output bitrate of 128k is consistent with the audio quality expectations of late-1990s game audio. One known limitation is that FFmpeg's J2B support is primarily oriented toward demuxing (reading) rather than muxing (writing), so compatibility of the output J2B file with specific Jazz Jackrabbit 2 tools or level editors should be verified independently. No subtitle, chapter, or multiple audio track data is relevant to either format in this conversion.

Related Tools