How can I export my Safari browsing history?

Alternatively, where does Safari store the history data?

(Yes, of course, I can click history in the menu bar, but that interface isn't very useful.)


The browsing history is located in a database stored at ~/Library/Safari/History.db.1

This database can be accessed with sqlite3 via Terminal2:

sqlite3 ~/Library/Safari/History.db

At least on my device, the database has the following tables:

history_client_versions  history_items            history_tombstones     
history_event_listeners  history_items_to_tags    history_visits         
history_events           history_tags             metadata      

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .