.jpg.jpeg

JPEG file: what it is and how to open it

A JPEG file (.jpg or .jpeg) is a photo compressed to a small fraction of its raw size by dropping detail the eye barely notices. Drop one here to view it, resize or rotate a copy, or remove its location.

Drop your JPG file here

Opens on this device. Nothing is uploaded. Any other file works too.

What is a JPG file?

JPEG is the most widely used format for still photos, on the web and from cameras and phones. The Joint Photographic Experts Group, a committee of ISO, IEC and the ITU, began the work in 1986 and published the standard in 1992 as ITU-T T.81, also issued as ISO/IEC 10918-1.

Its compression is lossy. It keeps the brightness detail the eye is sensitive to and drops fine color detail and texture it barely sees, so a photo takes a small fraction of its raw size. The quality setting chooses how much to drop, and every save at a lower quality loses a little more.

A .jpg, .jpeg and .jfif file are the same thing. JFIF is the basic file layout, standardized as ITU-T T.871 in 2011. Cameras and phones write the Exif layout instead, which adds the camera model, the time, the orientation and often the GPS location where the photo was taken.

What is inside

A JPEG file is a series of segments, each starting with the byte FF and a code. FF D8 opens the file. An APP1 segment holds the Exif details and a small thumbnail, quantization and Huffman tables record how the picture was compressed, a frame header gives the width and height, and the compressed data runs to the FF D9 end marker.

To compress, the encoder converts the picture to one brightness and two color channels, often stores color at half resolution, splits it into 8 by 8 pixel blocks and turns each block into frequencies with a discrete cosine transform. Rounding away the fine frequencies is the lossy step; Huffman coding then packs what remains.

The segments of a typical phone photo, in file order.

How to open a JPG file

Windows

  • PhotosBuilt in. Opens and edits JPEG photos.
  • Universal File Opener for WindowsOursViews photos and steps through a folder, crops, resizes and adjusts copies, removes metadata, and reads text with offline Windows OCR.

Mac

  • PreviewBuilt in. Opens JPEG and saves PNG, HEIC, TIFF or PDF copies with File, Export.
  • PhotosBuilt in. Imports, edits and exports JPEG photos.

iPhone and iPad

  • PhotosBuilt in. Keeps JPEG photos in their original format in your library.
  • FilesBuilt in. Touch and hold the file, tap Open With, then Preview with Quick Look.

Android

  • Google PhotosFree and preinstalled on many phones. Lists .jpg among the photo types it backs up.
  • Universal File OpenerOursCrop, adjust, add filters and markup, resize or compress, see the Exif details and save a copy without location. Single-photo edits save free.

In a browser

  • Universal File OpenerOursDrop photos on this page to view them, resize, rotate or convert a copy, or save one without its location. Nothing is uploaded.

Won’t open?

The photo shows sideways or upside down

Cameras store the picture as the sensor saw it and record the turn in an Exif orientation tag, which some apps and websites ignore. Rotate the photo and save a copy, which turns the pixels themselves.

It ends in .jpg but will not open

It may be another format with a .jpg name, such as a WebP that a website sent for a .jpg address. Strict apps refuse it. Drop it here to see what it really is, then convert it.

The bottom of the photo is gray or cut off

The file is incomplete, usually from an interrupted download or copy, so the viewer draws only the part that arrived. Copy the photo again from the original; the missing part cannot be rebuilt.

A website says the photo is too large

Make a smaller copy. Drop it here and resize it, or use Compress in our Android app, which shows the new file size before you save.

The file ends in .jfif

A .jfif file is an ordinary JPEG with a less common extension. Rename it to .jpg if an app or upload form refuses it.

Convert a JPG file

  • To PNGMac: open it in Preview, choose File, Export and pick PNG. Windows: in Universal File Opener for Windows choose Export, Save as and name the copy .png. Android: Edit, Convert, PNG.
  • To PDFMac: in Preview choose File, Export and pick PDF. Android: share several photos to Universal File Opener and choose Images to PDF to make one PDF.

JPG files in our apps

Universal File Opener opens JPEG photos on Android, Windows and in the browser. The apps crop, adjust, resize and compress, show Exif details and save copies without location. Every single-photo edit and conversion on Android saves free.

Get it on Google PlayGet it from Microsoft Store
All Android tools and limits for JPG files
  • Full editor: crop with aspect presets and straighten, ten adjustment sliders with one-tap Auto, filters with live previews, markup, resize and compress with live size estimates.
  • Metadata: view EXIF (location, date, camera, software) and save a stripped “-clean” copy; normal edits can preserve EXIF.
  • Convert to PNG, WebP, and 15+ other formats; combine several photos into one PDF; print; set as wallpaper.
  • Remove background: Remove background on Home makes a PNG copy with a transparent background. Preview automatic removal for simple backgrounds, or use the manual tools.
  • Every single-photo edit and conversion saves free. JFIF images use the same viewing and saving tools as JPEG.

Limits

  • JPEG is lossy: each re-save at lower quality costs a little fidelity. The compress tool shows the size estimate so the trade is visible.

Walkthrough: Edit and convert images on Android