Skip to content
UniKit

File metadata reader

Reads name, byte size, MIME type and last modified time for a batch of local files (File API metadata only — no file contents), sorts by name, size, time or type, and prints an aligned table or CSV with file count, total size, largest file and per-extension counts. A pasted listing is accepted too.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Data source
Selected files: 0

Only the four metadata fields (name, byte size, MIME type, last modified) are read through the File API — file contents are never read and nothing is uploaded. Timestamps use your local time zone.

File information

Columns are padded by display width (CJK counts as two); sizes use binary units, and an unknown size shows as “—” and is excluded from the total.

Choose local files or paste a listing to read metadata

Files: 0 · Total size: — · Largest file: — · Extensions: 0

What this tool does

  • Tidy a downloads folder: drop the files in, sort largest-first and see what is eating the space before deleting anything.
  • Pre-delivery check: sort by last modified to confirm no document edited today was left out.
  • Produce a listing for a colleague or an archive: switch to CSV and paste it straight into Excel — the columns are name, size, sizeHuman, type and lastModified.
  • Inspect the extension mix: the table is followed by per-extension counts (jpg 3 · pdf 1), which shows at a glance what the folder mainly contains.

Example

Input

photo.jpg	1024	image/jpeg	2026-01-02T03:04:05Z
report.pdf	2,500,000	application/pdf	2025-06-30T08:00:00Z
notes

Output

File listing info (3 files · input order)

Name        Size    Bytes    Type             Modified                     
photo.jpg   1.0 KB  1024     image/jpeg       2026-01-02 03:04:05 UTC+00:00
report.pdf  2.4 MB  2500000  application/pdf  2025-06-30 08:00:00 UTC+00:00
notes       —       —        —                —                            

Total: 3 files · 2 with a known size · 2.4 MB
Largest file: report.pdf(2.4 MB)
By extension: (none) 1 · jpg 1 · pdf 1

Scope: only the four metadata fields (name, byte size, MIME type, last modified) from the File API are read — file contents are never read and nothing is uploaded. Timestamps are shown in the caller-supplied offset (UTC+00:00) and sizes use binary (1024-based) units.

That is the real output of the "paste a listing" mode (input order, UTC; the trailing spaces are column padding). The third line has only a name, so its size and type show as “—” and are excluded from the total. When you pick local files the values come from the File API fields name / size / type / lastModified — file contents are never read either.

Frequently asked questions

Does it read or upload file contents?

No. Only four metadata fields from the File API are read: name, size, type and lastModified. Contents are never read and never uploaded, and the page makes no requests, so even multi-gigabyte files return instantly.

Why does the modified time differ from my file manager?

lastModified is a UTC timestamp; this page converts it with the time-zone offset supplied by the caller (the web page passes your local offset, while the example above uses UTC+00:00, hence 03:04:05 instead of 11:04:05). The pure function never reads the system clock, so the same metadata always produces the same table.

How are sizes calculated?

With binary units: 1024 bytes = 1.0 KB and 1048576 = 1.0 MB, with one decimal for KB and above. The exact byte count is printed as well, and the total is summed in bytes before conversion, so rounding never inflates it.

What format should the pasted listing use?

One file per line, with TAB or | separating name, bytes, MIME type and last modified; the last three are optional and show as “—” when missing. Byte counts may contain thousands separators, and timestamps accept ISO 8601 (2026-01-02T03:04:05Z) or epoch milliseconds. A line with a single field is also split on two or more spaces when the second field is numeric. The limit is 2000 files.

Can it read a folder or walk directories?

No. The browser file picker only exposes the files you explicitly select — the page never receives the directory tree — so there is no folder view, recursive scan or path information. Use your operating system file manager for that.

Keywords:file metadatafile listing

Related tools