Package selection guidance compiled from public package information, community data, and project usage.
A Flutter plugin that enables reading and editing metadata (tags) in audio files, supporting multiple audio formats. It provides a simple interface to access and modify common tag fields such as title, artist, album, and genre. Designed for Android, it integrates seamlessly into Flutter apps focused on music management or audio processing. The plugin leverages native Android functionality to ensure reliable tag manipulation.
Use cases
Editing audio file metadata in music apps
Displaying song information in media players
Bulk tagging of audio files
Syncing metadata across devices
Managing personal music libraries
Key features
Supports multiple audio formats
Read and write metadata tags
Simple API for common tag fields
Android-only platform support
Reliable native integration
Suitable for
Music app developers
Audio file managers
Media library tools
Tagging utilities
Android-focused audio projects
Considerations
Limited to Android platform
Requires proper file permissions
May not support all audio formats
Metadata changes require file write access
No iOS support available
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
flutter_audio_tagger
A Flutter plugin for reading and editing audio file metadata (ID3 tags) on Android. The plugin reads tag data from audio files and returns edited files as raw bytes (Uint8List), giving your app full control over where and how the resulting file is saved.
Platform Support
Platform
Supported
Android
Yes
iOS
No
Web
No
Desktop
No
Features
Read all metadata tags from an audio file, including artwork
Read metadata tags only (without artwork)
Read artwork only
Edit metadata tags (without touching artwork)
Edit artwork only
Edit metadata tags and artwork together in a single call
Returns the complete modified audio file as bytes (Uint8List) along with the file extension, so your app decides where to write it
Every editing method returns an AudioFileData object. The plugin does not write the file to disk. Your app receives the raw bytes and is responsible for saving them. Use dart:io to write the bytes to any path your app has access to.
import'dart:io';
// Edit tagsAudioFileData editedFile = await tagger.editTags(updatedTag, originalFilePath);
// Write the bytes to a fileString savePath = '/storage/emulated/0/Download/edited.${editedFile.fileExtension}';
File outputFile = File(savePath);
await outputFile.writeAsBytes(editedFile.musicData);
You can save to any writable location: the app's documents directory, the downloads folder, an external storage path, or overwrite the original file. The fileExtension field tells you the format of the audio data so you can construct the correct filename.
import'package:path_provider/path_provider.dart';
// Save to app documents directoryDirectory appDir = awaitgetApplicationDocumentsDirectory();
String fileName = 'my_song.${editedFile.fileExtension}';
File file = File('${appDir.path}/$fileName');
await file.writeAsBytes(editedFile.musicData);
// Or overwrite the original fileFile original = File(originalFilePath);
await original.writeAsBytes(editedFile.musicData);