EXIF Viewer
Free web tool: EXIF Viewer
Drop a file here, or
Choose fileJPG, PNG, WebP image files (max 50MB)
About EXIF Viewer
The Image Info Viewer is a browser-based tool that extracts and displays detailed metadata from image files without uploading them to any server. When you drop or select an image file, the tool immediately creates a local object URL, renders a preview of the image, and reads its natural pixel dimensions using an HTML Image element's naturalWidth and naturalHeight properties. From these dimensions, it derives additional metrics including the megapixel count and the aspect ratio. File-level metadata such as the filename, file size (formatted in B/KB/MB/GB), MIME type, and last modified timestamp are read directly from the browser's File API.
This tool is commonly used by photographers, graphic designers, and web developers who need to quickly verify image properties before using them in a project. A photographer might use it to confirm that a photo is the expected resolution before submitting it for print. A web developer might use it to check whether an image meets the minimum dimensions required for a hero banner or to verify that the aspect ratio matches their design. Content managers uploading assets to a CMS often use it to confirm file sizes stay within upload limits without opening Photoshop or any other application.
The tool processes everything locally using two browser APIs: the File API provides file metadata (name, size, type, lastModified), and the Image API (new Image()) provides the rendered pixel dimensions. The preview is displayed using the same object URL, which is properly revoked when the user selects a new image to prevent memory leaks. The metadata table renders nine properties: filename, file size, file type, image width, image height, full resolution string (width × height), megapixel count, aspect ratio (width/height as a decimal), and last modified date in the user's local time.
Key Features
- Reads image dimensions (width × height in pixels) using the Image API's naturalWidth/naturalHeight
- Calculates megapixel count: (width × height) / 1,000,000 to one decimal place
- Calculates aspect ratio as a decimal (width/height) to two decimal places
- Displays file size in human-readable format: B, KB, MB, or GB automatically
- Shows MIME type (image/jpeg, image/png, image/webp, etc.) from the File API
- Displays last modified timestamp in the user's local date/time format
- In-browser image preview with max-height constraint to fit within the page
- 100% client-side — no server upload required, works with any image up to 50MB
Frequently Asked Questions
What image formats does this tool support?
The tool supports any image format that your browser can render, including JPEG, PNG, WebP, GIF, BMP, SVG, AVIF, and HEIC (on supported devices). The file type is read from the File API and displayed as the MIME type.
Is my image uploaded to any server?
No. The image is processed entirely within your browser using the File API and Image API. A local object URL is created (URL.createObjectURL) for the preview and dimension reading, and it is revoked when you select a new image. No data ever leaves your device.
How is the megapixel count calculated?
Megapixels = (image width in pixels × image height in pixels) / 1,000,000. For example, a 4000×3000 pixel image has 4000 × 3000 / 1,000,000 = 12.0 megapixels. This matches the megapixel rating used by camera manufacturers.
What does the aspect ratio number mean?
The aspect ratio is calculated as width divided by height, displayed as a decimal to two places. For example, a 1920×1080 image has an aspect ratio of 1920/1080 = 1.78, which corresponds to the 16:9 widescreen format. A square image (e.g., 500×500) has an aspect ratio of 1.00.
Why does the file size sometimes differ from what I see in my file system?
The file size displayed is the exact byte count reported by the browser's File API, which matches the actual size of the file on disk. Small discrepancies you might see in file system explorers are usually due to how the OS reports disk usage (cluster size rounding) versus the actual file byte count.
Can I use this to check if an image meets web requirements?
Yes, this is a common use case. You can quickly verify that an image has the required minimum dimensions, stays within a maximum file size limit (e.g., under 2MB for web uploads), has the correct file type, and has the expected aspect ratio before uploading to a CMS or website.
What is the maximum file size supported?
The tool supports image files up to 50MB. Larger files may cause the browser to run slowly or run out of memory when creating the preview. For very large images (like raw camera files), consider using a desktop application instead.
Why is the image type shown as "Unknown" for some files?
Some files may not have a recognized MIME type reported by the browser's File API, particularly if they lack a standard file extension or are unusual formats. In this case, the tool displays "Unknown" for the file type while still attempting to load and preview the image.