Content categorization
Magika by Google
- ✓ Website checked Sep 25, 2026
Identify binary and text file types with a machine-learning classifier available through a command line, bindings and browser demo.
Tool Information
Magika identifies file content types using a machine-learning model. It examines a limited part of a file's contents and returns a predicted type, making it useful for developers building file-routing, ingestion or content-categorization pipelines. The original project URL now redirects to documentation hosted by Google Security Research, where the project describes a Rust command-line tool, a Python API and additional language bindings.
The documented classifier handles both binary and textual formats. Confidence thresholds and prediction modes help determine when to return a specific label and when to use a generic text or generic binary label. This can support choosing an appropriate downstream parser or scanner, but a predicted file type does not establish that a file is safe, authentic or free of malicious content.
A public browser demo was accessible and displayed a classification for its prefilled JavaScript example. The demo states that processing happens entirely in the browser. No custom text or file was submitted, and neither network behavior nor classification accuracy was independently audited. Published performance measurements therefore should not be treated as guarantees for an individual dataset.
The software is released under the Apache license. No paid hosted subscription or service-level commitment was established from the reviewed documentation; deployment and integration remain separate operational tasks. The known-limitations page says the release does not target polyglot detection, meaning files that can be interpreted as multiple formats need particular care. Despite the historical listing name, the project's disclaimer explicitly says it is not an official Google project and does not receive Google support. Evaluate it against representative files before relying on it in a production pipeline.
Based on the official website (/magika/introduction/overview, /magika/additional-resources/license/, /magika/contributing/known-limitations/, /magika/demo/magika-demo/, /magika/additional-resources/disclaimer/), reviewed by an editor.
Capabilities
What you can do
Binary and textual format detection
Command-line and language-binding interfaces
Confidence thresholds and prediction modes
Browser demo with documented local processing
Put it to work
Ideas for your first session
- Routing files to suitable parsers
- Categorizing files in ingestion pipelines
- Comparing content-type predictions on representative data
Example tasks to explore. Results depend on your input and the features available to your account.
Pricing
Software released under Apache 2.0 and a public browser demo is available; deployment costs and paid support are not established. · Source checked · Source ↗
Reviews
No approved reviews yet.
About this listing
The profile reflects current official product, pricing and privacy evidence; untested claims are qualified.
- Website checked on
- Category
- Content categorization
How we review listings · Report a factual error or broken link
