5

Is there a way to export the entire browser history from Chrome under Android, in any file format (csv, xml, whatever)?

I have Chrome 42.0.2311.111 under Android 4.2.2.

3
  • Desktop-based Chrome allows for the installation of an addon that handles this. Its name is Export History. It does not seem to be available for Android; nor is there a comparable item. See the Chrome Web Store for further information. – wbogacz May 22 '15 at 15:33
  • @wbogacz Is there an extension or a program that you think can export the whole SQLite database into a CSV or XML file? I've written an answer below which can export the database but not into the said extensions. – Firelord Sep 11 '15 at 1:52
  • @Firelord - check this query on stackoverflow: http://stackoverflow.com/search?q=sqlite+csv+export+is%3Aquestion – wbogacz Sep 11 '15 at 2:26
6

This may be more than a year late to this question, but...

You can use Google Takeout to download a json file of your Android Chrome history.

You can also download your bookmarks, along with a lot of other Google data.

1
  • 3
    So what if it's more than a year late. It helped me, thank you for posting. I gave it a +1. – Scooby-2 Aug 25 '18 at 0:16
3

Chrome doesn't allow backup using ADB and there are no extensions available for mobile version so you should have root access before you proceed further.

  1. Grab the History file from the location /data/data/com.android.chrome/app_chrome/Default/ into PC. A Root Explorer may help.

  2. Install an SQLite manager such as SQLiteman or DB Browser for SQLite in PC.

    Both has the option under menu bar to export the database into an SQL file or a particular table into CSV file.

Well at least you now know where the history is stored, so you may find a relevant software to directly export the database into a CSV or XML file.

1

If the tabs are still open you may find the following useful, via dev.to - When you never close tabs on your mobile Chrome browser. Not quite a solution here, but was what I was looking for when I came across this question.

Export open tabs

Chrome's remote debugging has a remote-debugging-legacy mode that allows you to view tabs on a connected computer via adb.

Set up adb

  1. First, install the Android Command Line Tools from Android Studio.
  2. Enable developer mode on your phone by going to Settings > About Phone > Build Number and tapping 7 times
  3. Enable USB debug mode from Settings > Developer options or Settings > System > Advanced > Developer options. This menu will only be visible after the previous step.
  4. Connect to laptop and verify with ./adb devices -l. You may need to configure adb and grant permission from your phone.

Connect to chrome remote devtools

Once your phone is set up with adb you can:

# Connect to Chrome Android's legacy debugging API
./adb forward tcp:9222 localabstract:chrome_devtools_remote

# Visit http://localhost:9222 to verify, then
curl http://localhost:9222/json/list > mobile-tabs.json
0

You should be able to export ALL your history from ALL devices under your Google Account on practically any browser. It's generally easiest to do it from your desktop, however.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.