Categories We Write About

Export browser history to CSV

To export your browser history to a CSV file, the method depends on the browser you use. Here’s how to do it for the most popular browsers:


Google Chrome

Chrome doesn’t have a built-in feature to export history directly, but you can do it by:

Method 1: Using a Chrome Extension

  1. Install an extension like Export History/Bookmarks to JSON/CSV/XLS“** or History Export” from the Chrome Web Store.

  2. Open the extension.

  3. Export your browsing history as CSV.

Method 2: Manually from the History SQLite Database (Advanced)

  1. Locate Chrome’s history file:

  • Windows: C:Users<YourUser>AppDataLocalGoogleChromeUser DataDefaultHistory

  • Mac: ~/Library/Application Support/Google/Chrome/Default/History

  • Linux: ~/.config/google-chrome/Default/History

  1. This file is a SQLite database. Use a SQLite browser tool (like DB Browser for SQLite) to open it.

  2. Export the urls or visits table to CSV.


Mozilla Firefox

Firefox stores history in a SQLite database.

  1. Locate the profile folder:

  • Windows: C:Users<YourUser>AppDataRoamingMozillaFirefoxProfiles<profile folder>

  • Mac: ~/Library/Application Support/Firefox/Profiles/<profile folder>

  • Linux: ~/.mozilla/firefox/<profile folder>

  1. Open places.sqlite with a SQLite viewer.

  2. Export moz_places and moz_historyvisits tables to CSV.


Microsoft Edge

Edge is Chromium-based, so similar to Chrome:

Method 1: Using Extension

  • Use the same Chrome extension methods.

Method 2: Manually

  • Find the Edge history file, same as Chrome but in Edge profile folder:

    • Windows: C:Users<YourUser>AppDataLocalMicrosoftEdgeUser DataDefaultHistory

  • Use SQLite tool to export.


Alternative: Use a Script to Export Chrome History to CSV (Windows example)

If you’re comfortable running a Python script:

python
import sqlite3 import csv import os history_path = os.path.expanduser('~') + r"AppDataLocalGoogleChromeUser DataDefaultHistory" conn = sqlite3.connect(history_path) cursor = conn.cursor() cursor.execute("SELECT url, title, visit_count, last_visit_time FROM urls") with open('chrome_history.csv', 'w', newline='', encoding='utf-8') as f: writer = csv.writer(f) writer.writerow(['URL', 'Title', 'Visit Count', 'Last Visit Time']) for row in cursor.fetchall(): writer.writerow(row) conn.close()

If you specify your browser, I can provide a more precise step-by-step.

Share This Page:

Enter your email below to join The Palos Publishing Company Email List

We respect your email privacy

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories We Write About