{"id":"image-jpeg","mimeType":"image/jpeg","name":"JPEG Image","shortName":"JPEG","category":"Web","extensions":[".jpg",".jpeg",".jpe",".jfif"],"description":"JPEG (Joint Photographic Experts Group) is the world's most widely supported image format, using lossy DCT compression optimized for complex photographic images. Released in 1992, it remains the universal standard for photography on the web.","seo":{"title":"image/jpeg MIME Type | Complete Developer Reference \u0026 Magic Bytes","description":"Complete reference for the image/jpeg MIME type: magic bytes, browser support matrix, HTTP headers, developer snippets, and technical specifications for JPEG.","faqs":[{"question":"What is the magic byte for JPEG?","answer":"The magic bytes for JPEG are FF D8 FF (hex). All valid JPEG files start with this 3-byte signature, which corresponds to the SOI (Start of Image) and APP marker."},{"question":"Does JPEG support transparency?","answer":"No. Standard JPEG does not support transparency or alpha channels. For images requiring transparency, use PNG, WebP, or AVIF instead."},{"question":"Does JPEG support progressive loading?","answer":"Yes. Progressive JPEG encodes the image in multiple passes, allowing browsers to display a low-resolution version immediately while the full image loads — improving perceived performance."}]},"index":{"compression":["Lossy"],"browserSupport":{"score":5,"label":"Universal"},"commonUses":["Photography","Websites","Social Media","Print"]},"technical":{"magicBytes":{"hex":"FF D8 FF","ascii":"ÿØÿ"},"container":"JFIF / Exif","compressionAlgorithm":["DCT (Discrete Cosine Transform)"],"colorDepth":["8-bit"],"transparency":false,"animation":false,"metadata":{"exif":true,"xmp":true,"iccProfile":true},"alphaChannel":false,"progressiveLoading":true,"hdrSupport":false},"history":{"developer":"Joint Photographic Experts Group","released":"1992","specification":"ISO/IEC 10918-1"},"browserSupport":{"chrome":true,"chromeVersion":"All","firefox":true,"firefoxVersion":"All","safari":true,"safariVersion":"All","edge":true,"edgeVersion":"All","internetExplorer":true},"softwareSupport":[{"name":"Adobe Photoshop","logo":""},{"name":"Lightroom","logo":""},{"name":"GIMP","logo":"gimp.svg"},{"name":"Affinity Photo","logo":""},{"name":"Canva","logo":""},{"name":"ImageMagick","logo":"image-magic.webp"},{"name":"Windows Photos","logo":""},{"name":"Apple Photos","logo":""}],"conversion":{"convertTo":["png","webp","avif"],"convertFrom":["png","webp","avif","bmp","gif"]},"developer":{"httpHeaders":[{"header":"Content-Type","value":"image/jpeg"}],"htmlAccept":"image/jpeg, .jpg, .jpeg","fileDetection":["Check first 3 bytes for FF D8 FF signature","Verify SOI marker (FF D8) at byte offset 0"]},"prosCons":{"pros":["Universal support — every browser, OS, and application handles JPEG","Excellent compression for complex photographs with natural color gradients","Rich metadata support: EXIF (GPS, camera settings), ICC color profiles"],"cons":["No transparency — cannot have a transparent background","Lossy compression introduces visible artifacts on sharp edges and text","No animation support"]},"specifications":{"url":"https://jpeg.org/jpeg/","rfc":"RFC 2045","mimeAliases":["image/pjpeg","image/jpg"]},"developerSnippets":{"python":"import imghdr\nprint(imghdr.what('file.jpg')) # Outputs 'jpeg'","nodejs":"const FileType = require('file-type');\nconst type = await FileType.fromFile('file.jpg');\nconsole.log(type.mime); // image/jpeg","go":"import \"net/http\"\n\nmimeType := http.DetectContentType(fileBytes)\nfmt.Println(mimeType) // image/jpeg","php":"$mime = mime_content_type('file.jpg');\necho $mime; // image/jpeg"},"relatedFormats":["png","webp","avif"]}
