msgbackup
extractor
Source code

Your photosare in there.Get them out.

Photos, videos, voice messages and documents out of a local iPhone backup and into ordinary folders on your own machine. Threema and WhatsApp. No cloud, no account, nothing uploaded.


01

What comes out

Folders you can use like any other

  • export/threema/
  • media/
  • images/  videos/
  • audio/  documents/
  • thumbnails/
  • chats/
  • Anna/
  • Familie/
  • unassigned/ kept, not dropped
  • databases/
  • index.html double-click it

The chat folders cost no extra disk space — they are hardlinks to the same files. Nothing is renamed beyond what a filesystem forces.

And a page to look through them

All Threema WhatsApp 2025 Videos No chat

A timeline, newest first, with filters for type, year and chat. It runs straight from the file — no server, no network. The tiles here are stand-ins, so you can picture what the page looks like with your own things in it.

02

Is yours covered?

Threema

Everything in the backup comes out, including the media Threema keeps inside its own database, where a file-level tool finds nothing at all.

WhatsApp

Everything in the backup comes out. For some entries only WhatsApp's own small preview was ever saved — those are marked as such instead of being passed off as originals.

Signal — no

Nothing this tool can change: Signal keeps its data out of the iOS backup entirely. It is detected, and then you are told exactly that. The way across is Signal's own device transfer.

03

What you need

A Mac or PC

Developed and verified on macOS. Windows is implemented but has never been run against a real backup — that is written down, not glossed over.

A local backup

Made with the Finder, or on Windows with the Apple Devices app or iTunes — and on your machine. Encrypted backups are the normal case and it copes with them; the password is only ever typed in, never passed as an argument.

A terminal, once

Three terminal commands if you live there — or build the app once and never type again. Python 3.12 either way. To be blunt: nobody gets around that one installation, and if it is already too much, this is not for you.

Some disk space

Roughly what the messenger's own data takes up. The backup is never copied, and the chat folders are free — they point at the same files.

04

How to start

For everyone — three steps

1

Install, once

Three lines in a terminal. The only time you have to type anything.

git clone https://github.com/abnun/msgbackup-extractor.git python3 -m venv ~/.venvs/msgx ~/.venvs/msgx/bin/pip install -e .
2

Build the app

One command, and msgbackup-extractor.app appears in your Applications — on Windows a .cmd on the desktop.

scripts/build-app.py
3

Double-click it

It opens a terminal and asks one thing at a time: which backup, which messenger, where to. Every step prints the command it runs — use it twice and you can leave it behind. At the end the browsable page opens.

Two traps

The terminal needs Full Disk Access, and it must be restarted afterwards — otherwise it cannot read the backup at all.

Do not put the virtual environment inside iCloud Drive. iCloud hides the .pth files, Python then skips them silently, and the install looks like it worked when it did not. The handbook shows how to check.

Why the app opens a terminal rather than being a silent window: an encrypted backup needs a password, and the password is only ever typed in, never passed along.

Full instructions

For the command line — the individual commands

Exactly what the app runs for you. If you know your way around a terminal, you do not need the app.

1

Look before you touch

Reports which messengers are in the backup and what is inside. Writes nothing at all.

msgx analyze --backup ~/…/Backup/<device>
2

Rehearse, then run

With --dry-run it shows what would happen and writes nothing. The same plan drives the real run, so the rehearsal cannot behave differently from the real thing.

msgx extract --backup … --output ~/export/threema
3

Look through it

Builds the page. You open it with a double-click, select there, and copy either straight in the browser or with msgx collect.

msgx ui --output ~/export
05

Why you can trust it

Short version: because you do not have to take my word for any of it. Each of these has a test in the source that fails if it stops being true, and you can run them yourself with python -m pytest.

The backup is only read

A fingerprint of every file is taken before and after a full run and compared. Counter-tests prove the fingerprint would notice a change.

Nothing goes anywhere

No part of the source imports a network module. Checked statically, and again with networking switched off entirely.

Nothing arrives broken

Every written file's SHA-256 is read back and compared against the source. Only the comparison counts, never the claim.

One condition

This is for your own backup. It holds messages other people sent you, and private use is one thing while passing them on is another. Running it against someone else's backup can be a criminal offence. Don't.

Did this get your pictures back?

Then I would genuinely like to hear about it — a line is enough. Criticism is just as welcome, and a bug report with the tool's own diagnostic output is the most useful thing anyone can send.

abnungmx.de

Please do not send extracted message data. The diagnostic reports are built so they carry no message contents and no real names — those are enough, and anything else I delete unread.