Skip to content
 

OS X Chrome Bookmarks Export

google_chrome_logo
Chrome for OS X is lac­king a book­mark export fea­ture. I’m sure it will have one in the future, but it doesn’t have it yet. It will hap­pily import your mozi­lla book­marks and let you get star­ted using the brow­ser, but even­tually you will notice that your book­marks are loc­ked in. It only recently got a very rudi­men­tary book­mark mana­ger in the latest nightly builds, but there is still no export.

The Chrome book­mark file in OS X is a sim­ple JSON data­base, so I whip­ped up a quick tool in Groovy to do the export. This was really a single-use pro­ject but I figu­red I would post the source and bina­ries in case someone else needs it.

Usage: java -jar ChromeExport.jar > mybookmarks.html

By default it will find the current user’s “Default” Chrome pro­file. Since Chrome doesn’t seem to have any UI for mana­ging pro­fi­les, I don’t see why you’d have a dif­fe­rent one.

Requi­re­ments to build/run:
* Groovy 1.6+
* Commons-Lang (for the Strin­gEs­ca­peU­tils)
* json-simple (for the JSON parser)

Here is a link to the source: ChromeExport.groovy
Here is a link to the fully bund­led binary (which pro­bably breaks somebody’s license agree­ment somewhere, but com­pliance is not worth the anno­yance): ChromeExport.jar

Enjoy! Let me know what you think, or if it works for you!

8 Comments

  1. Natalie says:

    It works! Thank you so much for sha­ring this.

  2. Jacques says:

    Works with a little bug. Once it went into a fol­der it didn’t get the book­marks after the fol­der. But other then that it’s pretty sweet. Thanks

  3. Dan Fraser says:

    Hmmm! Could you give me a bit more detail about what hap­pe­ned? I’d like to fix the bug. :)

  4. Richard says:

    Wor­ked like a charm and made my day! You’re the man, buddy! Thanks A LOT!

  5. Windsinger says:

    Thank you so much for this! Really stu­pid that it doesn’t have this in it already, but thanks for your time on making this, wor­ked great.

  6. Serge Boinn says:

    Wor­ked awe­so­mely, thanks so much!
    I am going to use it for get­ting Chrome book­marks into LaunchBar :)

  7. table says:

    Small bug: it doesn’t handle uni­code cha­rac­ters in the book­mark titles

  8. Serge Boinn says:

    As far as I can see, it exports in Mac­Ro­man. So I just added iconv –from-code=MACROMAN –to-code=UTF-8 “$bookmark_file” > “$bookmark_file.html” in my script :)

Leave a Reply