Trailing Data Checker

Check whether a file has data appended after its own structural end — PNG, JPEG, GIF, ZIP, BMP, WAV/AVI, PDF, TAR and MP3. Reports the boundary, chains what follows and extracts it byte for byte, all in your browser.

Format-aware end check
Chained segments
Byte-exact extraction
Trailing data checker

This tool checks whether a file has extra data appended after its own format's defined end — the most common "hidden file" CTF pattern. For a full byte-by-byte scan of every signature anywhere in a file, see the Polyglot File Analyzer.

Drop any file here, paste it (Ctrl/⌘+V), or

PNG, JPEG, GIF, ZIP, BMP, WAV/AVI, PDF, TAR and MP3 · up to 50 MB · read in your browser, never uploaded

Try a sample

How to check a file for trailing data (5 steps)

  1. Add the file: Drop any file, paste one, or choose it. PNG, JPEG, GIF, ZIP, BMP, WAV/AVI, PDF, TAR and MP3 are checked; anything else is reported as not identified. The limit is 50 MB, or 25 MB on phones (including narrow touch screens) and on devices that report 2 GB of memory or less or 2 processor cores or fewer. The file is read by a background worker in your browser and is never uploaded.
  2. Read the report: The Report tab states where the file's own format says it ends, how many bytes follow (and what percentage of the file that is), and a hex window around every boundary with the first trailing byte highlighted. If what follows is itself a known format, it is checked the same way, up to 10 segments.
  3. Check the status of each segment: Every segment is Validated, Detected (unvalidated), Not identified, Malformed or Unsupported. Only Validated means a parser walked the format's real structure and confirmed its end.
  4. Extract what you need: The Extract tab downloads each segment, the unvalidated tail, or the file without its trailing data, as a byte-exact slice of your original. Each button states its exact byte range and status first. A JSON report (offsets, hashes and findings, no file bytes) is also available.
  5. Send it on: Next steps suggests tools based on what was found, each with a reason, and can hand a segment to the Hex Viewer, PNG Chunk Analyzer, EXIF Viewer, Encoding Auto-Decoder, ROT Solver, XOR Brute Forcer or File Type Detector. The segment (at most 20 MiB) stays in this browser for up to 30 minutes.

What Trailing Data Is and Why CTF Files Have It

Most file formats say where they end: a PNG ends at its IEND chunk, a JPEG at its end-of-image marker, a ZIP after its end-of-central-directory record. Many file readers stop at the format's defined end and ignore any bytes after it; others may reject the file, warn about the extra data or handle it differently. That is why a picture can often open normally and still carry a whole second file, and why "is there something after the end of this file?" is the first question to ask about a CTF forensics challenge.

This tool answers exactly that question, using each format's own rule for where it ends rather than a search for byte patterns. It is not a general scanner: it checks one boundary per segment, and says so plainly when a file is outside the formats it knows. For an every-byte-offset search of a file for any known signature, use the Polyglot File Analyzer.

How the End of Each Format Is Found

PNG: the parser walks the chunks from the signature. IHDR must come first, once, with a 13-byte length; every chunk's declared length must fit in the data; every CRC must match; PLTE must come before the first IDAT and the IDAT chunks must be contiguous. The end is the first IEND that is valid (zero length, correct CRC) and comes after IDAT. It is never found by searching for the letters IEND, which can occur inside compressed image data. Unknown ancillary chunks (including APNG's acTL, fcTL and fdAT) are skipped; an unknown critical chunk makes the file Malformed.

JPEG: the parser walks marker segments using each segment's declared length. Inside scan data, FF 00 is a stuffed byte, FF D0 to FF D7 are restart markers and FF FF is fill. The end is the first valid EOI marker reached by walking, never the last FF D9 in the file; an EXIF thumbnail (a whole second JPEG inside an APP1 segment) is skipped by its length and cannot end the outer image. GIF: the parser walks the screen descriptor, the colour tables and every block until the trailer byte 0x3B; that byte can appear inside image data, so it is never found by searching.

ZIP: one backward pass over the data collects every end-of-central-directory signature. A candidate counts only if its declared central directory is really there: the directory is walked entry by entry, every entry must point to a local header, and the walk must end exactly where the record says. Of the candidates that pass, the one closest to the end of the data wins, so a signature inside a comment or inside appended bytes cannot be mistaken for the end. A ZIP64 locator is followed; multi-disk archives are reported as Unsupported. BMP: the header states the file's length (bfSize); it is checked against the data, the header size and the pixel-data offset before it is trusted.

