File Type Detection
Paste text or upload files to determine their true type, even when extensions are missing or misleading.
Preparing detection model…
You can start typing or drop files now — they'll be analyzed as soon as the model is ready. It's cached for next time.
Click to upload or drag files here
All file types supported
Features
- Detects 100+ content types: programming languages, documents, images, archives, media files
- Analyzes text snippets and uploaded files
- Shows confidence scores for all identified types
- Runs in your browser; nothing is sent to any server
- Files and text never leave your device
How It Works
The tool analyzes content patterns to determine file types:
- Examines byte sequences and file structure
- Analyzes formatting and statistical patterns
- Considers multiple indicators beyond extensions
Results include confidence scores for each file type, showing the most likely match and alternatives.
Use Cases
Security & Validation
- Verify uploaded files match their claimed extensions
- Detect files disguised with misleading extensions
- Screen for malicious content
Content Management
- Identify files with missing or incorrect extensions
- Categorize and organize files by actual type
- Ensure files match expected formats
Development & Testing
- Test file type detection in applications
- Validate content type handling
- Debug file processing issues
Supported File Types
Detects 100+ file types, such as:
- Programming: JavaScript, Python, Java, C++, Rust, Go, TypeScript
- Documents: PDF, Word, Excel, PowerPoint, plain text
- Images: JPEG, PNG, GIF, WebP, SVG, BMP, TIFF
- Archives: ZIP, TAR, GZIP, RAR, 7z
- Media: MP3, MP4, AVI, WebM, WAV
- Web: HTML, CSS, JSON, XML, YAML
References
- Magika on GitHub - Google’s Open Source Repository
- Research Paper - Technical details
- Google Security Blog - Official announcement