Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributemime2extension

Convert between MIME types and file extensions and detect file types from base64 data.

pub.devRemove
mime_type

Library to map file names or extensions to MIME types and vice versa

pub.devRemove
ScoresHealth53 (best)50
Maintenance26 (best)2
Quality96 (best)74
Popularity2883 (best)
Community3545 (best)
Compatibility100100
UsageDownloads (30 days)6.6k699k (best)
Likes673 (best)
Pub points150 / 160 (best)135 / 160
GitHub stars016 (best)
MaintenanceLatest release0.0.5, 8 months ago (best)1.0.1, 2 years ago
Major versions in 12 months00
Contributors08 (best)
Publisheruditswaroopa.techUnverified
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies00
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Comprehensive database of MIME types and over 400 file signatures.
  • Supports wildcards for category-based extension queries.
  • Zero external dependencies except the Flutter SDK.
  • Simple API, no dependencies, null-safe
  • Supports a wide range of MIME types, including recent additions like mjs and woff2
  • Fast hashmap lookup
  • MIT license
Weaknesses
  • Limited to string and base64 inputs rather than direct binary stream parsing.
  • No support for content negotiation or media type parameters
  • Limited to MIME type mapping only
WarningsNoneNone
mime2extension vs mime_type: which Flutter package should you use? | pubscout