WAV and AVI are RIFF containers: the declared size gives the end, and every chunk, including those inside LIST chunks, must fit inside its parent. OpenDML AVI files (extra RIFF AVIX chunks) and RF64/BW64 WAV files (sizes in a ds64 chunk) are implemented as well; the limitations section lists the real files they were checked against. PDF: the end is the %%EOF after the last startxref whose offset leads to a cross-reference section that passes this tool's checks, with the whole /Prev chain followed, so a %%EOF inside a content stream is not mistaken for the end. The checks are limited: a classic table's entries and trailer are read, a cross-reference stream is checked by its dictionary only (it is not inflated), and the parser does not read or validate the PDF's objects. TAR: 512-byte headers with a checksum, each followed by its data, ending with two zero blocks and the writer's zero padding. MP3 has no end marker, so the end is the last whole MPEG frame, plus a 128-byte ID3v1 tag when present.

The Five Statuses and Why There Are Five

Validated means a parser for that format walked the real structure and found a well-formed end. Detected, unvalidated means a signature for gzip, 7-Zip or RAR was recognised, but this tool has no parser for those formats and makes no claim about where they end. Not identified means no signature this tool checks was found. Malformed means a known format was found whose structure breaks its own rules or is cut off, so no boundary is claimed. Unsupported means the variant was recognised and is deliberately not parsed (multi-disk ZIP, RIFX, a RIFF with another form type).

Keeping these apart matters: a ZIP signature that fails validation is a different result from no signature at all, and the page never labels a Malformed, Unsupported or unvalidated segment as a valid extracted file. A clean copy of the primary file is offered only when its end was Validated.

Chained Segments and the Unvalidated Tail

If the bytes after a validated end are themselves a known format, that format's rule is applied starting at that offset, and again after it, up to 10 segments in total. A ZIP found at offset 69 is validated against its own start, not against byte 0 of the file. The chain stops, with the reason shown, at the first segment it cannot resolve: an unrecognised signature, a recognition-only format, a Malformed or Unsupported segment, a boundary that does not advance, or the limit of 10.

Earlier validated segments are always kept. When the chain stops at bytes that cannot be resolved, no end offset is invented for them: they are shown as one unvalidated tail from that offset to the end of the file, always downloaded as a .bin file. The whole scan, including every chained segment, has one 15-second budget.

What Trailing Data Does Not Mean

Bytes after a format's end are not necessarily a hidden file. Zero padding is common, MP3 files often end with APEv2, Lyrics3 or ID3v2 tags, some writers pad archives or add a final newline, a stream cut short can leave half an MPEG frame, and a JPEG from some cameras carries a second picture (a multi-picture file). The report describes what the bytes look like (all zeros, an ordinary metadata tag, mostly printable text, high entropy) and makes no claim about intent: high entropy is how compressed data, encrypted data and random data all look.

The reverse also holds. A file this tool reports as having no trailing data can still hide something inside its own structure (in pixel values, in an ancillary chunk, in a comment); this tool only checks what lies beyond the end.

Examples

Input: png-with-zip.png: a 69-byte PNG with a 137-byte ZIP (one entry, flag.txt) appended, 206 bytes in all (the Try a sample button)

Result: PNG image, Validated, bytes 0–68. Boundary at offset 69 (0x45). Segment 2: ZIP archive, Validated, bytes 69–205 (137 bytes). Trailing data: 137 bytes, 66.50% of the file.

Meaning: The PNG ends at 69. The ZIP starts exactly there and is downloadable on its own; opening it shows flag.txt. The PNG alone is 69 bytes with SHA-256 b1ff9c8e…, a clean copy.

Input: A clean 69-byte PNG with nothing after it

Result: No trailing data found. This file ends exactly where its PNG structure says it should.

Meaning: The end of the file and the end of the PNG are the same offset. Nothing is offered for extraction and no suggestions are made.

Input: The same PNG followed by 64 zero bytes

Result: 64 bytes (48.12% of the file) follow the end of the PNG. Segment 2 is an unvalidated tail, and the observation says all 64 bytes are 0x00, which is common zero padding.

