Skip to content
pubscout

dart_tags

0.4.1, released 3 years ago by dart.tools

Parse ID3 tags from audio files in pure Dart

WASM-ready
$ flutter pub add dart_tags
Source repository

What it does

dart_tags provides a pure Dart library to read ID3 tags from audio files. It supports multiple ID3 versions and can be used in Flutter, web, and VM projects.

AI-written summary of version 0.4.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Need to read metadata from MP3 files in a Flutter or Dart application
  • Working in a web or server environment where native Dart code is preferred

Skip it when

  • Need to write or modify ID3 tags
  • Require advanced tag manipulation beyond reading

Strengths

  • Pure Dart implementation, no native dependencies
  • Null safety support
  • Cross‑platform (Android, iOS, web, desktop)
  • Supports multiple ID3 versions

Weaknesses

  • Only reads tags, does not support writing
  • Limited tag set support compared to full editors

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
3
import 'dart:io';
import 'package:dart_tags/dart_tags.dart';

void main(List<String> args) {
  final tp = TagProcessor();
  final f = File(args[0]);
  tp.getTagsFromByteArray(f.readAsBytes()).then((l) => l.forEach((f) => print(f)));
}

Alternatives

Packages that do the same job and could replace dart_tags.

Works with

Packages commonly used together with dart_tags: ones it builds on, ones built on it, and its own family.