JPEG Quality Checker
Estimate the quality of a JPEG file from its quantization tables, and check its size, subsampling, scan type and EXIF data in your browser.
–
–
- Dimensions
- –
- Chroma subsampling
- –
- Scan type
- –
- EXIF metadata
- –
- File size
- –
- Bits per pixel
- –
Quantization tables
A JPEG file does not store a quality setting. The encoder stores quantization tables instead: the larger the values, the stronger the compression. This tool compares those tables with the standard tables of the IJG (libjpeg) encoder at every quality from 1 to 100. Other encoders may use other tables, so the result is an estimate.
How to check the quality of a JPEG
- Drop a JPEG file on the drop zone, or click it to choose the file. The file is read in your browser and is not uploaded.
- Read the headline: Estimated quality ~N. The sentence under it says how sure the match is. An exact match means that the file’s tables are identical to the standard tables for that quality.
- Check the Dimensions, Chroma subsampling, Scan type, EXIF metadata, File size and Bits per pixel boxes.
- Look at Quantization tables to see how many tables the file stores and at what precision.
- Click Check again after choosing another file, or drop a new file on the drop zone.
If the message says the file is not a JPEG, it probably is a PNG, a WebP or a renamed file. If it says the file is truncated, the download was probably interrupted; the values shown come from the part that could be read.
What a JPEG quality setting is
JPEG is a lossy format. Before the image is compressed, each block of 8 × 8 values in the frequency domain is divided by a quantization table, and the result is rounded. A large divisor throws away more detail. The file does not store the quality number used by the encoder, only the tables, so the number has to be inferred.
Most encoders, including the widely used libjpeg library, start from the same standard tables and scale them with a formula that depends on the quality, from 1 for the smallest file to 100 for the largest. This tool computes the tables for each quality from 1 to 100, compares them with the tables in your file, and keeps the quality with the smallest difference.
Two tables are usually stored: table 0 for brightness (luminance) and table 1 for colour (chrominance). Both are used in the comparison when they are present.
Reading the other fields
Chroma subsampling shows how much colour detail is kept. 4:4:4 keeps all of it, 4:2:2 halves the horizontal colour resolution and 4:2:0 halves both directions. Most camera and web JPEGs are 4:2:0.
Scan type tells whether the image is loaded top to bottom (baseline) or as a series of passes from a blurry preview to the full picture (progressive). Both are standard JPEG.
EXIF metadata is present when the file carries camera information such as the date, the exposure or the GPS position. Use the EXIF viewer tool to read it.
Bits per pixel is the file size in bits divided by the number of pixels. A typical web photo lies between about 0.5 and 2 bits per pixel. A very small value means strong compression, and above about 4 bits per pixel the file is usually of high quality.
Limits of the estimate
Phone cameras, image editors and social networks often write their own tables, so the number can be a rough guide only. The message under the headline says when the tables do not follow the standard scale. Images saved with a different format, such as WebP or AVIF, have no JPEG tables at all.
Frequently asked questions
Is the estimated quality the same as the quality slider in my editor?
Often it is close, because many editors use the same scaling as libjpeg. Some use their own scale, however, so a slider at 80 may produce tables that match a different number. Use the result as a guide to the compression level, not as an exact copy of the setting.
Can I raise the quality of a JPEG by checking it?
No. This tool only reads the file and does not change it. To improve a file, you have to recompress it from a better source, which cannot restore detail that was already lost.
Why does my file show no quantization tables?
A file without tables is either damaged or not a standard JPEG. Some tools write JPEG data with no DQT segment. Try opening and saving the file in an image editor, then check it again.
Why do two files with the same quality show different sizes?
The file size depends on the image as well as the tables. A detailed photo with grain needs more data than a plain picture at the same quality, and the subsampling and the scan type also change the size.
Does the tool send my photo anywhere?
No. The file is read in your browser’s memory and nothing is uploaded or stored. The check works offline once the page has loaded.
Which quality should I use for a web photo?
Many web guides suggest a quality between 70 and 85 for photos, which keeps most of the visible detail at a fraction of the size of a lossless file. Test a few values on your own images and compare them at the size where they will be shown.
Related tools
- Image Compressor Compress JPG, PNG and WebP images with a quality slider, compare sizes before and after, and batch-process photos without uploading them.
- Image Resizer Resize JPG, PNG and WebP images by pixels or percentage, keep the aspect ratio and process several photos at once, right in your browser.
- EXIF Viewer EXIF viewer online - see the camera, lens, exposure settings, date and GPS location hidden in a photo, plus IPTC and XMP fields. Private, no upload.