Convert MP3 to OGG — Free Online Tool
Convert MP3 audio files to OGG Vorbis format using FFmpeg running entirely in your browser — no uploads, no server, no cost. The conversion transcodes the MP3's libmp3lame-encoded audio into a libvorbis stream inside an OGG container, trading patent-encumbered compression for an open, royalty-free alternative with comparable perceptual quality.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MP3 file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
MP3 files store audio using the libmp3lame codec, a patented lossy compression algorithm. OGG is a free, open container format developed by Xiph.Org, and this tool encodes the audio into a Vorbis stream inside that container using libvorbis. Because neither the source codec (MP3) nor the target codec (Vorbis) share the same bitstream, the audio must be fully decoded from MP3 back to raw PCM and then re-encoded as Vorbis — a transcode rather than a remux. This means a small but measurable generation loss occurs, since you are compressing already-compressed audio a second time. The default quality setting of -q:a 4 targets roughly 128–160 kbps variable bitrate, which is well-suited for general listening and closely mirrors the MP3 default of 128k -b:a.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg program, the open-source multimedia processing engine that handles the decoding of the input MP3 and encoding of the output OGG Vorbis file. In the browser, this runs as a WebAssembly binary via FFmpeg.wasm. |
-i input.mp3
|
Specifies the input file — in this case an MP3 audio file encoded with the libmp3lame codec. FFmpeg reads and decodes this MP3 bitstream to raw PCM audio before any further processing occurs. |
-c:a libvorbis
|
Selects libvorbis as the audio encoder, which encodes the decoded PCM audio into a Vorbis stream. Vorbis is the default and most widely supported audio codec for the OGG container and is royalty-free, unlike the MP3 codec being replaced. |
-q:a 4
|
Sets the Vorbis variable bitrate quality level to 4 on a 0–10 scale, targeting approximately 128–160 kbps. This is the default setting and produces a good balance between file size and audio quality for general-purpose listening, roughly equivalent to the 128k bitrate of the source MP3. |
output.ogg
|
Specifies the output filename with the .ogg extension, which instructs FFmpeg to wrap the encoded Vorbis audio stream in an OGG container. The .ogg extension is the standard file extension for OGG files carrying Vorbis audio. |
Common Use Cases
- Preparing audio assets for an HTML5 web game or app that targets Firefox, where OGG Vorbis has historically had strong native support and MP3 licensing has been a concern.
- Publishing music or spoken-word recordings to platforms like Bandcamp or Internet Archive that accept or prefer open-format OGG files over MP3.
- Migrating a music library away from patent-encumbered MP3 to the royalty-free OGG Vorbis format as part of a commitment to open-source or free-software workflows.
- Packaging audio for a Linux desktop application or game engine (such as Godot) where OGG Vorbis is the preferred or default audio format.
- Converting podcast episode drafts from MP3 to OGG for distribution through platforms or aggregators that support Vorbis and offer smaller file sizes at equivalent perceived quality.
- Supplying OGG audio files to a content management system or wiki (such as MediaWiki) that natively supports OGG Vorbis for embedded audio playback.
Frequently Asked Questions
Yes, there will be a small quality reduction. Because MP3 is already a lossy format, converting it to OGG Vorbis requires decoding the MP3 back to raw audio and then re-encoding it as Vorbis — a second lossy compression step known as generational loss. In practice, at the default -q:a 4 setting (roughly 128–160 kbps VBR), the degradation is subtle and unlikely to be noticeable in casual listening, but it is not lossless. If audio fidelity is critical, the ideal workflow is to convert from the original uncompressed or lossless source rather than from an MP3.
OGG Vorbis uses a variable bitrate quality scale from 0 to 10, where -q:a 4 produces roughly 128–160 kbps and -q:a 6 targets around 192–224 kbps. MP3 uses a fixed or variable bitrate specified in kbps, such as 128k or 192k. Because Vorbis is generally considered more efficient than MP3 at the same bitrate, a -q:a 4 OGG file will often sound comparable to or slightly better than a 128k MP3 file, while frequently being a similar size or smaller.
Not automatically with a direct 1:1 transfer of tag data. MP3 files use ID3 tags for metadata (artist, title, album, etc.), while OGG Vorbis uses its own metadata system called Vorbis Comments. FFmpeg does map common ID3 fields to their Vorbis Comment equivalents during conversion, so standard tags like title, artist, and album will typically carry over. However, embedded album art and non-standard or application-specific ID3 frames may not survive the conversion, and you should verify tags in a tool like MusicBrainz Picard after converting.
Replace the value after -q:a in the command. The scale runs from 0 (lowest quality, smallest file, roughly 64 kbps) to 10 (highest quality, largest file, roughly 500 kbps). For example, to get a higher-quality output closer to a 192k MP3, use -q:a 6: ffmpeg -i input.mp3 -c:a libvorbis -q:a 6 output.ogg. Keep in mind that raising the quality above the effective resolution of your source MP3 will not recover detail that was already discarded during the original MP3 encoding.
The command shown processes one file at a time, but you can batch convert using a shell loop. On Linux or macOS, run: for f in *.mp3; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.mp3}.ogg"; done. On Windows Command Prompt, use: for %f in (*.mp3) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.ogg". The browser-based tool processes one file per session, so the FFmpeg command is especially useful for bulk conversions of large libraries.
OGG Vorbis has broad support on Android and in desktop browsers including Chrome, Firefox, and Edge, but it has no native support on Apple platforms — iOS, iPadOS, and Safari do not support OGG Vorbis playback without third-party libraries. If your audience includes Apple device users, MP3 or AAC may be more universally compatible. OGG Vorbis is an excellent choice for web apps, Linux environments, and Android-targeted projects where open formats are preferred.
Technical Notes
This conversion involves a full audio transcode: the MP3 bitstream (encoded with the MPEG Audio Layer III algorithm) is decoded to PCM and re-encoded using libvorbis, the reference encoder for the Vorbis I specification. Vorbis uses a modified discrete cosine transform (MDCT) with a psychoacoustic model that is architecturally distinct from MP3's subband filtering, meaning there is no way to copy the compressed audio stream between containers — every sample must be re-evaluated. The OGG container supports multiple audio tracks and chapters, though converted from a single-track MP3, only one audio stream will be present. OGG files do not support the transparency or subtitle features found in some other containers. The output file size will vary depending on the -q:a setting and the dynamic range of the source audio; Vorbis VBR encoding allocates more bits to complex passages and fewer to silence or simple tones, so the final file size is not as predictable as a fixed-bitrate MP3. One known limitation: if your MP3 source uses unusual sample rates or joint stereo configurations, libvorbis will handle the conversion correctly but may adjust the encoding model slightly — always audition the output file before final distribution.