Loona Automation logoLoona Developer Tools
Home › Developer Tools › File Type Detector

File Type Detector - What the File Really Is, Not What It Is Named

In short: the File Type Detector reads a file's magic bytes - the signature in its first bytes that its format cannot fake - identifies the real type among 35 common formats, and warns when that disagrees with the file extension.

A file named photo.jpg that is really an executable is one of the oldest tricks there is. The header never lies, and it never leaves your device here.

Only the file header (first 64 KB) is read, on your device. The file is never uploaded.

Private by design: everything in this tool happens 100% in your browser with JavaScript. Your input is never uploaded to a server, never stored and never seen by us - close the tab and everything is gone.

How to use the File Type Detector

  1. Choose any file.
  2. Read the detected type and what the extension claims.
  3. If they disagree, the warning explains why that matters.

How it works

Most binary formats begin with fixed signature bytes: PNG always starts 89 50 4E 47, PDF with %PDF, ZIP with PK, an MP4 carries 'ftyp' at byte 4, a TAR archive carries 'ustar' at byte 257 and an ISO image 'CD001' at byte 32769 - which is why this tool reads the first 64 KB, not just the first few bytes. Detection checks 35 signatures. Two honest limits: formats that are themselves ZIPs (DOCX, APK, JAR) detect as ZIP, because that is what their bytes are; and signature-less text formats (TXT, CSV, JSON) cannot be identified this way, so the tool says 'Unknown' rather than guessing.

Frequently Asked Questions

Is this detector free?

Yes - completely free, no sign-up.

How many formats can it detect?

35 signatures: images, documents, archives, audio, video, executables, databases, fonts and more.

A DOCX shows as ZIP - is that wrong?

No. DOCX, XLSX, APK and JAR files genuinely are ZIP archives at the byte level; the detector reports the container truth.

Can this prove a file is safe?

No. It proves what format the header claims. A real PNG can still contain a malicious payload - keep using antivirus for safety decisions.

Is my file uploaded?

No. Only its first 64 KB are read, locally, in your browser.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.