Skip to content

Check file type & info

See the real type, size, dimensions, page count and PDF details of any file, and spot a wrong extension.

Updated

Add your files

any file

You can also paste a screenshot with Ctrl+V

How to inspect a file

  1. 1

    Add one or more files of any kind.

  2. 2

    There is nothing to set: each file is identified from its first bytes, and a PDF is opened to count its pages and read its title.

  3. 3

    Press Inspect file. The report covers every file and is saved as file-report.txt; the result counts the files inspected.

  • Use Edit PDF metadata when you want to change or blank the title, author and dates of a PDF rather than look at them.
  • Use Remove image metadata when the file is a photo and you want its EXIF data gone; this report does not list it.

What the report lists

For every file: its size in readable units and in bytes; the Detected type as a MIME type; the Extension from the name, with a note when it does not match the content and the type the file was treated as; and a Category, one of pdf, image, word, sheet, slides, text, archive or unknown. A PDF adds its page count, whether it is password protected, whether printing, copying or editing is restricted by an owner password, whether it has form fields, whether it has no text layer and so is a scan, and its Title when one is set. A picture adds its dimensions in pixels when the browser can decode it; most TIFF files and iPhone HEIC photos show none.

How the type is found

The first 4 KB of the file are compared with the signatures of PDF, PNG, JPEG, GIF, TIFF, WebP, BMP, ICO, HEIC, AVIF, MP4, ZIP, RAR, 7z, gzip, RTF and the Windows, Linux and Mac executable formats. A ZIP is looked into further: its index is read to tell a Word, Excel or PowerPoint document, or an OpenDocument file, from a plain archive, and an old-style Office file is told from the names of the streams inside it. Anything else that decodes as text is reported as text, HTML, SVG, CSV, JSON or Markdown, the last three by their name. EXIF data in photos, document properties in Office files and the author and keywords of a PDF are not read here.

Questions about Check file type & info

What does "does not match the content" mean?

The extension in the name claims a format other than the one the bytes show, such as a .jpg that is really a PNG or a .pdf that is really HTML. The report says which type the file was treated as. Names that mean the same format, .jpg and .jpeg or .tif and .tiff, are not flagged.

Does it show EXIF or document properties?

No. It reads the first bytes and the structure of the file, and for a PDF the page count, protection, form fields, text layer and title. Camera details, GPS and timestamps in a photo, and the author, company and revisions in a Word file, are not read.

Why does my image show no dimensions?

The browser could not decode it. Dimensions come from decoding the picture in your browser, which most TIFF files and iPhone HEIC photos do not allow.

Advertisement