Media & Privacy
Media Info: Inspect a File Before You Share It
Choose a media file to read its format, size, dimensions or duration without uploading anything.
Local file inspector
- File name
- -
- Reported type
- -
- Size
- -
- Dimensions
- -
- Duration
- -
- Last modified
- -
Values are read from the file object and from the browser's image and media decoders. Container details such as codec profile, bitrate and colour space are not exposed.
Choose a file. It stays on this device and is never uploaded.
This test runs entirely in your browser. Nothing is uploaded or stored on a server.
What the inspector reads
The page takes a file object from the picker and reads four values directly from it: the name, the type string, the byte size and the last modified time. It then creates a temporary object address so that the browser can decode a preview, and that decoder supplies the dimensions of an image or video and the duration of an audio or video file.
No upload occurs. The object address points at the local file inside the tab, and the readouts are filled from decoding that local copy.
Reading each value
The reported type comes from the operating system's mapping of the file extension. A camera photo usually arrives as image/jpeg, a screen recording as video/mp4 and a music track as audio/mpeg. An empty type or application/octet-stream means the extension is not mapped, not that the file is damaged.
Size is displayed in binary units. A file of five million bytes reads as roughly four point eight megabytes here, because each megabyte is 1024 kilobytes and each kilobyte is 1024 bytes. Last modified is the timestamp the file system stored, shown in the local time zone of the browser.
Dimensions are the decoder's natural size in pixels, independent of how large the preview appears on screen. Duration is reported in seconds once the browser has parsed enough of the container. Images report no duration, and audio reports no dimensions.
Images, audio and video
An image is decoded by the image element. Formats that the browser supports appear immediately, while a raw camera format or an unsupported profile shows the warning state instead. A video needs both a supported container and a supported codec before the preview and the duration appear, which is why a file can play in a desktop player and still fail here.
Audio is the simplest case. The preview controls appear after metadata arrives, and the duration is the decoded length rather than an estimate from the bitrate.
Where the reading stops
The browser does not expose codec profiles, bitrate, colour space, rotation flags, sample rate or channel layout to page scripts. It also cannot tell you whether a file is corrupt beyond the point where the decoder gives up. For a full inspection, use a dedicated media tool.
For the devices that produce these files, the camera test and microphone test cover capture, and the screen test helps check the display used to view them. The privacy permissions check shows which device permissions this browser would grant, while the device info page lists screen and platform values that affect playback.
When a file will not open
A file that fails in a media player but previews here is usually a container or codec problem rather than a damaged file. The reported type confirms what the browser believes the file is, and the preview confirms whether its decoder can read it. A missing duration with a working image suggests a container whose index sits at the end, while a total failure points at an unsupported codec.
Try the same file in a second browser before concluding anything. Codec support differs between engines, and a file that plays in one and not another is telling you about the browser rather than about the file.
How to use this test
-
Choose a file
Pick an image, audio or video file with the file picker; the file is read from disk inside this tab.
-
Read the metadata
File name, reported type, size and last-modified time come from the file object itself.
-
Check the dimensions
Images and videos report width and height after the browser decoder has read them.
-
Check the duration
Audio and video report their length once enough metadata has been parsed.
-
Clear the preview
Press Clear to revoke the local preview address and empty the readouts.
How to read the numbers
| Signal | Typical reading | How to read it |
|---|---|---|
| Reported type | image/jpeg | Mapped from the file extension; an empty value means no mapping. |
| Size | Binary units | One kilobyte is 1024 bytes, so the number can differ from a file manager. |
| Dimensions | Image or video pixels | Natural decoder size, not the size of the preview on screen. |
| Duration | Seconds | Available after enough metadata is parsed; video containers vary. |
| Modified | Local timestamp | The value stored by the file system, shown in local time. |
Browser support
| Browser | Support | Notes |
|---|---|---|
| Chrome and Edge | Supported | Decodes common image, audio and video containers. |
| Firefox | Supported | Some proprietary codecs may be unavailable. |
| Safari | Supported | Strong support for Apple formats and HEVC. |
| Mobile browsers | Supported | Large files may be limited by available memory. |
Tips
- A file type of application/octet-stream usually means the extension is unknown rather than the file being corrupt.
- Compare the reported dimensions with the file properties in your file manager to confirm the decoder agrees.
- Very large videos can take a moment before duration appears; wait for the preview controls to settle.
Frequently asked questions
Where is my file sent when I choose it?
Nowhere. The file is opened through a temporary local address that exists only inside this tab, and the page only reads the values the browser decoder already exposes.
Why is the duration missing for a video file?
Some containers keep the duration near the end of the file, so the browser must read further before it can report a length. A codec the browser cannot decode also leaves the duration blank.
Does the page show the codec or bitrate?
No. Browsers do not expose container or codec details to page scripts. Only the file type string, the decoded dimensions and the duration are available.
Why does the size differ from the number on the file manager?
The page uses binary units, where one kilobyte is 1024 bytes. Some file managers show decimal units, where one kilobyte is 1000 bytes, so the same file can appear slightly smaller there.