Convert MKV to J2B — Free Online Tool

Convert MKV video files to J2B audio format, extracting and encoding the audio stream as MP3 using the LAME encoder — the same audio format used by Jazz Jackrabbit 2's in-game music system. This tool runs entirely in your browser via FFmpeg.wasm, so no file is ever uploaded to a server.

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

MKV is a flexible container that can hold video, audio, subtitles, and chapters simultaneously. J2B is a narrow, game-specific audio format tied to Jazz Jackrabbit 2, built on the ASYLUM Music Format with a proprietary header — it carries no video, no subtitles, and only a single audio stream encoded as MP3. During this conversion, FFmpeg discards the MKV's video stream, any subtitle tracks, and all additional audio tracks entirely. The single selected audio stream is then re-encoded using the LAME MP3 encoder at the target bitrate (default 128k), and the resulting MP3 data is wrapped in a J2B-compatible header. Because the audio is transcoded rather than copied, there is a generational quality loss if the source audio was already lossy (e.g., AAC or Vorbis inside the MKV).

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program, the open-source multimedia processing engine that powers this conversion both in the browser (via FFmpeg.wasm) and on the desktop.
-i input.mkv Specifies the input file — in this case an MKV container, which may contain video, multiple audio tracks, subtitles, and chapters. FFmpeg will read all streams from this file and selectively process them according to the rest of the command.
-c:a libmp3lame Instructs FFmpeg to encode the audio stream using the LAME MP3 encoder. This is required because J2B's underlying format stores audio as MP3, and libmp3lame is FFmpeg's standard, high-quality implementation of the LAME encoder.
-b:a 128k Sets the MP3 audio bitrate to 128 kilobits per second. This is the default balance between file size and audio quality for J2B output; it is suitable for typical game music but can be raised to 192k or 320k for higher fidelity source material.
output.j2b Specifies the output filename with the .j2b extension, which tells FFmpeg to mux the encoded MP3 audio into a J2B-compatible file — the proprietary audio container used by the Jazz Jackrabbit 2 game engine. The video stream from the MKV is implicitly excluded because J2B has no video support.

Common Use Cases

  • Modding Jazz Jackrabbit 2 by replacing in-game music tracks with custom audio sourced from MKV video recordings or cutscenes
  • Extracting a specific piece of music or ambient audio from an MKV file and packaging it in J2B format for use with JJ2 level editors like JCS (Jazz Creation Station)
  • Archiving or sharing Jazz Jackrabbit 2-compatible audio assets when the only available source material is in MKV container format
  • Testing audio content intended for JJ2 mods by quickly converting prototype recordings from MKV into the J2B format the game engine expects
  • Producing J2B music assets for JJ2 fan-made episodes or fan games where original compositions were recorded or rendered out as MKV files

Frequently Asked Questions

No — J2B is a strictly audio-only format with no support for video, subtitles, or chapters. When converting from MKV to J2B, only one audio stream is extracted and re-encoded as MP3; the video track and all other streams are discarded. If preserving the video matters, you should use a different output format entirely.
FFmpeg will select the default audio track from the MKV, which is typically the first audio stream in the file. J2B supports only a single audio track, so there is no way to embed multiple streams. If you need a specific non-default audio track, you can modify the FFmpeg command with a flag like '-map 0:a:1' to select the second audio stream before the output filename.
Yes — J2B uses lossy MP3 encoding via the LAME encoder, so some audio quality is always lost compared to lossless sources. If your MKV already contains lossy audio (such as AAC or Vorbis), the conversion involves decoding that lossy stream and re-encoding it as MP3, which compounds the quality loss. For best results, source your MKV from a lossless or high-bitrate audio track and use the highest appropriate bitrate (e.g., 192k or 320k) in the conversion settings.
None of these are preserved. J2B has no support for metadata fields, chapter markers, or subtitle tracks — it is a minimal format designed solely to deliver a single MP3 audio stream to the Jazz Jackrabbit 2 game engine. All such data from the MKV container is silently dropped during conversion.
Adjust the value following '-b:a' in the command. For example, replacing '128k' with '320k' gives higher fidelity audio at a larger file size, while '64k' produces a smaller file with more noticeable compression artifacts. The J2B format supports bitrates of 64k, 128k, 192k, 256k, and 320k. Keep in mind that Jazz Jackrabbit 2 was designed around relatively modest audio quality, so very high bitrates may offer no perceptible benefit within the game.
The single-file command shown on this page must be run once per file, but you can automate batch processing with a shell loop. On Linux or macOS, use: 'for f in *.mkv; do ffmpeg -i "$f" -c:a libmp3lame -b:a 128k "${f%.mkv}.j2b"; done'. On Windows PowerShell, iterate over files similarly with 'Get-ChildItem'. This is especially useful for converting an entire folder of MKV recordings into J2B assets for a JJ2 mod project.

Technical Notes

J2B is an obscure, game-specific format not natively recognized by most media players or editors — its primary consumer is the Jazz Jackrabbit 2 engine and associated modding tools. FFmpeg can write J2B output by encoding the audio as MP3 via libmp3lame and applying the appropriate file header, but the format offers none of the container-level features that make MKV valuable: no multiple audio tracks, no subtitle support, no chapter markers, and no flexible metadata. The conversion is entirely audio-focused, and any visual or structural richness in the source MKV is permanently discarded. Because MP3 (the underlying codec) is a lossy format, converting from lossless MKV audio sources (such as FLAC) results in only one generation of quality loss, whereas converting from an already-lossy MKV audio stream (AAC, Vorbis, or MP3) causes cascading degradation. The default 128k bitrate is adequate for voice or lo-fi game music but may be insufficient for complex orchestral or high-frequency content; 192k or higher is recommended in those cases. Files produced by this tool are intended for use with JJ2-compatible software and may not play correctly in standard media players due to the proprietary J2B header structure.

Related Tools