What is an OGG file?

OGG is a free container, and a .ogg file almost always holds Vorbis audio, a lossy codec like MP3. Games and open-source programs use it. Android and browsers play it, but Apple's built-in apps often do not.

Drop your file here

or select file

Images, video, audio, documents, data, archives, fonts and more.

About OGG file:

01OGG at a glance

Full name
Ogg (container), usually with Vorbis audio
Type
Open container with lossy audio
Extension
.ogg (also .oga, .spx)
MIME type
audio/ogg
First bytes (hex)
4F 67 67 53 (the text OggS)
Made by
Xiph.Org Foundation, free of royalties

02What is an OGG file

Ogg is a free container from the Xiph.Org Foundation. A .ogg audio file almost always holds Vorbis, a lossy codec that sounds as good as or better than MP3 at the same bitrate. Games, Linux programs and Wikimedia Commons use it. The file is a row of pages that begin with the text OggS, and each page carries a position, so the length is read from the last page.

Ogg can also hold Opus, FLAC or Speex. Xiph's own advice is to use .ogg for Vorbis, .opus for Opus and .oga for other audio. This tool looks at the first packet and tells you which codec is really inside, and it flags a name that does not match.

Tags are stored as Vorbis comments (TITLE=, ARTIST= and so on), and a cover picture is stored as a base64 comment. That makes the tags easy to edit, but also means that some programs ignore the cover.

Apple's built-in apps may not play Ogg Vorbis. For an iPhone, an upload form or a shop use MP3 or M4A instead.

03Good and bad sides

Good

  • Free and open: no licence fees
  • Good sound at small sizes with Vorbis
  • Tags (Vorbis comments) and a cover are supported
  • Plays in Chrome, Firefox and Edge, on Android and in Linux and Windows programs

Bad

  • Apple's built-in apps may not play it
  • Many upload forms and shops do not list .ogg
  • The extension does not tell you the codec inside

04Best for

  • Games and apps

    A common choice for sound and music in games because it is free and loops well.

  • Free and open audio

    No licence fees, and Vorbis gives good sound at small sizes.

  • Websites

    Works in most browsers, but MP3 and M4A are safer.

05How to open it

Windows
VLC, foobar2000, AIMP
macOS
VLC, IINA
iPhone and Android
VLC, most Android players
Linux
VLC, mpv, every music player
Online
Chrome, Edge and Firefox play Ogg Vorbis

06Convert and compare

Related formats: Opus, OGA, MP3

Sources