Know the format before you convert the file.
Readable, practical guides to the origins, tradeoffs, compression behavior, and best uses of the image formats people meet every day.
JPEG: the photographic workhorse of the web
JPEG made digital photography practical by throwing away visual detail the eye rarely notices. It is still the default format for photos, thumbnails, uploads, and camera exports.
PNGPNG: lossless pixels, transparency, and dependable screenshots
PNG keeps exact pixel values, supports alpha transparency, and works beautifully for screenshots, diagrams, icons, and graphics with hard edges.
GIFGIF: the tiny animated loop that outlived its limits
GIF is technically limited, but culturally powerful: an indexed-color format that became the web's shorthand for lightweight looping animation.
WebPWebP: Google's compact image format for modern pages
WebP was built for the web: smaller photo files than JPEG in many cases, lossless mode for graphics, alpha transparency, and animation in one format.
AVIFAVIF: AV1 compression packed into still images
AVIF packages AV1-coded image data inside the ISO base media file family, giving still images advanced compression, alpha, wide color, and HDR options.
HEIC / HEIFHEIC and HEIF: efficient phone photos with a container mindset
HEIF is a flexible image container; HEIC commonly means HEIF images compressed with HEVC. It saves space on phones but often needs conversion for older workflows.
SVGSVG: images drawn with geometry instead of pixels
SVG is a vector format: it describes shapes, text, gradients, and paths rather than storing a fixed pixel grid. That makes it perfect for icons and diagrams.
TIFFTIFF: the flexible archive format for scans and production images
TIFF is a flexible, tag-based image container prized for scans, archives, prepress, and workflows that need high bit depth or lossless storage.
BMPBMP: simple Windows bitmaps and why they are still around
BMP is straightforward and often bulky: a Windows bitmap format that stores pixels with minimal complexity and broad legacy support.
ICOICO: the multi-size icon container behind favicons
ICO is a container for small icon images at multiple sizes. It is old, specialized, and still useful for favicons and Windows desktop icons.
PDFPDF: a document format that carries images with intent
PDF is not a simple image format. It is a page description format that can package images, text, vector art, fonts, metadata, and print intent.
RAW / DNGRAW and DNG: sensor data before the camera bakes the photo
RAW files keep camera sensor data and metadata before final processing. DNG is Adobe's openly documented raw container for long-term interchange.
Base64Base64 image data URLs: pixels turned into text
Base64 is an encoding, not an image format. It turns binary image bytes into safe text that can be embedded in HTML, CSS, JSON, or test fixtures.
STLSTL: triangle meshes for 3D printing and simple reliefs
STL is a 3D mesh format, not a normal image format. It represents surfaces as triangles, which makes it useful for 3D printing and heightmap experiments.
GLB / glTFGLB and glTF: the web's portable 3D asset package
glTF is a modern 3D asset format from Khronos. GLB is its binary package form, bundling geometry, materials, textures, and scene data into one file.
JPEG XLJPEG XL: a modern image format built for quality and migration
JPEG XL is a modern image codec from the JPEG standards family, designed for high quality, efficient compression, wide color, animation, and smooth migration from JPEG.