Find out what a file really is, whatever its name says. The checker reads the signature bytes at the start of the file, looks inside containers such as ZIP and Office files, and warns when the extension does not match, when a program is dressed up as a document, or when extra data is hidden after the end. The file never leaves your browser.
How Can You Verify That Your Data Never Leaves This Browser?
You do not have to take our word for it. Browser developer tools list every request a page makes, so you can watch 2file work and confirm that your file is never sent anywhere. The check takes about a minute.
Open your browser developer tools with F12, or Cmd+Option+I on a Mac, and select the Network tab.
Reload the page and let it finish. You will see the page's own files, its web fonts, and one anonymous page-view request. No file has been opened yet, so none of them can contain your data.
Click the clear icon in the Network tab so that the log is empty.
Open a file (or a sample) in the file type checker above and read the result.
Look at the Network tab again. It is still empty. Opening, identifying, viewing, searching, reading metadata, and making a clean copy made no request at all. The tools also show a live counter, read from your browser's own Resource Timing records, of the requests made since your file was opened. For extra proof, turn on offline mode after the page loads: every tool keeps working.
A file you open is read into this tab's memory, parsed by code that is already on the page, and, for the metadata remover, handed back to you as a new download. It is never uploaded, never stored in the browser, and gone when you close the tab. The only other request the site can make is the feedback form, and only when you submit it.
The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site and the anonymous analytics endpoint, so even a bug could not send your file elsewhere.
What Are Magic Bytes?
Magic bytes are a fixed sequence at a known position in a file, usually the very start, that marks its format. A JPEG begins with FF D8 FF, a PNG with 89 50 4E 47 0D 0A 1A 0A, a ZIP archive with the letters PK, a PDF with %PDF-, and a Windows program with MZ. Because programs that read a format check for its signature, the signature is a much more reliable clue than the file name.
Some signatures are shared. A Word document, an Excel workbook, an EPUB book, a Java archive, and an Android app are all ZIP archives inside, so the checker reads the archive's list of entries to tell them apart. Old Office files share one container format, so it looks for the stream names inside. MP4, MOV, HEIC, and AVIF share a box structure, so it reads the brand codes. Plain text has no signature at all, so it checks the encoding and looks at how the content starts.
Which Warnings Does the Checker Give?
Extension mismatch: the name says one format and the bytes say another, for example a ZIP archive named invoice.pdf.
Program content under a document name: a Windows, macOS, or Linux program, or an Android app, with an extension such as .pdf or .jpg.
Double extension: names like report.pdf.exe, which look like a PDF when the system hides known extensions.
Hidden text-direction characters: a right-to-left override can make photo_gpj.exe display as photo_exe.jpg. The checker shows the hidden characters.
Data after the end: bytes after the end marker of a JPEG, PNG, GIF, PDF, or ZIP. Viewers ignore them, which is why they are used to hide data or build files that are two formats at once.
Macros and active content: Office files with a macro project, and PDFs that declare JavaScript, launch actions, or embedded files.
Why Does My Browser Show a Different Type?
When you choose a file, the browser and the operating system label it with a MIME type based only on its extension. Rename a photo from .jpg to .txt and the label changes to text, although not a single byte changed. The checker shows that label next to its own result so you can see when the two disagree, and the content check is the one to trust.
The reverse also happens: a file can have the right extension and still be damaged or truncated. For JPEG, PNG, GIF, PDF, and ZIP files the checker walks the file's structure to find where it really ends, and reports structure problems such as a bad PNG checksum or a JPEG without its end marker. To record a fingerprint of the file for a case file, or to compare it with a published checksum, compute its SHA-256 with 2toolbox Hash, which also runs in your browser.
What Should You Do With a Suspicious File?
Do not open or run it. 2file only reads the bytes; it never executes anything.
If the checker says the content is a program but the name says otherwise, delete the file or hand it to your IT or security team.
If the extension is simply wrong, for example a PNG saved as .jpg, rename it to the usual extension shown on the page.
If data is attached after the end of an image, open the hex viewer at the offset shown to see what it is before you share the file.
A warning is a reason to look closer, not a verdict. Some apps append data legitimately: phones store preview images and depth maps after the main JPEG, and motion photos attach a short video. The checker says when the extra data looks like that.
What Else Is on 2file?
Hex viewer: View any file as hex and text side by side, jump to an offset, search for text or byte patterns, and list its strings.
EXIF and metadata viewer: See the EXIF, GPS location, XMP, IPTC, and text metadata hidden in a JPEG or PNG photo, with a privacy checklist.
EXIF and GPS remover: Remove EXIF, GPS location, XMP, and IPTC from a JPEG or PNG and download a clean copy with the image data untouched.
It reads the first bytes of the file and compares them with a table of known signatures, then looks inside containers such as ZIP, Office, and MP4 files to refine the result. It never relies on the file name; the name is only compared with the result afterwards.
Is my file uploaded?
No. The file is read inside your browser tab and never sent anywhere. For large files only the first and last 64 KB are read, and the full file is read only up to 64 MB for the structure checks.
Can it identify files without an extension?
Yes. The content check does not need an extension. The page also shows the extension that is usually used for the format it found.
Does a mismatch mean the file is malware?
No. Many mismatches are mistakes, such as a PNG saved with a .jpg name. A program disguised with a document extension is a stronger warning sign, but the checker does not scan for malware.
Which formats does it know?
More than 100, including images, raw camera files, audio, video, archives, Office and OpenDocument files, PDFs, e-books, programs for Windows, macOS, Linux, and Android, fonts, databases, disk images, forensic images, keys, certificates, and text formats.
Can it compute a file hash?
No, hashes live in 2toolbox Hash, a sister app that also runs in your browser. 2file focuses on what the file is and what it contains.