Meaning: Trailing bytes are reported, but described as padding and given no suggestions. Zero fill is not evidence of anything.

Input: A PNG whose compressed image data contains the letters IEND, followed by the 8 bytes TRAILING

Result: PNG Validated at the real IEND chunk (offset 65); 8 trailing bytes, described as printable ASCII text.

Meaning: The letters inside the image data are not a chunk. A tool that searched for IEND would have cut the PNG short and reported the wrong boundary.

Input: A ZIP whose comment contains the bytes PK 05 06, with no data after it

Result: ZIP Validated, bytes 0–163, 27-byte archive comment, 1 other end-record signature rejected. No trailing data.

Meaning: The signature inside the comment looks like an end record but its central directory does not exist, so it is rejected, and the comment is part of the archive rather than trailing data.

Input: A PNG, then a ZIP, then a GIF, then 32 bytes of text (the Chained sample, 273 bytes)

Result: Four segments: PNG 0–68, ZIP 69–205, GIF 206–240 (all Validated) and a 32-byte unvalidated tail from 241 that looks like text. The chain stops because the tail matches no signature.

Meaning: Each file hides the next. The text tail is a good candidate for the Encoding Auto-Decoder, which is what the Next steps tab suggests.

Input: A PNG followed by the gzip signature 1F 8B 08 and 30 more bytes

Result: Segment 2: gzip-compressed data (signature only), Detected — unvalidated, bytes 69–102, shown as an unvalidated tail.

Meaning: This tool recognises the signature but cannot say where a gzip stream ends, so it makes no claim and offers the rest of the file as a .bin download; decompress it locally with gunzip.

How it works

Identify

The first bytes are matched against this tool's own fixed signatures (PNG, JPEG, GIF, ZIP, BMP, RIFF, PDF, tar, MP3). It does not borrow another tool's signature table. A file matching none is Not identified.

Walk

Only that format's parser runs, in a background worker, walking the real structure (chunks, markers, blocks, central directory, RIFF chunks, xref chain) and checking lengths, CRCs and ordering. A parser that fails reports Malformed for that segment; it never guesses a later boundary.

Report

If the end is validated and bytes remain, the report gives the offset in decimal and hex, the byte count and percentage, a hex window around the boundary, and a description of what the bytes look like.

Chain

If the trailing bytes start with a supported format, that parser runs at that offset. This repeats up to 10 segments, stopping with an explicit reason, and everything is hashed with SHA-256 so each finding can be checked outside this tool.

What the results mean

ResultWhat it meansWhat to do
No trailing data foundThe primary format's validated end is the end of the file.Nothing follows the format. Hidden data, if any, is inside the file's own structure: try the format's other tools.
Validated segment after the primary fileA complete, well-formed file of that format follows the end of the first one.Download it and open it with the matching tool (an archive manager for ZIP, an image viewer for PNG, JPEG, GIF or BMP).
Unvalidated tail, observation: textBytes follow that match no known signature and are mostly printable ASCII.Read them; try the Encoding Auto-Decoder and the ROT Solver for Base64, hex or a shifted message.
Unvalidated tail, observation: zeros or a metadata tagAll zero bytes, or an APEv2, Lyrics3, ID3v2 or ID3v1 tag, which ordinary software writes.Usually nothing to do. It is described, not flagged.
Unvalidated tail, observation: high entropyThe bytes look random or compressed; encrypted data looks the same.Check the first bytes in the Hex Viewer for a known signature; this is not evidence of anything by itself.
Detected — unvalidated (gzip, 7-Zip, RAR)A signature was recognised; this tool has no parser for the format, so no end is claimed.Download the tail as .bin and open it with the matching decompression tool.
MalformedA known format was found but its structure breaks its own rules or is cut off. The reason is named.Open the bytes in the Hex Viewer at the named offset, or use the Polyglot File Analyzer, which does not depend on the structure.
UnsupportedThe variant is recognised and deliberately not parsed (multi-disk ZIP, RIFX, a RIFF with another form type).Handle it with a tool that supports the variant; the segment can still be downloaded.
Chain limit reached (10 segments)More than 10 segments were found; the rest was not analysed.Download the unanalyzed tail and check it again as its own file.

