Skip to content
Bytevive

Recording won't play? How to repair a corrupted WAV or MP3 file

When a recorder loses power, the audio is usually still there. Fix a broken WAV header or glitchy MP3 with FFmpeg, Audacity, MP3val, or your browser.

By the Bytevive team9 min read

A handheld audio recorder on a lecture-hall desk, its battery empty and its counter at 00:00:00

The interview ran for an hour. Then the recorder’s battery died, or the laptop went to sleep, or the app crashed as you pressed stop. Now the file is hundreds of megabytes, yet every player says it’s empty, or refuses to open it.

This is one of the most recoverable kinds of damage there is. Here’s why it happens, and how to fix it for free without uploading your recording anywhere.

Why a WAV plays as 0:00

A WAV file opens with a short header, followed by the sound itself. Per the WAVE format specification, the header holds two size fields: one for the whole file, in the RIFF chunk, and one for the sound, in the data chunk. Players trust those numbers to know how long the recording is.

Inside a WAV file

The two size fields are only filled in when the recording stops cleanly. Until then they read zero.

  1. RIFF sizeWhole file: 0
  2. fmt48 kHz, 24-bit…
  3. data sizeSound: 0
  4. SoundEvery sample you recorded
First byteLast byte
Not to scale. The sound is all there; only the two size fields at the start are wrong.

Recorders write the sound as it comes in, then go back and fill in the sizes when you press stop. If the power fails first, the sizes stay at zero, or at whatever value was last saved. Some recorders, such as Zoom’s F6, save files at regular intervals to limit the damage, which is why some broken files play for a few minutes and then stop. The fix is to measure the sound that’s actually there and write the real numbers back.

Why a WAV can’t pass 4 GB

Those size fields are 32-bit numbers, so a standard WAV can’t describe more than 4 GB of sound. Long or high-resolution recordings hit that limit sooner than you’d expect:

How long a stereo WAV can run before reaching 4 GB

4 GiB divided by the data rate of each format.

16-bit, 44.1 kHz (CD)
6.8 h
16-bit, 48 kHz
6.2 h
24-bit, 48 kHz
4.1 h
24-bit, 96 kHz
2.1 h
32-bit float, 96 kHz
1.6 h
Calculated: 4,294,967,296 bytes / (sample rate x bytes per sample x 2 channels). Mono recordings last twice as long.

Beyond that, recorders switch to RF64, defined in EBU Tech 3306. It sets the old size fields to 0xFFFFFFFF and stores the real sizes in a separate 64-bit chunk. Some tools mistake an RF64 file for a broken WAV, so check the format before you “repair” anything.

What goes wrong with MP3 and M4A

An MP3 is a chain of small, independent frames, each starting with a sync pattern and a frame header that says how long it is. Damage in the middle breaks the chain, and some players stop there. Cutting out the bad bytes and keeping every intact frame restores playback, with a tiny skip where the damage was.

M4A, the format used by iPhone Voice Memos and many apps, is different. It needs an index (the moov box) that lists where every piece of sound is. Apps usually write it when recording ends. If the index is at the end of the file, Bytevive can move it to the front so streaming players cope. If it was never written, Bytevive cannot rebuild it (and has no reference-file option); OBS’s own guidance sums up the situation: an interrupted MP4 or MOV recording may not be recoverable at all.

Audio repair tools, compared

ToolWhere it runsFormatsCostWorth knowing
ByteviveIn your browser, nothing uploadedWAV, MP3, M4AFree (free account); 512 MB limit for MP3 onlyFixes WAV headers, MP3 frames, and M4A index placement; plays the result back
johnmcm.com Repair WAVIn your browserWAVFreeWAV and BWF only; also saves big files as RF64 and rescues audio with no header
EaseUS Fixo OnlineTheir serversSeveral1 free repair a day, under 100 MBSign-in required; files deleted after 14 days
Wondershare RepairitYour computerSeveralDesktop license, about US$40 to US$50No online audio repair
FFmpegYour computerAlmost allFree, open sourceCommand line
AudacityYour computerRaw audioFree, open sourceImport Raw Data needs the right settings
MP3val, MP3 DiagsYour computerMP3Free, open sourceSpecialist MP3 checkers and fixers

Credit where it’s due: for WAV files alone, and especially for recordings over 4 GB, johnmcm’s tool is excellent, and like Bytevive it never uploads your audio. Bytevive is the one to reach for when you have a mix of WAV, MP3, and M4A files, and it plays each repaired file so you can check it before you download.

