How do I export the Browsing History in Firefox?
Browsing history is stored in a file called places.sqlite in your profile folder. On Windows it is located in the randomly named .default
folder found in this directory:
%APPDATA%\Mozilla\Firefox\Profiles
This file format is not easily edited in a text file, but you can use SQLite Database Browser (free and open source) to view the file.
For modern era (it's March 2014 as I write this) Firefox users on Windows machines, you can give Nirsoft's Firefox History Viewer a try: http://www.nirsoft.net/utils/mozilla_history_view.html
Not sure if it can read the (very old and outdated) history.dat format, but it can filter, slice, dice, chop, puree, scramble, and otherwise do all kinds of fancy things (but it cannot make your coffee and serve it to you, sorry!) with the history data in the "places.sqlite" format, and then export it to several common formats ranging from text to html to csv to xml to whatever.
Use the History Export add-on which can export to .html, .txt and .json (this also work on Mac OS X, though doesn't appear to support formats besides .txt)