FT File Tools

File Type Detector — Identify Files by Magic Bytes

Find out what a file really is from its magic bytes: over 100 formats, MIME type, extension mismatch warnings and a hex dump of the first 64 bytes — 100% in your browser.

🔒 Runs entirely in your browser — nothing is uploaded

Drop one or more files here or click to choose

Only the first 64 KB of each file is read, locally. Nothing is uploaded.

Recognises 140+ formats by their magic bytes.

Show all supported formats
    Advertisement

    Identify any file from its contents

    A file name's extension is only a label, and labels can be wrong. Downloads lose their extension, email systems rename attachments, and files copied from phones or old backups often end up called file or IMG_0001 with no hint of what they contain. This detector ignores the name and looks at the bytes instead. Almost every binary format starts with a distinctive signature, called magic bytes: 89 50 4E 47 for PNG, FF D8 FF for JPEG, %PDF- for PDF, PK for ZIP and 37 7A BC AF 27 1C for 7-Zip. The tool compares your file with well over a hundred signatures covering images, audio, video, archives, documents, fonts, executables, databases and disk images.

    Some formats need a closer look. MP4, MOV, M4A, HEIC and AVIF all share the ISO base media structure, so the detector reads the brand in the ftyp box. DOCX, XLSX, PPTX, EPUB, ODT, JAR and APK are all ZIP files, so it inspects the names of the first entries. Old Office documents share the OLE2 container, and text files are recognised as JSON, XML, HTML, SVG, PEM keys, vCards or plain UTF-8 and UTF-16 text.

    Spot mismatched and suspicious extensions

    For every file you get the detected format, its standard MIME type, the category and the extensions that format normally uses, next to the type your browser guessed from the name. When the extension does not match the contents you see a warning. Usually this is harmless — a PNG saved as .jpg still opens — but an “invoice.pdf” that turns out to be a Windows executable is a common way to spread malware. The hex dump of the first 64 bytes, with offsets and an ASCII column, lets developers verify the result themselves.

    Only the first 64 KB of each file is read, and everything happens inside your browser, so even very large videos or disk images are checked instantly and nothing is uploaded. You can check many files at once and copy a short text report for each one.

    How to use

    1. Add filesDrop one or more files onto the box or click to choose them. Only the first 64 KB of each file is read.
    2. Read the resultSee the detected format, its MIME type, category and the extensions it normally uses.
    3. Check the extensionA warning appears when the file name's extension does not match the real contents.
    4. Inspect the bytesLook at the hex dump of the first 64 bytes, or copy a short report to share.

    Frequently asked questions

    What are magic bytes?
    Most binary formats start with a fixed signature: PNG files begin with 89 50 4E 47, PDFs with %PDF-, ZIP archives with PK. The detector compares the beginning of your file with a table of well over 100 such signatures to identify it.
    Is my file uploaded?
    No. The first 64 KB of each file is read by your browser and analysed locally. Nothing is sent to a server, so it is safe to check confidential documents.
    Why does it say the extension does not match?
    The name suggests one format but the bytes show another — for example a PNG saved as .jpg, or a ZIP renamed to .pdf. This is often harmless, but a “document” that is really an executable is a classic malware trick.
    Why is my file reported as ZIP?
    Many formats are ZIP containers: DOCX, XLSX, EPUB, JAR and APK among them. The detector looks inside the ZIP to tell them apart, but some less common ZIP-based formats are reported as a generic ZIP archive.
    Advertisement