# Extract M4A Audio from MP4

Extract an MP4's audio track to M4A in your browser. Lossless stream-copy remux — no re-encode, no quality loss, nothing uploaded.

## Run it

- **CLI:** `gizza tool mp4-to-m4a 'url=https://example.com/input'`
- **Web:** https://gizza.ai/tools/mp4-to-m4a/
- **Agents:** machine-readable descriptor (parameters JSON Schema) at https://gizza.ai/tools/mp4-to-m4a/tool.json

## Inputs

- `file` — MP4 video _(file; accept: video/mp4,video/x-m4v,video/*)_

## Output

- M4A audio (audio)

## Query parameters

Open the tool pre-filled and auto-run via URL:

- `url` — fetch the input file from a public URL (CORS-permitting)

Example: `https://gizza.ai/tools/mp4-to-m4a/?url=https://example.com/input`

---

## Extract the audio track from an MP4 as M4A

An `.mp4` video is a container: it often holds H.264/HEVC video plus an AAC or
ALAC audio track. This tool drops the picture and rewraps the first audio stream
into an `.m4a` file with a **lossless remux**:

`ffmpeg -i in.mp4 -vn -map 0:a:0 -c:a copy out.m4a`

`-vn` removes the video stream, `-map 0:a:0` selects the first audio track, and
`-c:a copy` copies the already-compressed audio packets into the M4A container
without running an encoder. There is no quality loss, no bitrate setting, and no
codec conversion. It is the right tool when the audio already fits in M4A and
you want it extracted quickly.

Everything runs locally with ffmpeg in your browser tab. Your video is not
uploaded.

### Worked example

You recorded `meeting.mp4` on a phone and only need the audio. Drop the video on
this page and download `meeting.m4a`. If the MP4 contains AAC audio, the output
contains the exact same AAC packets, just without the video track. Duration and
quality are preserved; only the container changes.

### Limits and edge cases

- Input and output are each capped at **10 MiB**.
- The tool extracts the **first** audio stream (`0:a:0`). It does not combine or
  select among multiple tracks.
- It does not transcode. If you need MP3/WAV or a different bitrate, use
  extract-audio-from-video or audio-convert.
- Videos with no audio track will fail with an ffmpeg "matches no streams" style
  error.

## FAQ

<details>
<summary>Does MP4 to M4A lose quality?</summary>

No. The audio stream is copied with `-c:a copy`; it is not decoded and encoded
again. The output quality is identical to the audio inside the source MP4.

</details>

<details>
<summary>Why is there no bitrate or quality setting?</summary>

Bitrate settings only apply when re-encoding. This tool is deliberately a
lossless remux, so it preserves the original audio packets. Use audio-convert if
you want to change codec or bitrate.

</details>

<details>
<summary>Which audio track is extracted?</summary>

The first audio stream is extracted (`-map 0:a:0`). If a video contains multiple
language tracks or commentary tracks, this tool does not currently expose a track
selector.

</details>

<details>
<summary>Is my video uploaded?</summary>

No. ffmpeg runs inside your browser through WebAssembly. The source video stays
on your device.

</details>

## Related tools

- [Convert MP4 to MKV](https://gizza.ai/tools/mp4-to-mkv/): Free MP4 to MKV converter in your browser. Lossless stream-copy remux — keeps video, audio and subtitle tracks, nothing re-encoded or uploaded.
- [Convert MKV to MP4](https://gizza.ai/tools/mkv-to-mp4/): Free MKV to MP4 converter that runs in your browser. Lossless stream-copy remux for H.264/HEVC clips, or re-encode VP9/AV1. Nothing is uploaded.
- [Convert MOV to MP4](https://gizza.ai/tools/mov-to-mp4/): Free MOV to MP4 converter that runs in your browser. Lossless container remux (stream-copy) for H.264/HEVC clips, or re-encode ProRes. Nothing is uploaded.
- [Convert an Audio File](https://gizza.ai/tools/audio-convert/): Convert any audio file to MP3, WAV, OGG, FLAC or M4A right in your browser — pick a bitrate for lossy formats. Runs locally, nothing is uploaded, free.
- [Audio Waveform Video Generator](https://gizza.ai/tools/audio-waveform-video/): Turn audio into an animated waveform MP4 in your browser. Pick mirror, bars or wave styles, colors, gradient, size and fps. Nothing uploaded.
