What Is JPEG and When Should You Use It?
Updated
JPEG is a bitmap image format that uses lossy compression to make photographic images much smaller, which is why it is the default format for camera output, web photos, and email attachments. Use it for continuous-tone pictures where small file size matters more than pixel-perfect fidelity. Avoid it for images with transparency, sharp text or line art, or files you plan to re-edit and re-save many times.
How JPEG compression works
JPEG stores an image by discarding detail the human eye is less likely to notice, then compressing what remains. The key mechanism is a quality setting: higher quality keeps more detail and produces a larger file; lower quality shrinks the file but introduces visible artifacts, especially around edges and in smooth gradients.
A useful example: a 4000-pixel-wide photo saved at high quality may look identical on screen to the original but occupy a fraction of the space. Save that same file at a very low quality and you will see blocky patches in skies and "ringing" halos around high-contrast edges.
Because compression is lossy, each save-and-resave cycle discards more data. Treat the JPEG as an output format, not a working format — keep an original or a lossless master if you expect to edit repeatedly.
Where JPEG fits
| Situation | JPEG suitable? | Why |
|---|---|---|
| Web photos, hero images, thumbnails | Yes | Small files load faster; quality loss is usually invisible at screen size |
| Email or messaging attachments | Yes | Widely supported and compact |
| Camera and phone photo output | Yes | Standard capture format |
| Images needing transparency | No | JPEG has no alpha channel |
| Screenshots, logos, text, line art | Usually no | Sharp edges show compression artifacts; PNG or SVG is better |
| Files edited and re-saved many times | No | Repeated lossy saves degrade quality |
| Multi-page documents | No | Use PDF instead |
JPEG vs. the alternatives
- PNG: lossless, supports transparency, better for graphics, text, and screenshots; larger for photos.
- GIF: limited palette, supports simple animation and transparency; poor for photos.
- WEBP: modern format offering both lossy and lossless modes with transparency; often smaller than JPEG at similar quality, but check that your target viewer supports it.
- PDF: a document container, not a photo format; use it when you need pagination or print-ready layout.
If you need transparency or crisp edges, choose PNG. If you want smaller files and your audience's software supports it, consider WEBP. For plain photographs headed to a browser or an inbox, JPEG remains the safe default.
Open, edit, and save as JPEG in the browser
Tom's Editor is described on its site as a free, online image editor that requires no installation and can load images in more than 500 formats, including JPEG, PNG, GIF, SVG, and PDF. The same site offers a separate online converter for batch format changes.
- Prepare the file. Have the image on your computer in any common format. If it is a PDF or an uncommon format, the editor's broad format support is the reason to try loading it directly.
- Open the editor. Use the site's "Open Tom's Editor" entry point. No install step is described.
- Load the image. Bring your file into the editor.
- Make your edits. The site lists resizing, rotating, and filters/effects such as Sepia, Grayscale, and Instagram-like filters. Applying a filter shows a preview before you commit, per the site.
- Save in the format you need. The editor can save as JPG, PNG, GIF, DDS, PCX, TGA, FLIF, WEBP, PSD, PDF, PNM, and SVG. Choose JPG for a photographic result.
- Verify the output. Reopen the saved file and check size and appearance, particularly around edges and gradients, since JPEG quality affects both.
Common snags:
- If the saved file looks blocky, the quality setting was too low — re-save from the original, not the degraded copy.
- If you need a transparent background, saving as JPG will not preserve it; use PNG.
- For many files at once, the site's separate converter accepts drag-and-drop and a "Convert Now!" action, and is described as handling multiple images in one pass.
Deciding quickly
Choose JPEG when the image is a photograph, the destination is a screen or an inbox, and file size matters. Choose PNG when you need transparency or sharp text. Choose WEBP when you control the viewing environment and want smaller files. Choose PDF when the output is a document. And whenever you plan further edits, keep a lossless master so repeated JPEG saves don't compound the loss.