Import bookmarks to firefox from txt file

I have a txt file with a bunch of links in it and I want to import them as bookmarks in firefox.

I tried the import feature of the bookmarks manager, but it only import from an html file.

Is there some kind of script that would enable me to directly import to firefox bookmarks or create an properly formated html file from my text file?


Solution 1:

Bookmarks can be cut, copied and pasted from firefox's bookmark manager directly.

In your case, open up the text file, select all the links then go to firefox's library and click a desired folder. Then inside the folder just paste it.

I know this answer is old, but hopefully others in the future can find it because even now (March 2017), there isnt a page to explain this

Solution 2:

I have created an online tool to import a list of bookmarks from plain text.

Check it our at atkinsio.com.
The GitHub is open source if you would like to make something similar yourself.

Solution 3:

What I finally did is create an html file with all the links and importing the html file in my bookmarks. It worked great.