Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

can I import part of a booksmark html file

  • 6 replies
  • 2 have this problem
  • 3 views
  • Last reply by FireUser

more options

FireFox 57.0.2 (64-bit) Quantum Windows 10

I understand how to export bookmarks and import them to Firefox on a different computer.

My question is: Is there a way to either export only a portion of the bookmarks to a file which can then later be imported into an existing Firefox browser OR can I export only a portion of my bookmarks file and then import that portion to an existing bookmarks file?

My reasoning is because the job I have I work part time at home and part time in the office. If I work at home and find a site page I want to bookmark, I save it in my firefox at home. But then when I go to the office I don't have it in my bookmarks on my office computer. So I always have to email myself the link from home to my work email address so I can bookmark the site page the next time I am in the office at the computer. Sometimes depending on my projects at hand I may end up bookmarking 9 to18 site pages and it gets very time consuming emailing the links.

So what I want to be able to do is when I save the bookmarks to my home computer firefox I want to be able to export on a portion of the bookmarks file. I always keep my bookmarks for work under a separate book marks folder so that all work related bookmarks are in the master folder.

Exporting a portion of the bookmarks at home will allow me to import those into my work computer to keep that up to date.

Any way I can do that?

FireFox 57.0.2 (64-bit) Quantum Windows 10 I understand how to export bookmarks and import them to Firefox on a different computer. My question is: Is there a way to either export only a portion of the bookmarks to a file which can then later be imported into an existing Firefox browser OR can I export only a portion of my bookmarks file and then import that portion to an existing bookmarks file? My reasoning is because the job I have I work part time at home and part time in the office. If I work at home and find a site page I want to bookmark, I save it in my firefox at home. But then when I go to the office I don't have it in my bookmarks on my office computer. So I always have to email myself the link from home to my work email address so I can bookmark the site page the next time I am in the office at the computer. Sometimes depending on my projects at hand I may end up bookmarking 9 to18 site pages and it gets very time consuming emailing the links. So what I want to be able to do is when I save the bookmarks to my home computer firefox I want to be able to export on a portion of the bookmarks file. I always keep my bookmarks for work under a separate book marks folder so that all work related bookmarks are in the master folder. Exporting a portion of the bookmarks at home will allow me to import those into my work computer to keep that up to date. Any way I can do that?

Chosen solution

As mentioned you can Export in HTML format and then edit that HTML file. before importing it.

This code is the most important part of a bookmarks.html file - the header. Without this header Firefox won't recognize it as a bookmarks file.

<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
     It will be read and overwritten.
     DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

Everything below that can be edited - the file is pretty much "self healing". Firefox usually recognizes even the folder structure (or most of it) after chopping out a selection of links in the middle of the listing.

And it can be viewed in Firefox using File > Open File ...

Read this answer in context 👍 1

All Replies (6)

more options

You can select the HTML files you want to import yes.

more options

I know that I can import the html files to import. That is not my problem though.

I want to know if I can import either part of an exported html file or export a portion of a bookmarks to html.

more options

Save the current to an HTML file. After, open the file using an editor, and remove what you don't want.

Or, copy what you want to a new HTML file, leaving the original as a backup.

more options

Chosen Solution

As mentioned you can Export in HTML format and then edit that HTML file. before importing it.

This code is the most important part of a bookmarks.html file - the header. Without this header Firefox won't recognize it as a bookmarks file.

<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
     It will be read and overwritten.
     DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

Everything below that can be edited - the file is pretty much "self healing". Firefox usually recognizes even the folder structure (or most of it) after chopping out a selection of links in the middle of the listing.

And it can be viewed in Firefox using File > Open File ...

more options

The-edmeister: Bingo!! Thanks!!!!! - Exactly what I needed to know.

Originally I did call up the (full) html file in Notepad (used notepad because it is flat ascii editor) but did not know what parts I had to keep in order to maintain the integrity of the file components so it does not get corrupt.

Now with your suggestion I opened up the html file I exported. Copied and pasted the header section you said needed to be included to a new notepad file. Then I cut out all the text prior and after the portion that I wanted to remain in the file and pasted that into the new html file with the header portion. Saved that file to another name and called it up in Firefox as "file open" and I see my bookmarks that I want.

Will be in the office today and will import this new html file to my present bookmarks file on my office computer. I believe all will be well.

I marked your post as the solution- Thank you. The other replies were helpful in nature but did not answer specifically my question. But I do thank those that replied also.

Years ago I did some basic HTML coding before all the GUI programs came out like MS Front Page etc so I was familiar with some of the structure and coding but just did not know what portions I needed to exclude or include until I read your post. Again, thank you for your help. You saved me a lot of time in the future!!  :-)

If I do not reply back this means that it imported correctly on my office computer.

Have a good holiday season everyone.

more options

The-edmeister: I know I said I would not reply if it worked and the instructions you gave me did work but I had to come back and tell you and thank you. You gave me exactly what I needed and made my work easier!!

Thanks so much!!!!

Have a great New Year!!