devkult_
tools29converters34
home/mime/.ogg

.ogg MIME type

Ogg audioaudio

audio/ogg

Ogg container, usually holding Vorbis or Opus audio.

MIME typeaudio/ogg
Extensions.ogg, .oga
Also seen asapplication/ogg
Content-Typeaudio/ogg
Compress in transit?No — already compressed
File signature4F 67 67 53 (OggS)

Good to know

  • Ogg video uses video/ogg (.ogv); the generic application/ogg is for files whose content you don't know.

Serve .ogg files with the right type

The response header to send:

Content-Type: audio/ogg

Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:

nginx (inside the types block in mime.types)
audio/ogg ogg oga;
Apache (.htaccess or server config)
AddType audio/ogg .ogg .oga
Express
res.set("Content-Type", "audio/ogg");
Python
import mimetypes

mimetypes.add_type("audio/ogg", ".ogg")
mimetypes.add_type("audio/ogg", ".oga")
HTML file input
<input type="file" accept=".ogg,.oga,audio/ogg">

Check it

See what a server sends for a file, and what type a local file really is by its contents:

curl -sI https://example.com/file.ogg | grep -i '^content-type:'
file --mime-type file.ogg

Frequently asked questions

What is the MIME type for .ogg files?

audio/ogg. You may also see application/ogg, but audio/ogg is the one to send. The same type covers .oga.

What Content-Type header should a .ogg file be served with?

Content-Type: audio/ogg. It's already compressed, so servers shouldn't gzip it.

How can I tell if a file is really a .ogg?

Check its bytes rather than the extension: OGG files start with 4F 67 67 53 (OggS). On the command line, file --mime-type name.ogg does this for you.

Related types

Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options