Free webp to jpg
JPEG-AI

JPEG AI Image

image/jaii Released 2025 · by Joint Photographic Experts Group (ISO/IEC JTC 1 / ITU-T)

The image/jaii MIME type represents a JPEG AI coded image. Standardized in 2025 as ISO/IEC 6048 (ITU-T T.840), JPEG AI is the first international image coding standard based entirely on an end-to-end deep learning (neural network) architecture. Rather than using traditional block-based transforms like the DCT, it uses a variational autoencoder with hyperpriors to achieve unprecedented compression efficiency. Uniquely, it provides a compact compressed-domain representation (latent tensors) designed to be directly consumed by computer vision algorithms without requiring full image reconstruction.

Graphics & Learning-Based Compression Transparency Animation Progressive ✦ HDR Production Ready

Technical Specifications

MIME Type
image/jaii
Extensions
.jaii
Container
ISOBMFF / HEIF
Compression
Lossy (Variational Autoencoder / Neural Network)
Algorithms
Deep Neural Network (Variational Autoencoder with Hyperpriors)
Color Depth
8-bit, 10-bit, 12-bit, 16-bit, Wide-gamut & HDR
Metadata
EXIF XMP ICC
Capabilities
Transparency
Animation
Progressive Loading
Alpha Channel
HDR Support

Magic Bytes & HTTP Headers

File Signature (Magic Bytes)
.. .. .. .. 66 74 79 70 6A 61 69 69 (Size + ftypjaii)
ASCII: ....ftypjaii
HTTP Headers
Content-Type: image/jaii
HTML Accept Attribute
accept="image/jaii, .jaii"

Browser Support Matrix

Browser Status Min Version
Chrome Chrome
Not Supported
Firefox Firefox
Not Supported
Safari Safari
Not Supported
Edge Edge
Not Supported
Internet Explorer Internet Explorer
Not Supported Legacy

Advantages & Limitations

Advantages
  • Provides state-of-the-art compression efficiency, dramatically outperforming traditional block-transform codecs like JPEG or HEIC [2.2.2]
  • Allows machine vision models to process the raw 'latent tensors' in the compressed stream natively, drastically reducing inference latency by bypassing image reconstruction
  • Supports 'multi-branch decoding', enabling a single codestream to be decoded at varying complexity levels depending on the target hardware's power (e.g., mobile NPU vs. cloud GPU)
Limitations
  • Lacks native decoding support in current web browsers and legacy operating systems [3.2.1]
  • Decoding relies on neural network inference which can be heavily computationally demanding on hardware lacking dedicated AI accelerators (NPUs/GPUs)
  • Introduces new vectors for security and forensic analysis, as end-to-end learned structures react differently to adversarial attacks compared to traditional formats

Developer Code Snippets

import magic
# Note: Due to its novelty, older versions of libmagic may just output 'video/mp4' or 'application/octet-stream' based on the ISOBMFF container.
print(magic.from_file('ai_image.jaii', mime=True))
const fs = require('fs');
// Manually detecting the JPEG AI brand in the ISOBMFF ftyp box
const buffer = Buffer.alloc(12);
const fd = fs.openSync('ai_image.jaii', 'r');
fs.readSync(fd, buffer, 0, 12, 0);
fs.closeSync(fd);
const isFtyp = buffer.toString('ascii', 4, 8) === 'ftyp';
const isJaii = buffer.toString('ascii', 8, 12) === 'jaii';
console.log(isFtyp && isJaii);
import (
    "bytes"
    "net/http"
)
// Custom ISOBMFF detection for the JPEG AI brand
// func isJPEG_AI(buf []byte) bool {
//     return len(buf) > 12 && string(buf[4:8]) == "ftyp" && string(buf[8:12]) == "jaii"
// }
// Standard PHP setups may default to identifying the ISOBMFF container.
$mime = mime_content_type('ai_image.jaii');
echo $mime; // Depending on server updates, may need manual hex sniffing.

File Detection Steps

How to programmatically detect a image/jaii file by reading its raw bytes:

  1. 1 Check the standard ISOBMFF header. The first 4 bytes indicate the length of the 'ftyp' box.
  2. 2 Verify bytes 4-7 are exactly 'ftyp' (66 74 79 70).
  3. 3 Verify the major brand or one of the compatible brands within the 'ftyp' box contains the 'jaii' brand string (6A 61 69 69).

Software Support

J
JPEG AI Reference Software (T.JPEG-AI-RS)

Conversion Tools

Share & Embed

Markdown Badge
JPEG-AI Format Badge
[![JPEG-AI Format](https://freewebptojpg.com/mime/image/jpeg-ai/badge.svg)](https://freewebptojpg.com/mime/image/jpeg-ai)
Interactive iframe Widget
<iframe src="https://freewebptojpg.com/mime/image/jpeg-ai/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="JPEG-AI Specs"></iframe>

JSON API

All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.

GET https://freewebptojpg.com/mime/image/jpeg-ai.json Open JSON
Free to use
No auth required
CORS enabled
Use from any domain
Cached 24h
Cache-Control headers set

Frequently Asked Questions

What is the difference between standard JPEG and JPEG AI?

Standard JPEG uses hand-engineered, block-based Discrete Cosine Transforms (DCT) to compress images. JPEG AI replaces these with globally optimized deep neural networks (variational autoencoders), achieving up to a 30% reduction in file size at equivalent visual quality while natively supporting continuous variable-rate coding and machine vision tasks.

Can I open image/jaii files in a web browser?

No. JPEG AI is a nascent standard (finalized in 2025) and currently lacks native support in modern web browsers. Viewing these files requires the official JPEG AI Reference Software or specialized viewer plugins.

What are the magic bytes for a JPEG AI file?

JPEG AI utilizes the ISOBMFF/HEIF container structure. A valid file begins with the standard 'ftyp' box, typically featuring 'jaii' as the major brand. You will find the ASCII sequence 'ftypjaii' starting at byte offset 4.

Related Formats

Share this format