EXIF Tools logo

File Command Online And File Type Checker

Run the Linux file(1) command through libmagic WebAssembly to identify file types, MIME data, encodings, and extension hints.

Your file is not uploaded. This page runs libmagic in your browser through WebAssembly, and the file stays on your device while detection runs.
Ready.
Browse, drag and drop, or paste a file anywhere on the page. Supported browser flags are a practical libmagic subset, not full CLI parity.

file(1) Output

Results will appear here after libmagic finishes.
No file command data yet.
Raw file(1) Output
Results will appear here after libmagic finishes.

File

No file selected yet.

File Type Checker With libmagic

The main metadata viewer already checks signatures, but this dedicated file type checker runs the Unix file command data through libmagic. Use it for human-readable type descriptions, MIME types, encodings, extension hints, and file(1)-style output.

To keep browser memory and responsiveness under control, the page analyzes up to the first 1 MiB of the file, which aligns with libmagic's default bytes limit closely enough for typical file-command use.

Supported Browser Flags

This page accepts a practical subset of the Linux file flags and maps them to libmagic flags in the browser.

Supported here
  -i, -I, --mime
  --mime-type
  --mime-encoding
  --extension
  -k, --keep-going
  -r, --raw
  -z, --uncompress
  -Z, --uncompress-noreport
  -e, --exclude TEST
  --exclude=TEST
  --exclude-quiet TEST

Ignored because output is already single-file/browser-local
  -b, --brief
  -d
  -n, --no-buffer
  -N, --no-pad
  -S, --no-sandbox

Not implemented here
  -m, -M, -f, -F, -P, -C, -D, symlink/device handling and other host-oriented options

Reference
  file --help
  https://man7.org/linux/man-pages/man1/file.1.html

Credits

The original file command and libmagic project are the reference point for this page. This browser tool uses the WASM wrapper package moshen/wasmagic, which compiles libmagic to WebAssembly.

This page is intended as a browser-side companion to the native command, not a claim of full CLI parity with every host-specific file option.