Limitations

  • Only PNG, JPEG, GIF, ZIP, BMP, WAV/AVI, PDF, TAR and MP3 have an end rule. Any other format is reported as Not identified; the Polyglot File Analyzer scans every offset for any signature. gzip, 7-Zip and RAR are recognised after a segment but never parsed.
  • The rules are strict on purpose. A file that real decoders tolerate can still be reported Malformed here, for example a JPEG with junk between its marker segments, a BMP whose bfSize is wrong, two GIFs joined without a trailer, or a PNG with a bad IDAT checksum. No boundary is guessed from a later match. Missing RIFF pad bytes are the one tolerated defect, and only when the unpadded reading ends exactly at the container's declared end; the notes say so.
  • Validated means the structure that defines the end is consistent. It is not a full conformance check: a BMP is checked at its header, a PNG at its chunk framing and CRCs (not its pixel data), a ZIP at its directory (entries are not decompressed), a PDF at its cross-reference chain (objects are not parsed; xref streams are checked by their dictionary, not inflated).
  • MP3 has no end marker. The end is the last whole MPEG frame plus an ID3v1 tag, so APEv2, Lyrics3, ID3v2-at-the-end tags and a cut-off last frame are reported as trailing data and described as such. A file whose frames cannot be walked is Malformed.
  • TAR is identified only by the ustar magic, so old V7 tarballs without it are Not identified. Multi-disk ZIP is Unsupported: the first part (it begins with the split-archive marker) and the last part (its end record names a later disk) are recognised and named, but a middle part carries no signature and is Not identified. RIFX (big-endian RIFF) and RIFF containers other than WAV and AVI are Unsupported. ZIP archives are not opened and passwords are not handled; an OOXML, ODF, APK or JAR label is an observation from the entry names, with no different end rule.
  • The file is read into memory once, by the worker. The limit is 50 MB, or 25 MB on phones (including narrow touch screens) and on devices that report 2 GB of memory or less or 2 processor cores or fewer. The page says when the reduced limit applies and why. Scans are stopped after 15 seconds. For ZIP, a file with data appended after it makes the end-record search examine a large part of the file, so it is the one format whose time depends on the file's content, not just its size.
  • The tool reports and extracts bytes. It does not search the extracted data for flags, open archives, or decide what the data means. A finding is an observation about offsets and structure, not evidence of hiding or intent.
  • ZIP64, RF64/BW64, OpenDML AVI and multi-disk ZIP detection have each been checked against real files: 13 ZIP64 archives (from the jszip, node-unzipper, zip.js, libzip and yauzl test suites and from Info-ZIP), 5 RF64 WAV files (EBU's two reference libraries, scipy and ffmpeg), one real 1,055 MB OpenDML AVI written by ffmpeg (checked by running the parser directly, because it is far above this tool's size limit), and a real multi-disk split written by Info-ZIP. No real file tagged BW64 could be found or produced, so BW64 is covered only by a synthetic file and shares its code with RF64.
  • Tested against 989 real files from public test collections and real writers (Pillow, pdf.js, mutagen, PngSuite, BMP Suite, scipy, opencv, EBU, libzip, jszip, ffmpeg, Info-ZIP and others) by comparing with independent decoders (Pillow, zipfile, tarfile, pikepdf, wave, mutagen), and against files written by real encoders with data appended. Not tested: real phones (browser tests slowed the page's main thread, which does not slow the background worker, so the worker's speed on a slow device is an estimate from desktop timings), a real BW64-tagged file, or other tools' output beyond the sources above.

Privacy

Your file is read and checked locally in your browser, in a background worker. This tool does not send it to our servers, and neither its name nor its bytes are passed to analytics: analytics events carry feature names and coarse file facts (type and size bucket) only. This statement is about this tool's own code; it does not cover third-party scripts, and a browser page cannot fully prevent other scripts on the same page from reading it. Optional analytics and advertising scripts load only after you accept optional cookies. If you use Send to another tool, the segment (at most 20 MiB) is stored in your browser's IndexedDB so the next page can read it; it is not sent to a server, the next page ignores it after 30 minutes, a newer transfer replaces it and Clear shared data removes it at once. Only your pinned tabs are remembered in localStorage — never your file or its contents.

Frequently Asked Questions

What does trailing data mean?

Trailing data is anything that comes after the point where a file's own format says it ends. A PNG ends at its IEND chunk, a JPEG at its end-of-image marker, a ZIP after its end-of-central-directory record. This tool finds that point using the format's real structure and reports the bytes after it.

