What is a .jpg file?
A .jpg file is a JPEG image. Its registered MIME type is image/jpeg, which places it in the image family of formats.
JPEG stands for Joint Photographic Experts Group.
JPG is a binary format: the contents are not readable text, so opening it in a text editor shows scrambled characters.
Files of this type usually begin with the bytes FF D8 FF. That signature is how programs recognise the format even when the extension is wrong or missing.
The same format is also saved with the extensions .jfif, .jpe, .jpeg.
JPG file format details
| Extension | .jpg |
|---|---|
| Format | JPEG image |
| MIME type | image/jpeg, image/pjpeg |
| Category | Image |
| Text or binary | Binary |
| File signature | FF D8 FF |
| Registered with IANA | Yes |
| Other extensions | .jfif, .jpe, .jpeg |
How to open JPG files
| Windows | The Photos app and every web browser display this format. |
|---|---|
| Mac | Preview opens most image formats. If it cannot, a dedicated image editor usually can. |
| iPhone and iPad | Photos and the Files app show common image types. Less common ones may need an app, or conversion to JPG or PNG. |
| Android | Google Photos and gallery apps show common images. Other formats may need a viewer app. |
Convert JPG files
TapToConvert converts JPG files in your browser, without uploading them. Open the JPG converter, or go straight to a conversion:
JPG file FAQ
What is a .jpg file?
A .jpg file is a JPEG image, with the MIME type image/jpeg.
How do I open a .jpg file?
With the program that created it. The viewer on this page shows what is inside without installing anything.
Is a .jpg file safe to open?
JPG files hold data rather than programs, but any file from an unknown source can be crafted to exploit the software that opens it. Keep that software up to date. The viewer on this page only reads the bytes and never runs anything.
What is the MIME type of .jpg?
image/jpeg, and it is also seen as image/pjpeg. Web servers send this type so browsers know how to handle the file.
Is JPG a text or binary format?
Binary. Its contents are not readable as text.
File type facts come from the IANA media type registry, the mime-db project and the freedesktop.org shared MIME database.