GitPedia

Lofty rs

Audio metadata library

From Serial-ATA·Updated June 28, 2026·View on GitHub·

*Parse, convert, and write metadata to various audio formats.* The project is written primarily in Rust, distributed under the Apache License 2.0 license, first published in 2021. Key topics include: aac, adts, aiff, apev2, audio.

Latest release: 0.24.0
April 12, 2026View Changelog →
<img align="right" width="200" height="200" src="doc/lofty.svg" alt="Lofty logo">

Lofty

Parse, convert, and write metadata to various audio formats.

GitHub Workflow Status
Downloads
Version
MSRV
Documentation
GitHub Sponsors

⚠️ LOOKING FOR HELP WITH DOCUMENTATION ⚠️

I'm looking for help with the refinement of the docs. Any contribution, whether it be typos,
grammar, punctuation, or missing examples is highly appreciated!

<!-- TODO: Keep in sync with ./lofty/SUPPORTED_FORMATS.md -->

Supported Formats

File FormatMetadata Format(s)
AAC (ADTS)ID3v2, ID3v1
ApeAPE, ID3v2*, ID3v1
AIFFID3v2, Text Chunks
FLACVorbis Comments, ID3v2*
MP3ID3v2, ID3v1, APE
MP4iTunes-style ilst
MPCAPE, ID3v2*, ID3v1*
OpusVorbis Comments
Ogg VorbisVorbis Comments
SpeexVorbis Comments
WAVID3v2, RIFF INFO
WavPackAPE, ID3v1

* The tag will be read only, due to lack of official support

Examples

To try them out, run:

bash
cargo run --example tag_reader /path/to/file cargo run --example tag_stripper /path/to/file cargo run --example tag_writer <options> /path/to/file cargo run --example custom_resolver

Documentation

Available here

Testing

As some formats are complex, Lofty makes use of test-log to get
the detailed debug/trace logging for failures. To run the tests, do:

shell
RUST_LOG=trace cargo test

Benchmarking

There are benchmarks available here. To run them, do:

shell
cargo bench

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from Serial-ATA/lofty-rs via the GitHub API.Last fetched: 6/29/2026