To backup: Tap "Export Data" — a JSON file will download to your device. Save it somewhere safe (Google Drive, WhatsApp saved messages, etc.)
To restore: Tap "Import Data" and select your saved JSON file. All your data will be restored exactly as it was.
Do this before clearing browser data or uninstalling the app.