signal2html
signal2html copied to clipboard
Export a Signal backup to pretty HTML
signal2html: Convert Signal backups to pretty HTML
This is a Python script to convert a backup of Signal messages to pretty HTML:
Why?
My phone was getting full and I wanted to preserve my Signal messages in a nice way.
How?
-
Install this package using pip:
$ pip install signal2html -
Next, clone and compile signalbackup-tools as follows:
$ git clone https://github.com/bepaald/signalbackup-tools $ cd signalbackup-tools $ bash BUILDSCRIPT.shThis should give you a
signalbackup-toolsexecutable script. -
Create an encrypted backup of your Signal messages in the app (Settings -> Chats and Media -> Create backup), and transfer this to your computer. Make sure to record the encryption password.
-
Unpack your encrypted backup using
signalbackup-toolsas follows:$ mkdir signal-backup/ $ signalbackup-tools signal-YYYY-MM-DD-HH-MM-SS.backup <PASS> --output signal_backup/where you replace
signal-YYYY-MM-DD-HH-MM-SS.backupwith the actual filename of your Signal backup and<PASS>with the 30-digit encryption password (without spaces). -
Now, run
signal2htmlon the backup directory, as follows:$ signal2html -i signal_backup/ -o signal_html/This will create a HTML page for each of the message threads in the
signal_htmldirectory, which you can subsequently open in your browser.
Notes
This is a hastily-written script that has only been tested on a few Signal database versions. I hope it works on other backup versions as well, but if you encounter any issues please submit a pull request.
See the LICENSE file for licensing details and copyright.
Please be aware that Signal messages are encrypted for a reason, and your contacts may use it specifically because it provides significant privacy. By exporting and decrypting your messages, you should take responsibility for maintaining this same level of privacy (for instance by only storing the plaintext messages on encypted volumes/drives).
Originally written by Gertjan van den Burg. See the contributors file for a full list of all contributors.