WAV Header Inspector
Walk RIFF/WAVE chunks with byte offsets, decoded fmt fields, metadata tags and format advice — entirely in your browser.
WAV file
What gets decoded
fmt (PCM, float, A-law, WAVE_FORMAT_EXTENSIBLE), data duration, LIST/INFO tags, fact, bext, cue/smpl, iXML and unknown chunks — each with its byte offset and padding rule.
Files up to 200 MB. RIFF sizes are never trusted for allocation; truncated chunks are reported, not guessed away.
Decoded structure
no file loadedNo WAV loaded yet
Load a sample or choose a RIFF/WAVE file to see its chunk tree.
Examples
16-bit stereo
44.1 kHz PCM, 88,200 data bytesfmt @12 · data @102 · duration 0.50 s · 22,050 framesByte rate 176,400 and block align 4 yield an exact duration and frame count.
Extensible 24-bit
WAVE_FORMAT_EXTENSIBLE with channel mask 3subformat PCM · valid bits 24 · front left, front rightThe GUID 00000001-0000-0010-8000-00aa00389b71 maps to PCM; unknown GUIDs stay raw.
Odd-sized data
data chunk with 11 bytespadded size 12 · 1 pad byte advisoryRIFF pads to even boundaries; the inspector shows the pad byte offset instead of hiding it.
Truncated export
data declares 88,200 bytes, 88,100 presentchunk marked truncated · minimum duration shownThe walk stops at the available bytes and explains the shortfall.
About this tool
The WAV Header Inspector turns a RIFF/WAVE file into a readable chunk tree. It walks id/size/payload records from byte 12 onward, applies the RIFF even-byte padding rule and prints each chunk's file offset, declared size, bytes actually present and decoded fields. A truncated payload is reported rather than hidden: the walker stops cleanly and still shows everything that could be read.
The fmt decoder covers PCM, IEEE float, A-law, μ-law and WAVE_FORMAT_EXTENSIBLE. For extensible files it reads cbSize, valid bits, the channel mask with named speaker positions and the 16-byte subformat GUID, mapping the common PCM and float GUIDs while displaying unknown ones raw. Duration is resolved in a second pass, so a legal file with data before fmt still gets a duration and sample-frame count.
Metadata gets real decoders too: LIST/INFO tags such as INAM, IART, ICRD and ISFT, the fact sample count, EBU broadcast bext fields (version-gated loudness and coding history), cue points, sample loops and iXML. Unknown chunks remain visible with a first-bytes peek and a full hex viewer at any offset. Advisories flag byte-rate and block-align mismatches, odd padding, corrupt declared sizes and fact/data disagreements. Everything runs locally from a DataView; no sample is decoded, played or uploaded.
What this tool does not do
- Only RIFF/WAVE containers are parsed; MP4, FLAC and Ogg containers are out of scope.
- Audio samples are never decoded or played — this is a header and metadata inspector.
- RF64 support is basic: the ds64 size fields are read, but full BW64 and 8SVX variants are not implemented.
- Files over 200 MB are rejected in the browser to avoid exhausting tab memory.
How to use this tool
Load a WAV
Choose a file up to 200 MB or load one of the built-in samples, including an extensible, RF64 and deliberately truncated case.
Read the chunk tree
Each row shows the four-character id, decoded type, byte offset and declared size. Expand a row to reveal LIST sub-chunks; select it to see its field table.
Inspect bytes
Set the hex offset to jump anywhere in the file. The 256-byte window includes an ASCII gutter and can be copied.
Act on the advice
Amber advisories explain padding, rate mismatches and malformed headers. Copy or download the full text report for a bug ticket.
Use cases
Plugin QA
Verify what an exporter actually wrote before filing a bug about wrong bit depth or channel count.
Game asset pipelines
Check cue loops, sampleRate consistency and odd chunk padding in imported audio assets.
Podcast and broadcast delivery
Read bext originator, time reference and loudness fields without ffprobe.
Chunks decoded
| Chunk | Fields shown |
|---|---|
| fmt | Format code, channels, sample rate, byte rate, block align, bits, extensible GUID and speaker mask |
| data | Byte size, duration, sample frames, first 16 bytes |
| LIST/INFO | INAM, IART, ICRD, ISFT and other tags with text values; adtl labels with cue IDs |
| fact / bext | Declared sample count; description, originator, time reference, loudness and coding history |
| cue / smpl / iXML | Cue positions, loop ranges and XML metadata text |
Any other four-character id is listed as an ancillary chunk with offsets, padding and a hex peek; nothing is silently dropped.
Common mistakes
Mistake:Assuming a .wav extension means a RIFF/WAVE container.
Fix:The inspector checks magic bytes at offset 0 and the form type at offset 8, reporting what it actually found.
Mistake:Judging duration from file size alone.
Fix:Duration uses the fmt byte rate, in a second pass, and is shown as unavailable when byte rate is zero.
Mistake:Ignoring trailing bytes after the declared RIFF size.
Fix:A size mismatch is flagged; trailing ID3 or padding bytes stay visible in the tree and hex view.
Frequently asked questions
What is the fmt chunk?
It is the RIFF chunk that describes the audio format: format code (1 for PCM, 3 for IEEE float, 0xFFFE for extensible), channel count, sample rate, byte rate, block align and bits per sample. The inspector shows each field with its byte offset. Without a valid fmt chunk, players cannot interpret the data chunk even if the audio bytes are intact.
Why is my WAV file twice the size I expected?
File size scales with channels × bits per sample × sample rate. Switching 16-bit stereo to 24-bit stereo at the same sample rate increases the payload by 50%, and 32-bit float containers often store 24-bit samples padded into four bytes. Compare the fmt byte rate and block align in the inspector with what your exporter claims; a mismatch is called out as an advisory.
What is WAVE_FORMAT_EXTENSIBLE?
It is format code 0xFFFE: a normal fmt header followed by cbSize, valid bits, a channel mask and a 16-byte subformat GUID. The GUID tells you whether the payload is PCM, IEEE float, A-law or μ-law. This tool decodes the common GUIDs, names the speaker positions in the mask and leaves unknown GUIDs visible in raw form.
Why do some chunks have an extra byte?
RIFF chunks must start on an even-byte boundary. If a payload has an odd declared size, writers append one padding byte that is not counted in the size field. The inspector shows the padded size, marks where the pad byte sits and adds a hint, so the next chunk's offset always matches the file.
Does the tool handle truncated or corrupted WAV files?
Yes. If a chunk declares more bytes than the file contains, it is marked truncated, the available bytes are still decoded and parsing stops cleanly. Conflicting declared RIFF sizes, trailing data, zero byte rates and inconsistent fact counts are reported as warnings or hints rather than causing a blank result.
Is my audio uploaded anywhere?
No. The file is read in this browser tab with DataView; no samples are decoded, played or transmitted. Only the header byte ranges are inspected, and you can copy or download a text report without leaving the page.
References & standards
Related tools
Ambient Noise Generator
Blend white, pink and brown noise live in your browser — focus masking, tinnitus relief and sleep, with a built-in sleep timer.
Audio BPM Tap & Tempo Detector
Tap a beat or detect tempo from audio sample onsets with robust local signal analysis.
Audio dBFS, dBu, dBV & Voltage Converter
Convert digital and analog audio levels with professional and consumer references
Audio Tone Generator
Play sine, square, saw and triangle tones from 1 Hz to 20 kHz with sweeps, panning and WAV export.
Auto BPM & Key Detector
Detect a song's BPM, key and Camelot code with confidence scores, fully in your browser.
Binaural Noise Synthesizer
Create binaural beats with white, pink, or brown noise