Magic Bytes: How File Type Detection Really Works
Filename extensions are just text — anyone can rename a file. The real type is hidden in the magic-byte signature at the start of the file. Here’s how detection works.
This site requires JavaScript to run the interactive tools. Please enable JavaScript in your browser, or visit our homepage to browse all tools.