How can I convert json formatted bookmarks file (taken from /Library/Application Support/Google/Chrome/Default/Bookmarks) into an bookmarks html file so Google Chrome can import it?
Save Chrome history and bookmarks as JSON files. Click on 'Chrome History. json' or 'Chrome Bookmarks. json' button to download JSON file with your browser history/bookmarks.
In the toolbar at the top, click the dropdown menu labeled “import and backup.” You will see a list of options for importing, exporting, backing up and restoring your bookmarks. Click the “backup” button. In the next window, select a folder to save your JSON file in and click “save.”
If for whatever reason, you only have the JSON output of the Chrome bookmarks file, don't sweat it. Chrome will export bookmarks as HTML and import as HTML. But, sometimes you don't have the luxury of exporting from Chrome because of some issue with your Windows installation. But, you're resourceful and managed to at least get access to your Windows filesystem and backed up your Chrome bookmarks file. But, now how do you import it to Chrome on a working computer without it being in HTML format?
On Windows (this was tested on Win 10), all you have to do is Show Hidden Files and Folders and then paste and overwrite the Bookmarks file at:
C:\Users\YourUserName\AppData\Local\Google\Chrome\User Data\Default
Don't run around in circles trying to convert JSON to HTML if you have a Windows computer. I'm not sure about Mac and Linux, but I'd bet it would work similarly.
This has more or less been answered in comments by @Mr.P, but let me formalise:
In my example I have a current (OS root) drive called C:\\
. I have a storage drive of F:\\
which has a previous install of Chrome on it which I want to retrieve the bookmarks from.
I did this in Powershell but you could easily do it in file explorer you would just need to either enter the path to <drive_name>:\\users\<account_name>\appdata
manually/show hidden folders.
close all instances of Chrome currently running (maybe check in the process monitor to ensure all processes terminated).
navigate to <storage_drive_letter>:\\users\<account_name>\appdata\local\google\chrome\default
.
On PowerShell you would select the previous install bookmarks file by entering $books = Get-Item bookmarks
. On file explorer you would 'cut'
cd <os_drive_letter>:\\users\<account_name>\appdata\local\google\chrome\default
or navigate to this path on file explorer
mv $books .
or paste file
open up Chrome again and check the bookmarks: they should be visible all together.
gci | where {$_.name -like "bookmarks"} | rm
) then reopen the browser. In your filesystem Chrome should have automatically regenerated the bookmarks into one file.If this doesn't work for other people let me know
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With