How to fix a recording with Bytevive

  1. Open Audio Repair and sign in with a free account.
  2. Drop the recording onto the page. It never leaves your device. MP3 files up to 512 MB are supported; WAV and M4A are read in pieces and are not held to that limit.
  3. For a WAV, Bytevive reads the format, measures the sound that’s actually in the file, and writes the true length into the header.
  4. For an MP3, it walks every frame, keeps the intact ones, and removes the damaged bytes between them.
  5. For an M4A, it moves the index to the front when it’s stored at the end. If the index is there but the audio was cut short, it keeps the part that reached the disk and tells you how much. If the index is missing, it tells you plainly instead of guessing.
  6. Listen to the result on the page, then save the repaired copy.

Bytevive also lets you drop FLAC, OGG, or AAC files to check whether your browser can start playback, but it does not inspect their structure or repair those formats yet.

The free command-line route

# Ignore the broken length in the header and rewrite the WAV
ffmpeg -ignore_length 1 -i broken.wav -c copy fixed.wav

# Same, for recordings that may exceed 4 GB
ffmpeg -ignore_length 1 -i broken.wav -c copy -rf64 auto fixed.wav

In Audacity, File → Import → Raw Data reads the file as plain sound. You have to choose the sample rate, bit depth, and channel count yourself; get one wrong and you’ll hear loud noise, so try again with different settings. For MP3s, MP3val and MP3 Diags check and repair frame errors.

The bottom line

A recording that stopped badly is usually all there: the file just doesn’t say so. Fix it in your browser in a few seconds, or use FFmpeg if you’re comfortable with the command line. If you are troubleshooting an MP3 that refuses to play or skips, see MP3 file won’t play. Either way, your recording stays with you.

Frequently asked questions

My WAV file is large but plays as 0 seconds. Is the audio gone?
Almost certainly not. The recorder writes the length into the header when you press stop. If it lost power or crashed first, the header still says zero, even though all the sound is in the file. Correcting the header brings it back.
Can Bytevive repair a WAV larger than 512 MB or 4 GB?
WAV and M4A files are read in pieces, so Bytevive does not apply its 512 MB limit to them (that limit is for MP3 only). However, a standard WAV header uses 32-bit size fields and cannot describe more than 4 GB, so longer recordings switch to RF64. Bytevive recognizes RF64 and checks whether it plays, but does not rewrite RF64 headers yet. For files over 4 GB, use FFmpeg's -rf64 auto option or johnmcm.com Repair WAV.
Can a recording cut off by a dead battery be recovered?
Usually, up to the moment power went out. A WAV only needs its header fixed. An MP3 plays up to its last complete frame. An M4A or MP4 recording without its index is much harder, because the index is written last and players cannot read the file without it.
Can Bytevive fix a cut-off iPhone Voice Memo (.m4a)?
Only if the recording's index (the moov box) was written. If it sits at the end of the file, Bytevive moves it to the front; if the index is there but the recording stopped early, Bytevive keeps the part that reached the disk. If the app or phone died before the index was ever written, Bytevive tells you so; it cannot rebuild a missing index and does not take a reference file.
Is my recording uploaded?
No. Bytevive reads and repairs the file inside your browser tab, with a free account. That matters for interviews, meetings, and voice notes you would rather not send to a stranger's server.

Sources

Every claim, error message, price, and limit cited above comes from these pages, checked on November 22, 2026. If one has changed, tell us at support@bytevive.com and we’ll update the article.

  1. McGill University: WAVE audio file format specifications
  2. EBU Tech 3306: RF64, an extended file format for audio
  3. MPEG audio frame header reference (mpgedit, archived copy)
  4. FFmpeg formats documentation (ignore_length, rf64)
  5. Audacity manual: Import Raw Data
  6. MP3val
  7. MP3 Diags
  8. OBS: recording format guide
  9. Zoom F6 operation manual (automatic saving during recording)
  10. Transom: Lost and found files
  11. Wondershare Repairit audio repair (desktop)
  12. EaseUS Fixo online audio repair
  13. johnmcm.com: Repair WAV

Recording won't play? Fix the header in seconds.

Free account, MP3 files up to 512 MB. WAV and M4A are read in pieces and are not held to that limit. Nothing is uploaded.

Repair a recording, free

Other free tools: video, PDF, photo, Office, ZIP, and audio repair.