Trim M4A — Free Online Tool

Trim an M4A audio file to any start and end point, preserving the original AAC stream without re-encoding. This tool is ideal for cutting segments from iTunes purchases, podcasts, or audiobooks stored in the MPEG-4 audio container.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

Because the input and output are both M4A files using the same AAC audio codec, FFmpeg uses stream copy mode (-c copy) to trim the file. This means the AAC audio data is not decoded and re-encoded — the existing compressed bitstream is simply cut at the nearest keyframe boundaries to the specified timestamps and written into a new M4A container. The result is a lossless trim operation: no generation loss, no quality degradation, and processing is nearly instant regardless of file length. Note that because AAC uses keyframe-based encoding, the actual cut point may land a few milliseconds away from your exact requested timestamp, which is normal behavior for stream-copy trimming.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary. When run via this browser tool, it executes inside FFmpeg.wasm, a WebAssembly port of FFmpeg that runs entirely on your device without sending any data to a server.
-i input.m4a Specifies the input M4A file. FFmpeg reads the MPEG-4 container and identifies the enclosed AAC audio stream that will be trimmed.
-ss 00:00:00 Sets the trim start point to the beginning of the file (timestamp 0). Change this value to any HH:MM:SS timestamp or total-seconds value to begin the output clip at a different point in the source M4A.
-to 00:00:10 Sets the trim end point to 10 seconds into the file. The output M4A will contain only the audio between the -ss start time and this timestamp. Replace with any desired end timestamp to extract a different segment.
-c copy Instructs FFmpeg to copy all streams (in this case the AAC audio stream) directly without decoding or re-encoding. This makes the trim instantaneous and lossless, preserving the original AAC bitrate and encoding profile exactly.
output.m4a The filename for the trimmed result. The .m4a extension tells FFmpeg to wrap the copied AAC stream in an MPEG-4 audio container, fully compatible with iTunes, Apple Music, and all standard media players.

Common Use Cases

  • Cut a specific song or passage from a long M4A audiobook file downloaded from iTunes or Audible
  • Extract a highlight clip from a podcast episode saved in M4A format for sharing on social media
  • Remove silence or unwanted intro/outro music from an M4A recording before embedding it on a website
  • Isolate a single chapter or segment from a multi-hour M4A lecture or conference recording
  • Create a short M4A preview sample of a music track for use on a product or portfolio page
  • Trim an M4A voice memo recorded on an iPhone to remove dead air at the beginning or end before sending

Frequently Asked Questions

No. Because the tool uses FFmpeg's stream copy mode (-c copy), the AAC audio data inside the M4A container is never decoded or re-encoded. The compressed bitstream is transferred directly into the output file, so there is zero generation loss. This is fundamentally different from a trim operation that re-encodes the audio, which would introduce additional compression artifacts.
This is a known behavior of stream-copy trimming with AAC audio. AAC encodes audio in fixed-size frames, and FFmpeg can only cut at frame boundaries rather than at arbitrary sample-accurate positions. The resulting trim point is typically within a few hundred milliseconds of your requested timestamp. If sample-accurate trimming is critical, you would need to re-encode the audio, which involves a small quality trade-off.
Metadata behavior during a stream-copy trim depends on what was embedded in the original file. iTunes-style metadata (ID3/MP4 atoms such as artist, title, album art, and genre) stored in the M4A container is generally preserved in the output file by FFmpeg's default behavior. However, chapter markers that span the removed portions of the file may not be automatically updated to reflect the new trim points.
The browser-based tool supports files up to 1GB processed entirely on your device without any upload. For audiobooks or recordings larger than 1GB, you can copy the displayed FFmpeg command and run it directly in your terminal. Since stream copy is used, even a multi-gigabyte M4A file will trim in seconds on a desktop machine because FFmpeg does not need to decode and re-encode any audio.
In the command 'ffmpeg -i input.m4a -ss 00:00:00 -to 00:00:10 -c copy output.m4a', the -ss flag sets the start time and -to sets the end time. Both accept timestamps in HH:MM:SS format or in total seconds (e.g., -ss 90 for 1 minute 30 seconds). To trim from 2 minutes 15 seconds to 4 minutes 30 seconds, you would use -ss 00:02:15 -to 00:04:30. You can also replace -to with -t to specify a duration instead of an end timestamp.
Yes. The output is a standard MPEG-4 audio container with an AAC stream, which is natively supported by all Apple platforms including iOS, macOS, iPadOS, and Apple TV, as well as iTunes and Apple Music. Since the codec is unchanged and the M4A container structure is preserved, the trimmed file will behave identically to the original on Apple devices.

Technical Notes

M4A is technically an MP4 container with the file extension renamed to signal audio-only content, and it most commonly carries AAC (Advanced Audio Coding) audio. When trimming M4A to M4A with -c copy, FFmpeg bypasses the entire codec pipeline and operates purely at the container level, making the operation extremely fast and lossless. One important limitation is that AAC uses a fixed frame size of 1024 samples, so at 44.1kHz each frame is approximately 23ms — meaning trim accuracy is bounded by this frame duration. The M4A format supports iTunes-specific metadata atoms (©nam, ©ART, aART, etc.) as well as gapless playback metadata; these are typically preserved during a copy-based trim. If the source M4A was encoded with a variable bitrate (VBR) using AAC-LC, HE-AAC, or HE-AAC v2, stream copy will faithfully preserve that encoding profile in the output. The -vn flag is included in the format specification as a safeguard to suppress any unexpected video streams (such as embedded album art treated as a video track), though standard AAC M4A files do not contain video data.

Related Tools