Why your Instagram export won't open, and what to do instead
Four distinct ways an Instagram export can fail to load, and how to tell a hostile file from a hard cap, a broken preview from gradual loading, and an automatic re-parse from a bug.
The same error message can be covering four very different problems, and the advice for
each is nearly opposite. An export that will not open is almost always one of four things. It is not
the file Meta actually gave you. The parser is stopping something it is built to stop.
One part of it is silently missing rather than broken. Or the app is doing something it
is supposed to do, and making it look like corruption. Telling those apart is faster than
one generic "try re-requesting it."
Before anything else, check the obvious — the file is the original ZIP Meta produced.
If it is not, that is the answer. If it is, the failure is one of three specific, named
cases. A hostile-file guard may fire on legitimate input. Media may load on a delay. Or the app may
re-parse after a code change. None of those are corruption. They are, in order,
the tool protecting itself, the tool being patient on purpose, and the tool repairing
itself rather than serving stale parsing.
- 30sthe one question that sorts most of these: is this the original
.zip, untouched. - 3minthe three other causes, in the order they actually appear.
- afterwards — why the tool refuses some of what you hand it, and what it will never tell
- you is "broken" about your file.
Case one: the file is not the export
A Meta export is a single archive. The moment it is extracted and re-compressed to a
new ZIP, it stops being a Meta export to a parser that inspects the package. An
"untrusted archive" warning is not a missing feature. It is the parser refusing to read
a file it cannot be certain about.
The same applies to a ZIP produced by a third-party tool: LMKFR reads Meta's own format,
and a format another app claims is "the same thing" is not. When in doubt, open the file
in your file manager and look for the folder structure this site describes. If it does not
match, the file is not what we are about to parse.
Case two: the guard is working as designed
LMKFR is built to turn away the parts of this format that are structurally hostile.
It will report that as a failure, even when the user experience "could not open it" is not
what you wanted to hear. The defences fire before a single record is decoded:
- Path traversal. Every entry name is checked against a hostile shape before anything
is written to disk, so a ".." escaping the folder, an absolute path, or a null-byte
entry never reaches the extract step. - Decompression bombs. There is a cap on how much a single entry, and the whole
package in aggregate, is allowed to expand from. A small
.zipthat would
decompress to an unbounded amount of data is rejected on that arithmetic, not on
whether its contents look busy. - Count and size caps. Enough entries, or enough total bytes, and the tool treats
the archive as unreadable rather than spend every byte of your memory on it.
These are not telltales that your archive is dangerous. They are thresholds a hostile
archive would try to exploit, and a legitimate archive is simply far below them. So
when one of them fires on a file you know is yours, do not assume the archive is unreadable.
Look instead for which file or entry is wrong.
What the entry-name screen actually checks
The pre-decode screen runs over the ZIP's central directory — just the entry names —
before a single record is decompressed. In order, it rejects an archive for any of:1
- Too many entries. There is a ceiling on the declared central-directory count, checked
before the loop. The loop itself is linear in entry count. A ZIP can
declare millions of records that all pass the cheap checks, and the screen would become the
denial of service it exists to prevent. - An over-long name. Length is checked first, because every later check and every
downstream path lookup scales with the length of the name.
- A duplicate name. Case-insensitive duplicate entries are rejected, since two
records claiming one path is exactly how a "which copy wins" ambiguity is engineered.
- Path traversal and absolute paths.
..segments, a leading/, or a Windowsdrive letter (
C:\…) are refused before anything is written anywhere. - Control characters. NUL,
\n,\rin a name are refused. - Non-ASCII separators and homographs. Unicode line/paragraph separators, the
fraction slash, the fullwidth solidus, and Cyrillic or Latin-Extended characters that
look like ASCII letters are flagged. Those are the shapes used to sneak a path past
an ASCII-only check, or to impersonate a familiar filename. - Non-NFC names. A name that is not Unicode NFC-normalized can defeat string
comparison (precomposed vs decomposed forms), so it is refused as a warning.
- An archive with no text at all. If not one entry ends in
.jsonor.html, thefile does not look like an export — it is refused rather than parsed as an empty
archive.
Two ceilings, two different jobs
There are actually two entry ceilings in the codebase, and they guard different
things.12 The pre-decode screen's ceiling is deliberately generous, because it is a
name-only pass. The zip reader's ceiling is tighter, because by that point JSZip has
materialised one object per archive member and the cost is memory, not names. That
number was raised after measurement. Synthetic exports of the shape a real heavy account
produces clocked in at tens of thousands of entries. The old limit rejected
essentially every heavy account outright — not degraded, refused. The current value is
set at the point where a desktop browser tab is at risk, not at a number anyone guessed.
The compressed-bytes trick
The decisive test is not "is this file big" but "is this file tiny on disk and enormous
in memory". A ZIP bomb is a few hundred compressed bytes that inflate to gigabytes. The
reader consults the central directory's declared compressed and uncompressed sizes.
Those exist before any inflation. It refuses any entry whose declared ratio exceeds
2000:1, or whose declared size breaches a per-entry or aggregate cap. Real Instagram
media sits around 1:1 to 2:1, and even a repetitive multi-megabyte message shard sits near
20:1. So no genuine export trips it. A 100 KB file claiming to be 200 MB of text is
refused while it is still two integers.2
And because ZIP headers are attacker-controlled, the declared check runs in addition
to the post-inflate byte checks, never instead of them. A crafted archive that
under-reports its sizes gains nothing: the real decoded sizes are measured as entries are
read and the same caps apply.
The guard that only warns
A second, entirely separate guard runs after parsing and never blocks anything. It
looks at the derived data for something a real export would never contain. An invalid
username counts. So does an account-creation date before Instagram existed. So does a follower list where most
names are duplicates or share one identical timestamp (a fingerprint of scripted
injection). It also catches the claimed owner appearing inside their own follower list, or a message
total that does not match the sum of its conversations. Every one of these is recorded
as a warning and surfaced; none of them stops the analysis.1 The distinction
matters for this post: a warn is the tool telling you what it noticed, and a real
archive can trip a warning without being wrong.
A failed read is not an empty file
One subtlety explains a whole class of "the export lost my data" reports. If an entry's
bytes cannot be read, the reader does not substitute an empty string and move on, because
presence detection keys off the entry path. A followers.json recorded as empty would
read downstream as "followers present but empty". A ledger comparing two imports
would then close every one of those follow edges as an unfollow. That would invent a mass
unfollow event out of a decode failure. So failed reads are recorded, and the affected
category is treated as unknown rather than empty.2 If you have ever seen "one
category looks zeroed but everything else is fine", this is the mechanism — and it is a
safety record, not a delete.
Media arrives mangled unless you decode it yourself
One more quiet failure the reader prevents concerns encoding. When JSZip decides a text entry is
"Unicode", it hands back a one-byte-per-character string. That mangles genuine
multi-byte characters — emoji, accented names, "font" mathematics — into Latin-1
mojibake. Rather than trust the zip's per-entry encoding flags, the reader decodes the
raw bytes itself with a UTF-8 decoder. So an emoji in a message stays an emoji instead of
arriving as a run of ????. If you have ever seen mojibake in another tool and clean
text here, that is why.2
Case three: it is loading, not broken
An export is text plus a large amount of media, and the app treats the two differently on
purpose. The text is parsed first, because it is what you actually read. The media
waits its turn in the background. Three consequences follow, and all three look like
failures to the unreasonable eye.
- A photo that is not there yet is not missing. It is still in the background queue;
the UI will reflect it when its turn comes. The fastest confirmation is the media
count in the folder growing after the text already appeared. - A thumbnail that failed to render is not a lost image. The record that says the
image belonged to a post still exists. The preview may have failed only
because the signed URL expired before the tool reached it. - Your storage is not infinite. Browser storage, and iOS in particular, evict media
caches under pressure. If a photo from yesterday is already gone, that is the sandbox
being polite about a file that lives on your machine, not the parser losing data.
None of this is corruption, and none of it is fixable by asking for the export again. It
is the shape of a deliberate, text-first streaming parse.
It is the shape of a deliberate, text-first streaming parse.
Case four: it re-parsed itself, on purpose
The parser is versioned. The parsing code in the app is improved over time — a stricter
timestamp, a new reaction emoji, a label the metadata now carries through differently.
When that happens, the tool notices that the copy you already imported is older than what the current code
produces. It re-parses, rather than letting a stale parse stand for your record. The
copy on disk is replaced by the corrected one. Nothing was lost to a crash; the archive
is being re-read so the picture of it is current.
The three causes to check in order
| Symptom | First explanation to rule out |
|---|---|
| "It does not look like an Instagram export" | The file is not the original `.zip`, or it is a third-party export. |
| "It opened but there is no media" | It is still in the background queue — wait, or reload to resume. |
| "It opened and the app re-ran the parsing" | A parser upgrade re-stamped the import; this is maintenance, not a fault. |
- Firstis this the original .zip Meta produced?
- Not the filethe answer is the file, not the parser
- Guard firesa hostile shape was refused before any record was decoded
- No mediatext parsed first; media is still in the background queue
- Re-parseda parser upgrade re-stamped the import
The one thing we will never tell you it can fix by re-requesting
If the original export was built around some missing category, the 4-day window you
spent parsing does not change what Meta wrote. A new request with the same folder
ticked will return the same absence. Getting it right has to happen at the request
screen, which is why this is the second entry in the series and not a footnote.
Questions this comes up
The app says my file is not an Instagram export. What next?
Check the two things only that tell. First, that it is a .zip, not an extracted folder
you later compressed. Second, that it is the file Meta produced, not one another tool
rebuilt. LMKFR parses Meta's format directly; a rebuilt or re-zipped package is exactly
the case that warning exists for.
Why do some photos only appear much later?
Because the app parses text first and handles media in the background. A record that
says a photo exists can appear before the photo does. The media counter in the folder
grows across that parse; if it has, the archive is complete and the file you are
waiting on has entered the queue.
Why does the app sometimes re-parse my archive on its own?
The parser leaves a version stamp on each import. When the shipping code is newer than
that stamp, the app re-parses rather than serve a record computed by older code. The
replacement is the same archive, rerendered against the current parser — it is not a
data loss event.
Can a corrupt ZIP contain useful data?
If there is an error on open, the archive is not in a supported state. The defences
that catch it are not filtering; they are refusing an entry pattern that is unsafe to
evaluate, or a total size that is not memory-safe. Once it trips those, there is no
payload to salvage.
What are the actual size and entry limits?
Media is capped per file, in total, and by count. Text is capped per file and in total.
The archive is capped by entry count and by compression ratio (2000:1). The numbers
are set from measured real-export shapes and sit well above any genuine archive — they
exist to refuse a crafted one, not to make you trim yours.
The app warned that my follower list looks 'injected'. Is my account hacked?
No — that check is deliberately flag-only and never blocks anything. It fires when a
large follower list is mostly duplicate or shares one timestamp, which is what a scripted
export looks like. It is a plausibility note for you to judge, not a verdict, and it
does not change what the app computes.
Where this was checked
The refusal behaviour, the caps and the media queue are all observable in the source.
The entry-name and byte-count checks live in the archive guard. The zip reader and its
size arguments live in zip-handler.ts. The media re-queue after
a parser upgrade is the version-stamp logic.
Where the prose names a rule, the rule sits at that module, not in the README.123
Footnotes
For developers — source references
Pointers into the open-source code that implements the behaviour described above.
packages/shared/src/parsers/export-guard.ts—preScreenArchiveEntries:56-145
(length ceiling:86, duplicate:93, traversal:98-105, absolute:106, control
chars:109, non-ASCII separators/homographs:115-123, NFC:127, no-text-entries:134-142, entry ceilingMAX_ENTRIES = 500_000:28/:66) and the flag-onlyvalidateArchiveData:167-255(username:173, account-created:176, absurd/mass-dup
followers:182-209, self-in-own-lists:219-229, message-count mismatch:240-248,
content caps:251).↩packages/shared/src/parsers/zip-handler.ts— caps (DEFAULT_MAX_MEDIA_FILE_SIZE:5, media total/count:6-7, text file/total:12-13),MAX_ENTRIES = 250_000with
its measured rationale:15-33,MAX_COMPRESSION_RATIO = 2000:35-55, UTF-8 decode:59-64,screenEntries(declaredSizes, ratio, per-entry/total):192-221,failedEntries"must not read as empty":123-129/:286-293, cooperativeAbortSignal:175-177/:300-330.↩packages/shared/src/layers/stamps.ts—currentVersions:16-22,stampMatches:46-53andstaleDomains:55-59, the comparison that decides a re-parse.↩