Transloadit
Pricing
  • File Uploads
  • File Importing
  • Video Encoding
  • Audio Encoding
  • Image Processing
  • Document Processing
  • Artificial Intelligence
  • File Filtering & Security
  • Media Cataloging
  • File Compression
  • Code Evaluation
  • File Exporting
  • Smart CDN
  • View all services
  • Explore integrations
  • Explore live demos
  • Uppy
  • TransloaditKit
  • Android SDK
  • Node SDK
  • Python SDK
  • Ruby SDK
  • Go SDK
  • Java SDK
  • PHP SDK
  • Zapier
  • MCP Server
  • Terraform
  • Essentials
  • Best Practices
  • FAQ
  • Robots
  • API
  • Formats
  • Build your first app
  • About
  • Comparisons
  • Open Source
  • Testimonials
  • Jobs
  • Security
  • Posts
  • DevTimes
  • DevTips
  • Press
  • Research
  • Case Studies
  • Solutions
  • Guides
  • Glossary
  • Legal
  • Tools
  • Helping Coursera bring education to millions around the world
  • Transloadit Support
  • Open Source Support
  • Service level agreement
EssentialsRobotsFAQAPIFormatsBest Practices
Supported formats & codecs
  • Overview
  • Video codecs
  • Audio codecs
  • Audio/video filters
  • Audio/video formats
  • Image formats
  • Fonts
  • Archiving
Image formats
  • What is an AVIF file?
  • What is a GIF file?
  • What is a HEIC file?
  • What is a JPEG file?
  • What is a PNG file?
  • What is an SVG file?
  • What is a WebP file?
Audio formats
  • What is an MP3 file?
  • What is a WAV file?
Video formats
  • What is a MOV file?
  • What is an MP4 file?
  • What is a WebM file?
Document formats
  • What is a PDF file?

What is a JPEG file? Everything you need to know about the JPEG format

A JPEG file is a compressed raster image designed primarily for photographs and other continuous-tone pictures. JPEG is one of the most widely supported image formats. Files commonly use .jpg or .jpeg; both extensions represent the same format.

How does JPEG work?

JPEG divides an image into blocks, converts color data into frequency information, reduces details that human vision is less sensitive to, and compresses the remaining values. This is lossy compression: discarded information cannot be recovered from the encoded file.

A quality setting controls the tradeoff. Higher quality preserves more detail but creates a larger file. Repeatedly opening and re-saving a JPEG can compound artifacts, so retain a high-quality source for future edits.

Benefits of JPEG

  • Universal compatibility: works in browsers, cameras, editors, office software, and social apps.
  • Good photo compression: efficient for gradients, textures, and natural scenes.
  • Fast processing: encoders and decoders are mature and inexpensive to run.
  • Progressive delivery: progressive JPEGs can show a coarse image before the full file arrives.

Limitations of JPEG

JPEG does not support alpha transparency or animation. Compression can create ringing, blocking, or blur around text and sharp edges. It is a poor archival choice when exact pixels matter and is often less efficient than WebP or AVIF for web delivery.

Use PNG or SVG for crisp interface graphics, and consider WebP or AVIF when reducing transfer size is more important than supporting very old software.

JPEG compared with PNG, WebP, and AVIF

FormatBest fitCompressionTransparency
JPEGPhotos and maximum compatibilityLossyNo
PNGScreenshots and exact graphicsLosslessYes
WebPGeneral modern web deliveryLossy or losslessYes
AVIFHigh-efficiency modern deliveryLossy or losslessYes

How to optimize JPEG files with Transloadit

🤖/image/resize can resize, strip unnecessary metadata, and encode a JPEG at a controlled quality:

{
  "steps": {
    ":original": { "robot": "/upload/handle" },
    "jpeg": {
      "use": ":original",
      "robot": "/image/resize",
      "format": "jpg",
      "width": 1600,
      "quality": 85,
      "strip": true
    }
  }
}

For additional lossless optimization, pass the result to 🤖/image/optimize.

JPEG FAQ

Is JPG different from JPEG?

No. .jpg and .jpeg are filename extensions for the same image format.

What JPEG quality should I use?

There is no universal value. Values around 80–85 are a useful starting point for web photographs, but evaluate representative images at the dimensions your users will actually see.

Does JPEG support transparency?

No. Use PNG, WebP, AVIF, or SVG when transparent pixels are required.

Related demos

  • Change JPEG quality
  • Convert JPEG to WebP
  • Watermark an image
Previous page ← What is a HEIC file?Next page What is a PNG file? →
TransloaditChecking status…

Product

  • Services
  • Pricing
  • Demos
  • Tools
  • Security
  • Support

Company

  • About/Press
  • Blog/Jobs
  • Comparisons/Compliance matrix
  • Research
  • Open source
  • Solutions

Docs

  • Getting started
  • Transcoding
  • FAQ
  • API
  • Guides/DevTips
  • Supported formats

More

  • Platform status⁠
  • Community forum⁠
  • StackOverflow⁠
  • Uppy
  • tus⁠

© 2009–2026 Transloadit-II GmbH

PrivacyTermsImprint