How to export a large WhatsApp chat with media exactly as it appears on my phone? I want to export a huge WhatsApp conversation (346,000 messages) along with the media (photos, videos and voice notes) to my computer exactly as it appears on WhatsApp.

There is a Chrome extension that does exactly what I want by downloading the conversation from WhatsApp Web as HTML. However, it crashes at around 100,000 texts. Is there any other way?

I can't export it directly through WhatsApp because it's limited to 40,000 texts. Also, my phone is not rooted so extracting the SQLite files is not an option.

(Technical answers are highly encouraged)
So, I managed to figure it out myself. Note that this answer has been written for non-rooted devices.

Go to Internal Storage/WhatsApp and rename the Databases directory to Databases.old
Open WhatsApp, go to Settings &gt; Chats &gt; Chat backup and set Back up to Google Drive as Never.
Tap the BACK UP button and wait for the backup process to complete.
Go to Internal Storage/WhatsApp and zip the Databases and Backups directories.
Arrange a spare device. Personally, I set up an AVD with Android Marshmallow x86 and increased the storage (partition size) to 8GB.
Root your spare device. If you're using an AVD, use this guide.
Create a new folder named WhatsApp on your spare device.
Copy the zip file to your spare device and extract it inside the WhatsApp directory such that the Internal Storage/WhatsApp/Backups and Internal Storage/WhatsApp/Databases directories exist. We won't be needing your non-rooted device in the coming steps.
Install WhatsApp on your spare device, log in using your original phone number, and restore the backup when prompted to do so.
On your rooted device, open WhatsApp and go to Settings &gt; Chats &gt; Chat backup.
Tap the BACK UP button.
Install any root browser and copy the file /data/data/com.whatsapp/files/key to the Internal Storage. This is your WhatsApp decryption key.
Install this app, go to Settings inside the app and set the Whats key file to the WhatsApp decryption key you just copied.
Go back to the previous screen, select the File type to your preferred file type and hit Export to storage.
You'll find the exported chat files in Internal Storage/BackupTextForWhatsApp.


To reactivate WhatsApp on your original, non-rooted device, just open
WhatsApp on your original device and verify your number again. Your chats will still be there.