fileformat

File Format Identifier

Inspect a file's magic-byte signature to identify its real format, no matter the extension. Runs 100% in your browser — nothing you upload here ever touches a server.

File to inspect

Drop any file here or click to upload Nothing is uploaded anywhere — inspected in your browser only

Detection report

Why identify a file's real format

File extensions are just labels attached by whoever saved the file, and they're easy to get wrong: a renamed file, a broken download, or a file sent without an extension at all can leave you unsure what you're actually looking at. Every real file format, however, starts with a small, distinctive sequence of bytes called a magic number or file signature. This tool reads those first bytes directly and tells you what format the file actually is, regardless of what its name claims.

How signature detection works

When you drop a file onto this page, the tool reads only the first few dozen bytes using the browser's FileReader API and converts them to hexadecimal. It then compares that hex sequence against a table of well-known signatures, covering common document formats like PDF and legacy Office files, image formats like PNG, JPEG, and GIF, archive formats like ZIP, RAR, and 7-Zip, and several audio, video, and executable formats.

Why this catches ZIP-based formats too

Many modern formats, including .docx, .xlsx, .epub, and .jar, are technically ZIP archives with a specific internal folder structure. Because they all share the ZIP file signature at the byte level, the tool reports them as a ZIP-based archive, which is genuinely accurate, and lists the file types that commonly share that signature so you know what to check next if you need to distinguish between them.

Where this is genuinely useful

This tool is handy when a downloaded file has no extension, when an email attachment's extension looks suspicious, or when a colleague sends you a file that won't open in the program its name suggests it should. It's also useful for developers debugging file upload logic, confirming that a file really is the type its MIME type or extension claims before trusting it in a pipeline.

What it can't tell you

Signature matching identifies the container format, not whether the file is otherwise valid, uncorrupted, or safe to open. A file can have a perfectly correct PDF signature and still be damaged further into the file, or contain unwanted content. Treat this as a first, fast check, not a substitute for a proper virus scan or a full structural validation of the file.

Step-by-step walkthrough

Drop any file onto the upload area or click to browse for it on your device; there's no need to paste text since this tool inspects binary content directly. Click Identify File and within moments the detection report lists the file's first bytes in hexadecimal alongside any matching known format signatures. If you want to keep a record of the analysis, click Download Report to save it as a plain text file alongside the original.

Privacy and performance

Because the file format identifier runs as JavaScript inside your own browser tab rather than on a remote server, there's no upload step, no waiting on a network connection, and no copy of your file sitting on someone else's infrastructure afterward. That also means it keeps working exactly the same whether your file is a few bytes or several megabytes, limited only by your own device's memory rather than a server's queue or rate limit. If you ever want to double-check that nothing is being transmitted, your browser's built-in developer tools network tab will show no outgoing request for the file's contents at any point during conversion. This also means the tool keeps working offline once the page has loaded, and closing the tab afterward leaves no copy behind on any server, since one was never made in the first place. That's a meaningful difference from typical online converters, which usually require uploading your file to a remote service before you ever see a result.

Frequently Asked Questions

Does renaming a file's extension fool this tool?

No, the tool ignores the file name entirely and reads the actual bytes at the start of the file, which is exactly what catches mismatched or misleading extensions.

Can it identify a .docx or .xlsx file specifically?

It correctly identifies these as ZIP-based archives, since that's their underlying container format, and notes the common file types that share that signature.

Does it check whether the file is safe or virus-free?

No, this tool only identifies the file format from its signature; it does not scan for malware and shouldn't be used as a substitute for antivirus software.

What if no signature matches?

The tool reports that no known signature matched, which usually means the file is plain text or an uncommon or custom binary format not in the reference table.

Is the uploaded file sent anywhere for analysis?

No, only the first few bytes are read locally in your browser using the FileReader API; nothing is uploaded.