# mime

> MIME type detection and multipart parsing for Dart

Source: https://talira.ai/catalog/mime-m46m5220
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / file type detection](https://talira.ai/categories/libraries/file-type-detection)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^2]

mime is the [Dart](https://talira.ai/catalog/dart-3askvstd.md) team's package for working with media (MIME) types: it works out a file's MIME type from its name's extension or the magic bytes at the start of its contents, with a built-in resolver for the common types (`lookupMimeType`) and custom resolvers you add extensions and magic numbers to. It also parses streams of MIME multipart data, such as multipart/form-data uploads, into their parts and headers. It lives in the dart-lang/tools mono-repo and is published on pub.dev by tools.dart.dev.

## Links

- GitHub: https://github.com/dart-lang/tools
- Docs: https://pub.dev/packages/mime

## Problems it solves

- work out a file's content type from its name or first bytes in Dart
- read the parts of a multipart/form-data upload in a Dart server
- set the right Content-Type header when serving files from Dart

## Features

- Detects a file's MIME type from its extension or magic bytes
- Built-in resolver for common types, plus custom extensions and magic numbers
- Parses MIME multipart streams into parts with headers

## Trust

Overall: 0.63 out of 1.
Signals: maintenance 1.00, adoption 0.42, momentum 0.17, community 0.99, backing 0.55, extensibility 0.00.

- last commit 4 days ago
- 202 commits in the last 90 days
- latest release api_summary-v1.3.0 4 days ago
- 123 GitHub stars
- 302 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Related

- Works with [Dart](https://talira.ai/catalog/dart-3askvstd.md)

## Sources

[^1]: https://github.com/dart-lang/tools/blob/main/pkgs/mime/LICENSE (checked 26 Nov 2026)
[^2]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