Why does my file still open normally if it has data hidden after its end?

Many file readers stop at the end their format defines and ignore bytes after it (others reject the file, warn about the extra data or treat it differently, so it depends on the program). That is why appending a ZIP or another image to a picture is such a common CTF forensics trick: the picture often still opens.

How do I find a hidden file in an image online?

It depends on where the file was placed. If a whole file was glued on after the end of the image (a ZIP after a PNG or JPEG is the classic case), load the image here: the report shows the offset where the image ends and what follows, and the Extract tab downloads it. If nothing follows the image, the data may be hidden inside it (in pixel values, in a metadata chunk or in a comment), and this tool will say there is no trailing data; the Steganography Analyzer, the PNG Chunk Analyzer and the EXIF Viewer on this site look inside the file instead.

How do I find a ZIP hidden in a PNG or JPEG?

Load the image. If a ZIP follows the image's end, the report shows the boundary offset and a ZIP segment marked Validated, and the Extract tab downloads it as a .zip file. Open it with an archive tool; it may be password-protected, which this tool does not handle.

Is trailing data always a hidden file?

No. Zero padding, an APEv2 or ID3 tag at the end of an MP3, a final newline, a cut-off last audio frame and a second picture in a multi-picture JPEG are all ordinary. The report describes what the bytes look like and makes no claim about intent.

How is this different from a full binary or signature scanner?

A full scanner, such as the Polyglot File Analyzer on this site, searches every byte offset for any of many signatures. This tool checks one boundary: where the file's own format ends, and what follows, using that format's real structure. Use this one for the common appended-data question and the Polyglot File Analyzer when this one finds nothing or the format is not supported.

Which formats are supported?

PNG, JPEG, GIF, ZIP, BMP, WAV and AVI, PDF, TAR and MP3. ZIP64 structures, RF64/BW64 WAV and OpenDML AVI are implemented too (the limitations section lists the real files each was checked against). After a validated end, gzip, 7-Zip and RAR signatures are recognised but not parsed. Multi-disk ZIP (its first and last parts are recognised), RIFX and other RIFF form types are reported as Unsupported, and anything else is Not identified.

What does Malformed mean, and why is a file my viewer opens reported Malformed?

Malformed means the structure that defines the end breaks the format's rules or is cut off, so no boundary is claimed. Viewers often tolerate damage (junk between JPEG segments, a wrong BMP size field, a bad checksum) and carry on. This tool refuses to guess a boundary from a damaged structure, and names the reason so you can look at the bytes.

What if several files are chained together?

If the bytes after a validated end are another supported format, that format is checked from that offset, and so on, up to 10 segments (for example PNG, then ZIP, then GIF). Each segment is listed with its offsets, status and download button, and the report says why the chain stopped.

Does it work on PDFs with incremental updates?

Yes, within a limited scope. The end is the %%EOF after the last startxref whose cross-reference section passes this tool's checks, and the /Prev chain of earlier revisions is followed. A %%EOF or startxref inside a content stream, or appended after the real end, is not mistaken for it. Validated means the cross-reference structure is consistent within those checks: cross-reference streams are checked by their dictionary and not inflated, and the PDF's objects are not parsed or validated.

What happens when I arrive from the Entropy Analyzer with an offset?

The Entropy Analyzer can send the file and a range (offset and length in the link; the file itself goes through this browser only) to this tool. After the normal scan, a note says where that range lies: inside the structure the format accounts for, in a later segment, in the unvalidated tail, or past the end of the file. It states position only; it does not say what the bytes are, and a link with a malformed offset is ignored.

Is my file uploaded to a server?

No. The file is read and checked in your browser by a background worker. Its name and bytes are not sent to analytics or to our servers. If you send a segment to another tool, it is kept in your browser's IndexedDB for up to 30 minutes and can be cleared at once.

Can it find the flag inside the hidden data for me?

No. It reports offsets and extracts bytes. Reading the extracted data, opening an archive or decoding a text tail is the next step, and the Next steps tab suggests tools for it.

Is there a size limit?

The limit is 50 MB, or 25 MB on phones (including narrow touch screens) and on devices that report 2 GB of memory or less or 2 processor cores or fewer. A file over the limit is refused before anything is read, and the page names the limit and why it applies. A scan that takes longer than 15 seconds is stopped.