Extract Audio from HEVC to M4A — Free Online Tool
Extract the audio track from an HEVC/H.265 video file and save it as an M4A file encoded with AAC — the native audio format of Apple's ecosystem. Since HEVC files often contain HDR or high-quality cinematic audio, this tool preserves that audio fidelity at a configurable AAC bitrate while discarding the video stream entirely.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your HEVC file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
HEVC (.hevc or .h265) files are raw video bitstream containers that typically carry an accompanying audio stream. This conversion strips the HEVC video stream entirely using FFmpeg's -vn flag and re-encodes the audio into AAC, the codec natively supported by the M4A container. Unlike a remux (stream copy), the audio is transcoded — meaning the raw PCM audio is decoded from whatever format it was stored in and re-encoded as AAC at the target bitrate (default 128k). The resulting M4A file is an MPEG-4 audio-only container fully compatible with Apple iTunes, iOS, macOS, and most modern media players. No video data is retained in the output file.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary — the open-source multimedia processing engine running under the hood of this browser tool via WebAssembly (FFmpeg.wasm). |
-i input.hevc
|
Specifies the input file: an HEVC elementary bitstream or HEVC-wrapped video file. FFmpeg reads this file and demuxes it to access the video and audio streams separately. |
-vn
|
Disables video recording — tells FFmpeg to ignore and not include any video stream in the output. This is the key flag that makes this an audio extraction operation rather than a full video conversion. |
-c:a aac
|
Sets the audio codec for the output to AAC (Advanced Audio Coding), the native and most compatible codec for the M4A container, and the standard audio format for Apple iTunes and iOS devices. |
-b:a 128k
|
Sets the AAC audio bitrate to 128 kilobits per second — a standard quality level suitable for music and voice. Increase to 192k or 256k for higher fidelity audio extracted from high-quality HEVC cinematic footage. |
-vn
|
A second instance of the video-suppression flag placed before the output filename as a safety measure, ensuring no video stream is accidentally written to the M4A file even if stream mapping is ambiguous. |
output.m4a
|
The output filename with the .m4a extension, which signals to FFmpeg to wrap the encoded AAC audio in an MPEG-4 audio container — the format recognized natively by Apple Music, iTunes, iOS, and most modern audio players. |
Common Use Cases
- Extract a high-quality audio track from an HEVC-encoded cinematic or drone footage clip to use as a standalone audio file in a music or podcast project
- Pull the narration or voiceover from an H.265 screen recording to create an audio-only version of a tutorial for distribution on podcast platforms
- Convert the audio from an HEVC-encoded interview or documentary clip into an iTunes-compatible M4A file for archiving or syncing to an iPhone
- Extract ambient sound or field recordings captured in HEVC format on a modern smartphone camera and save them as M4A for use in a sound design library
- Isolate the audio commentary from an HEVC video file to review, transcribe, or share without the overhead of the video payload
- Convert HEVC video audio tracks to M4A for import into GarageBand or Logic Pro, both of which natively support the AAC/M4A format
Frequently Asked Questions
Yes, a small amount of quality loss occurs because the audio is transcoded to AAC rather than copied directly. The original audio in an HEVC file is typically encoded in AAC, AC-3, or PCM — and converting any of those to AAC at 128k involves lossy compression. If the source audio was already AAC at the same or lower bitrate, the generational loss is minimal. To minimize quality loss, increase the bitrate to 192k or 256k in the FFmpeg command.
Only if the original audio stream is already in AAC format, in which case you could use -c:a copy instead of -c:a aac to stream-copy the audio without re-encoding. However, this tool defaults to transcoding to ensure the output is a valid, compatible M4A file regardless of the source audio codec. If you know your HEVC file contains AAC audio and want lossless extraction, replace '-c:a aac -b:a 128k' with '-c:a copy' in the FFmpeg command shown on this page.
M4A is an MPEG-4 container (technically a subset of MP4) that signals the file contains only audio — no video. This makes it natively recognized by Apple iTunes, iOS, and macOS as a music or audio file rather than a video file. AAC refers to the codec (the compression algorithm), while M4A is the container that wraps it. The same AAC audio in an MP4 container would still play, but M4A is the conventional and most compatible choice for audio-only content in Apple environments.
The audio bitrate is controlled by the -b:a flag. The default in this command is 128k, which is acceptable for speech and most music. For higher fidelity — especially for music extracted from cinematic HEVC footage — change it to 192k or 256k by replacing '-b:a 128k' with '-b:a 256k'. For voice-only content like narration or podcasts, 96k is often sufficient and will produce a smaller file.
Metadata such as title or artist tags may carry over depending on what is embedded in the source HEVC file, but chapter markers from HEVC are unlikely to transfer to M4A automatically. The M4A container does support chapters (as used in audiobooks and podcasts on Apple platforms), but FFmpeg does not automatically map HEVC chapter data into the M4A chapter format without additional flags. If chapter preservation matters, post-process the M4A with a tool like MP4Box or Chapter and Verse.
Yes. On Linux or macOS, you can run a simple shell loop: 'for f in *.hevc; do ffmpeg -i "$f" -vn -c:a aac -b:a 128k -vn "${f%.hevc}.m4a"; done'. On Windows PowerShell, use: 'Get-ChildItem *.hevc | ForEach-Object { ffmpeg -i $_.Name -vn -c:a aac -b:a 128k -vn ($_.BaseName + ".m4a") }'. The browser-based tool on this page processes one file at a time, so the FFmpeg command is especially valuable for bulk conversions of large HEVC libraries.
Technical Notes
HEVC (H.265) is a video-only codec standard — the .hevc extension typically denotes a raw elementary video bitstream, though in practice HEVC video is often wrapped in MP4 or MKV containers alongside audio. The audio codec inside an HEVC-wrapped file varies: smartphone-captured HEVC files commonly carry AAC audio, while professional or broadcast HEVC content may use AC-3, E-AC-3, or even DTS. This tool always re-encodes the audio to AAC regardless of the source codec, ensuring M4A compatibility. The -vn flag appears twice in the generated command — once to suppress video input processing and once as a safety flag before the output filename; this is redundant but harmless and guarantees no video stream is written. The M4A container supports AAC, ALAC, FLAC, Opus, and Vorbis audio, but AAC is the most universally compatible choice for Apple devices and web playback. One known limitation: if the HEVC source contains multiple audio tracks, only the first (default) audio stream will be extracted; use -map 0:a:1 in the FFmpeg command to target a specific alternate track.